mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
toast selector
This commit is contained in:
parent
1ce8fee523
commit
91d19bc0fb
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
return toastCount > 1;
|
||||
});
|
||||
const warningToast = await toasts.getToastElement(2);
|
||||
const textEl = await warningToast.findByClassName('euiToastBody');
|
||||
const textEl = await warningToast.findByTestSubject('euiToastBody');
|
||||
const text: string = await textEl.getVisibleText();
|
||||
expect(text).to.contain('Watch out!');
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue