Skip to content

Commit

Permalink
fixing delete and adding dima changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavyarm committed Feb 19, 2020
1 parent 45715b0 commit 056fb5a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions test/accessibility/apps/dashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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 () => {
Expand Down

0 comments on commit 056fb5a

Please sign in to comment.