Skip to content

Commit

Permalink
restore test
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkime committed Apr 16, 2023
1 parent b0c3849 commit 3b55776
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/functional/apps/discover/group2/_adhoc_data_views.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,18 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
expect(prevDataViewId).not.to.equal(newDataViewId);
});

it('should update data view id when saving data view from hoc one', async () => {
const prevDataViewId = await PageObjects.discover.getCurrentDataViewId();

await testSubjects.click('shareTopNavButton');
await testSubjects.click('confirmModalConfirmButton');
await PageObjects.header.waitUntilLoadingHasFinished();

const newDataViewId = await PageObjects.discover.getCurrentDataViewId();

expect(prevDataViewId).not.to.equal(newDataViewId);
});

it('search results should be different after data view update', async () => {
await PageObjects.discover.createAdHocDataView('logst', true);
await PageObjects.header.waitUntilLoadingHasFinished();
Expand Down

0 comments on commit 3b55776

Please sign in to comment.