-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A11y tests for license management page (#127497)
(cherry picked from commit faa3fc6)
- Loading branch information
Showing
4 changed files
with
56 additions
and
1 deletion.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
x-pack/plugins/license_management/__jest__/__snapshots__/upload_license.test.tsx.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import { FtrProviderContext } from '../ftr_provider_context'; | ||
|
||
export default function ({ getService, getPageObjects }: FtrProviderContext) { | ||
const PageObjects = getPageObjects(['licenseManagement', 'common']); | ||
const a11y = getService('a11y'); | ||
const testSubjects = getService('testSubjects'); | ||
|
||
describe('Upgrade Assistant a11y tests', () => { | ||
before(async () => { | ||
await PageObjects.common.navigateToApp('licenseManagement'); | ||
}); | ||
|
||
it('License management page overview meets a11y requirements', async () => { | ||
await a11y.testAppSnapshot(); | ||
}); | ||
|
||
it('Update license panel meets a11y requirements', async () => { | ||
await testSubjects.click('updateLicenseButton'); | ||
await a11y.testAppSnapshot(); | ||
}); | ||
|
||
it('Upload license error panel meets a11y requirements', async () => { | ||
await testSubjects.click('uploadLicenseButton'); | ||
await a11y.testAppSnapshot(); | ||
}); | ||
|
||
it('Revert to basic license confirmation panel meets a11y requirements', async () => { | ||
await testSubjects.click('cancelUploadButton'); | ||
await testSubjects.click('revertToBasicButton'); | ||
await a11y.testAppSnapshot(); | ||
await testSubjects.click('confirmModalCancelButton'); | ||
}); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters