Skip to content

Commit

Permalink
Unskip advanced settings a11y test (#100558) (#101218)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavyarm committed Jun 2, 2021
1 parent 2bbcad4 commit b2b37ae
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions x-pack/test/accessibility/apps/advanced_settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const PageObjects = getPageObjects(['common', 'settings', 'header']);
const a11y = getService('a11y');
const testSubjects = getService('testSubjects');
const toasts = getService('toasts');

describe('Stack Management -Advanced Settings', () => {
// click on Management > Advanced settings
Expand All @@ -19,36 +20,42 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
shouldUseHashForSubUrl: false,
});
await testSubjects.click('settings');
await toasts.dismissAllToasts();
await a11y.testAppSnapshot();
});

// clicking on the top search bar
it('adv settings - search ', async () => {
await testSubjects.click('settingsSearchBar');
await toasts.dismissAllToasts();
await a11y.testAppSnapshot();
});

// clicking on the category dropdown
it('adv settings - category -dropdown ', async () => {
await testSubjects.click('settingsSearchBar');
await toasts.dismissAllToasts();
await a11y.testAppSnapshot();
});

// clicking on the toggle button
it('adv settings - toggle ', async () => {
await testSubjects.click('advancedSetting-editField-csv:quoteValues');
await toasts.dismissAllToasts();
await a11y.testAppSnapshot();
});

// clicking on editor panel
it('adv settings - edit ', async () => {
await testSubjects.click('advancedSetting-editField-csv:separator');
await toasts.dismissAllToasts();
await a11y.testAppSnapshot();
});

// clicking on save button
it('adv settings - save', async () => {
await testSubjects.click('advancedSetting-saveButton');
await toasts.dismissAllToasts();
await a11y.testAppSnapshot();
});
});
Expand Down

0 comments on commit b2b37ae

Please sign in to comment.