Skip to content

Commit 056fb5a

Browse files
committed
fixing delete and adding dima changes
1 parent 45715b0 commit 056fb5a

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

test/accessibility/apps/dashboard.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,20 @@
2020
import { FtrProviderContext } from '../ftr_provider_context';
2121

2222
export default function({ getService, getPageObjects }: FtrProviderContext) {
23-
const PageObjects = getPageObjects(['common', 'dashboard', 'header', 'home']);
23+
const PageObjects = getPageObjects(['common', 'dashboard', 'header', 'home', 'settings']);
2424
const a11y = getService('a11y');
2525
const esArchiver = getService('esArchiver');
2626
const kibanaServer = getService('kibanaServer');
2727
const dashboardPanelActions = getService('dashboardPanelActions');
2828
const dashboardAddPanel = getService('dashboardAddPanel');
2929
const testSubjects = getService('testSubjects');
30+
const find = getService('find');
3031
const listingTable = getService('listingTable');
3132

3233
describe('Dashboard', () => {
3334
const dashboardName = 'Dashboard Listing A11y';
34-
const deletedDashboardName = 'Dashboard Listing A11y Copy';
35+
const clonedDashboardName = 'Dashboard Listing A11y Copy';
36+
3537
before(async () => {
3638
// await esArchiver.loadIfNeeded('logstash_functional');
3739
// await kibanaServer.uiSettings.update({
@@ -153,13 +155,13 @@ export default function({ getService, getPageObjects }: FtrProviderContext) {
153155
await a11y.testAppSnapshot();
154156
});
155157

156-
it('Delete the original', async () => {
157-
await listingTable.searchForItemWithName(dashboardName);
158+
it('Delete a11y clone dashboard', async () => {
159+
await listingTable.searchForItemWithName(clonedDashboardName);
158160
await listingTable.checkListingSelectAllCheckbox();
159161
await listingTable.clickDeleteSelected();
160162
await a11y.testAppSnapshot();
161163
await PageObjects.common.clickConfirmOnModal();
162-
await a11y.testAppSnapshot();
164+
await listingTable.searchForItemWithName('');
163165
});
164166

165167
it('Open flight dashboard', async () => {

0 commit comments

Comments
 (0)