Skip to content

Commit

Permalink
should not contain security config
Browse files Browse the repository at this point in the history
Signed-off-by: Qingyang(Abby) Hu <abigailhu2000@gmail.com>
  • Loading branch information
abbyhu2000 committed Feb 27, 2024
1 parent 3a98fe6 commit 15d4ba5
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
DE_DEFAULT_END_TIME,
DE_DEFAULT_START_TIME,
} from '../../../../../utils/constants';
import { CURRENT_TENANT } from '../../../../../utils/commands';

const miscUtils = new MiscUtils(cy);
const testFixtureHandler = new TestFixtureHandler(
Expand Down Expand Up @@ -48,15 +47,14 @@ describe('shared links', () => {

describe('shared links with state in query', () => {
beforeEach(() => {
CURRENT_TENANT.newTenant = 'global';
miscUtils.visitPage('app/data-explorer/discover#/');
cy.waitForLoader();
cy.setTopNavDate(DE_DEFAULT_START_TIME, DE_DEFAULT_END_TIME);
cy.waitForSearch();
});

it('should allow for copying the snapshot URL', function () {
const url = `http://localhost:5601/app/data-explorer/discover?security_tenant=global#/?_a=(discover:(columns:!(_source),isDirty:!f,sort:!()),metadata:(indexPattern:'logstash-*',view:discover))&_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:'2015-09-19T13:31:44.000Z',to:'2015-09-24T01:31:44.000Z'))&_q=(filters:!(),query:(language:kuery,query:''))`;
const url = `http://localhost:5601/app/data-explorer/discover#/?_a=(discover:(columns:!(_source),isDirty:!f,sort:!()),metadata:(indexPattern:'logstash-*',view:discover))&_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:'2015-09-19T13:31:44.000Z',to:'2015-09-24T01:31:44.000Z'))&_q=(filters:!(),query:(language:kuery,query:''))`;
cy.getElementByTestId('shareTopNavButton').should('be.visible').click();
cy.getElementByTestId('copyShareUrlButton')
.invoke('attr', 'data-share-url')
Expand Down Expand Up @@ -111,7 +109,6 @@ describe('shared links', () => {
});

beforeEach(() => {
CURRENT_TENANT.newTenant = 'global';
miscUtils.visitPage('app/data-explorer/discover#/');
cy.waitForLoader();
cy.setTopNavDate(DE_DEFAULT_START_TIME, DE_DEFAULT_END_TIME);
Expand Down

0 comments on commit 15d4ba5

Please sign in to comment.