Stabilize closing toast (#72097)
* stabilize closing toast * unskip test Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
parent
b9aede40d6
commit
78ea171a80
|
@ -28,8 +28,7 @@ export default function ({ getService, getPageObjects, updateBaselines }) {
|
||||||
const dashboardPanelActions = getService('dashboardPanelActions');
|
const dashboardPanelActions = getService('dashboardPanelActions');
|
||||||
const dashboardAddPanel = getService('dashboardAddPanel');
|
const dashboardAddPanel = getService('dashboardAddPanel');
|
||||||
|
|
||||||
// FLAKY: https://github.com/elastic/kibana/issues/52854
|
describe('dashboard snapshots', function describeIndexTests() {
|
||||||
describe.skip('dashboard snapshots', function describeIndexTests() {
|
|
||||||
before(async function () {
|
before(async function () {
|
||||||
await esArchiver.load('dashboard/current/kibana');
|
await esArchiver.load('dashboard/current/kibana');
|
||||||
await kibanaServer.uiSettings.replace({
|
await kibanaServer.uiSettings.replace({
|
||||||
|
|
|
@ -407,7 +407,11 @@ export function CommonPageProvider({ getService, getPageObjects }: FtrProviderCo
|
||||||
async closeToastIfExists() {
|
async closeToastIfExists() {
|
||||||
const toastShown = await find.existsByCssSelector('.euiToast');
|
const toastShown = await find.existsByCssSelector('.euiToast');
|
||||||
if (toastShown) {
|
if (toastShown) {
|
||||||
await find.clickByCssSelector('.euiToast__closeButton');
|
try {
|
||||||
|
await find.clickByCssSelector('.euiToast__closeButton');
|
||||||
|
} catch (err) {
|
||||||
|
// ignore errors, toast clear themselves after timeout
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue