Skip to content

Commit

Permalink
[Discover] fix functional test
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaanj committed Jan 4, 2023
1 parent e5f2939 commit 9e06544
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,14 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
it('allows edit data view from flyout', async () => {
const prevDataViewId = await PageObjects.discover.getCurrentDataViewId();

await editDataView('*logstash*', '*logstash*');
await editDataView('*logstash*', 'logstash*');

const newDataViewId = await PageObjects.discover.getCurrentDataViewId();
expect(prevDataViewId).to.equal(newDataViewId);

const selectedDataViewElem = await testSubjects.find('discover-dataView-switch-link');
const selectedDataViewTitle = await selectedDataViewElem.getVisibleText();
expect(selectedDataViewTitle).to.equal('*logstash*');
const selectedDataViewName = await selectedDataViewElem.getVisibleText();
expect(selectedDataViewName).to.equal('*logstash*');
});

it('allows edit adhoc data view from flyout', async () => {
Expand Down

0 comments on commit 9e06544

Please sign in to comment.