Skip to content

Commit

Permalink
Stabilize closing toast (#72097) (#73200)
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 authored Jul 27, 2020
1 parent c23219f commit 632db37
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 1 addition & 3 deletions test/functional/apps/dashboard/dashboard_snapshots.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ export default function ({ getService, getPageObjects, updateBaselines }) {
const dashboardPanelActions = getService('dashboardPanelActions');
const dashboardAddPanel = getService('dashboardAddPanel');

// SKIPPED as it is failing in ES PROMOTION: https://github.com/elastic/kibana/issues/68595
// FLAKY: https://github.com/elastic/kibana/issues/52854
describe.skip('dashboard snapshots', function describeIndexTests() {
describe('dashboard snapshots', function describeIndexTests() {
before(async function () {
await esArchiver.load('dashboard/current/kibana');
await kibanaServer.uiSettings.replace({
Expand Down
6 changes: 5 additions & 1 deletion test/functional/page_objects/common_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,11 @@ export function CommonPageProvider({ getService, getPageObjects }: FtrProviderCo
async closeToastIfExists() {
const toastShown = await find.existsByCssSelector('.euiToast');
if (toastShown) {
await this.closeToast();
try {
await this.closeToast();
} catch (err) {
// ignore errors, toast clear themselves after timeout
}
}
}

Expand Down

0 comments on commit 632db37

Please sign in to comment.