mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
parent
afe00a0091
commit
f85bfd66e5
1 changed files with 20 additions and 1 deletions
|
@ -28,14 +28,33 @@ export default function({ getService, getPageObjects }: FtrProviderContext) {
|
|||
await PageObjects.security.forceLogout();
|
||||
});
|
||||
|
||||
it('meets a11y requirements', async () => {
|
||||
it('login page meets a11y requirements', async () => {
|
||||
await PageObjects.common.navigateToApp('login');
|
||||
|
||||
await retry.waitFor(
|
||||
'login page visible',
|
||||
async () => await testSubjects.exists('loginSubmit')
|
||||
);
|
||||
await a11y.testAppSnapshot();
|
||||
});
|
||||
|
||||
it('User can login with a11y requirements', async () => {
|
||||
await PageObjects.security.login();
|
||||
await a11y.testAppSnapshot();
|
||||
});
|
||||
|
||||
it('Wrong credentials message meets a11y requirements', async () => {
|
||||
await PageObjects.security.loginPage.login('wrong-user', 'wrong-password', {
|
||||
expectSuccess: false,
|
||||
});
|
||||
await PageObjects.security.loginPage.getErrorMessage();
|
||||
await a11y.testAppSnapshot();
|
||||
});
|
||||
|
||||
it('Logout message acknowledges a11y requirements', async () => {
|
||||
await PageObjects.security.login();
|
||||
await PageObjects.security.logout();
|
||||
await testSubjects.getVisibleText('loginInfoMessage');
|
||||
await a11y.testAppSnapshot();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue