From 056fb5acff2326323ddb78ea92ab6ee7dc5cee7c Mon Sep 17 00:00:00 2001 From: bhavyarm Date: Wed, 19 Feb 2020 18:11:41 -0500 Subject: [PATCH] fixing delete and adding dima changes --- test/accessibility/apps/dashboard.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/test/accessibility/apps/dashboard.ts b/test/accessibility/apps/dashboard.ts index 862044e285f1ff..04a85f6fc5132e 100644 --- a/test/accessibility/apps/dashboard.ts +++ b/test/accessibility/apps/dashboard.ts @@ -20,18 +20,20 @@ import { FtrProviderContext } from '../ftr_provider_context'; export default function({ getService, getPageObjects }: FtrProviderContext) { - const PageObjects = getPageObjects(['common', 'dashboard', 'header', 'home']); + const PageObjects = getPageObjects(['common', 'dashboard', 'header', 'home', 'settings']); const a11y = getService('a11y'); const esArchiver = getService('esArchiver'); const kibanaServer = getService('kibanaServer'); const dashboardPanelActions = getService('dashboardPanelActions'); const dashboardAddPanel = getService('dashboardAddPanel'); const testSubjects = getService('testSubjects'); + const find = getService('find'); const listingTable = getService('listingTable'); describe('Dashboard', () => { const dashboardName = 'Dashboard Listing A11y'; - const deletedDashboardName = 'Dashboard Listing A11y Copy'; + const clonedDashboardName = 'Dashboard Listing A11y Copy'; + before(async () => { // await esArchiver.loadIfNeeded('logstash_functional'); // await kibanaServer.uiSettings.update({ @@ -153,13 +155,13 @@ export default function({ getService, getPageObjects }: FtrProviderContext) { await a11y.testAppSnapshot(); }); - it('Delete the original', async () => { - await listingTable.searchForItemWithName(dashboardName); + it('Delete a11y clone dashboard', async () => { + await listingTable.searchForItemWithName(clonedDashboardName); await listingTable.checkListingSelectAllCheckbox(); await listingTable.clickDeleteSelected(); await a11y.testAppSnapshot(); await PageObjects.common.clickConfirmOnModal(); - await a11y.testAppSnapshot(); + await listingTable.searchForItemWithName(''); }); it('Open flight dashboard', async () => {