|
20 | 20 | import { FtrProviderContext } from '../ftr_provider_context'; |
21 | 21 |
|
22 | 22 | export default function({ getService, getPageObjects }: FtrProviderContext) { |
23 | | - const PageObjects = getPageObjects(['common', 'dashboard', 'header', 'home']); |
| 23 | + const PageObjects = getPageObjects(['common', 'dashboard', 'header', 'home', 'settings']); |
24 | 24 | const a11y = getService('a11y'); |
25 | 25 | const esArchiver = getService('esArchiver'); |
26 | 26 | const kibanaServer = getService('kibanaServer'); |
27 | 27 | const dashboardPanelActions = getService('dashboardPanelActions'); |
28 | 28 | const dashboardAddPanel = getService('dashboardAddPanel'); |
29 | 29 | const testSubjects = getService('testSubjects'); |
| 30 | + const find = getService('find'); |
30 | 31 | const listingTable = getService('listingTable'); |
31 | 32 |
|
32 | 33 | describe('Dashboard', () => { |
33 | 34 | const dashboardName = 'Dashboard Listing A11y'; |
34 | | - const deletedDashboardName = 'Dashboard Listing A11y Copy'; |
| 35 | + const clonedDashboardName = 'Dashboard Listing A11y Copy'; |
| 36 | + |
35 | 37 | before(async () => { |
36 | 38 | // await esArchiver.loadIfNeeded('logstash_functional'); |
37 | 39 | // await kibanaServer.uiSettings.update({ |
@@ -153,13 +155,13 @@ export default function({ getService, getPageObjects }: FtrProviderContext) { |
153 | 155 | await a11y.testAppSnapshot(); |
154 | 156 | }); |
155 | 157 |
|
156 | | - it('Delete the original', async () => { |
157 | | - await listingTable.searchForItemWithName(dashboardName); |
| 158 | + it('Delete a11y clone dashboard', async () => { |
| 159 | + await listingTable.searchForItemWithName(clonedDashboardName); |
158 | 160 | await listingTable.checkListingSelectAllCheckbox(); |
159 | 161 | await listingTable.clickDeleteSelected(); |
160 | 162 | await a11y.testAppSnapshot(); |
161 | 163 | await PageObjects.common.clickConfirmOnModal(); |
162 | | - await a11y.testAppSnapshot(); |
| 164 | + await listingTable.searchForItemWithName(''); |
163 | 165 | }); |
164 | 166 |
|
165 | 167 | it('Open flight dashboard', async () => { |
|
0 commit comments