Fix flaky test where modal dialog isn't loaded when enter key is pressed (#20035)

This commit is contained in:
Stacey Gammon 2018-06-19 16:04:04 -04:00 committed by GitHub
parent 4661d8543c
commit e35b40e946
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,12 +59,14 @@ export default function ({ getService, getPageObjects }) {
});
});
describe.skip('delete', async function () {
describe('delete', async function () {
it('default confirm action is cancel', async function () {
await PageObjects.dashboard.searchForDashboardWithName(dashboardName);
await PageObjects.dashboard.checkDashboardListingSelectAllCheckbox();
await PageObjects.dashboard.clickDeleteSelectedDashboards();
await PageObjects.common.expectConfirmModalOpenState(true);
await PageObjects.common.pressEnterKey();
await PageObjects.common.expectConfirmModalOpenState(false);