toast selector

This commit is contained in:
Greg Thompson 2022-08-17 11:07:18 -05:00
parent 1ce8fee523
commit 91d19bc0fb
No known key found for this signature in database
GPG key ID: ED1F695C1077B958

View file

@ -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!');
});