Check for toast before waiting for page to finish loading to avoid mi… (#24424)

* Check for toast before waiting for page to finish loading to avoid missing the toast by the time the page finishes

* turn test back on
This commit is contained in:
Stacey Gammon 2018-10-30 09:57:55 -04:00 committed by GitHub
parent a86998a0fc
commit fb7dbaeb6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View file

@ -80,7 +80,7 @@ export default function ({ getService, getPageObjects }) {
await dashboardExpect.vegaTextsDoNotExist(['5,000']);
};
describe.skip('dashboard embeddable rendering', function describeIndexTests() {
describe('dashboard embeddable rendering', function describeIndexTests() {
before(async () => {
await PageObjects.dashboard.clickNewDashboard();

View file

@ -317,11 +317,9 @@ export function DashboardPageProvider({ getService, getPageObjects }) {
await this.clickSave();
}
await PageObjects.header.waitUntilLoadingHasFinished();
// Confirm that the Dashboard has actually been saved
await testSubjects.existOrFail('saveDashboardSuccess');
await PageObjects.header.waitUntilLoadingHasFinished();
await this.waitForSaveModalToClose();
}