Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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