-
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 test xpack home
- Loading branch information
Showing
10 changed files
with
126 additions
and
2 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
src/plugins/home/public/application/components/__snapshots__/add_data.test.js.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
src/plugins/home/public/application/components/__snapshots__/home.test.js.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
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
2 changes: 2 additions & 0 deletions
2
src/plugins/home/public/application/components/tutorial/__snapshots__/tutorial.test.js.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
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,67 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import { FtrProviderContext } from '../ftr_provider_context'; | ||
|
||
export default function({ getService, getPageObjects }: FtrProviderContext) { | ||
const PageObjects = getPageObjects(['common', 'home']); | ||
const a11y = getService('a11y'); | ||
|
||
describe('Kibana Home', () => { | ||
before(async () => { | ||
await PageObjects.common.navigateToApp('home'); | ||
}); | ||
|
||
it('Kibana Home view', async () => { | ||
await a11y.testAppSnapshot(); | ||
}); | ||
|
||
it('all plugins view page meets a11y requirements', async () => { | ||
await PageObjects.home.clickAllKibanaPlugins(); | ||
await a11y.testAppSnapshot(); | ||
}); | ||
|
||
it('visualize & explore details tab meets a11y requirements', async () => { | ||
await PageObjects.home.clickVisualizeExplorePlugins(); | ||
await a11y.testAppSnapshot(); | ||
}); | ||
|
||
it('administrative detail tab meets a11y requirements', async () => { | ||
await PageObjects.home.clickAdminPlugin(); | ||
await a11y.testAppSnapshot(); | ||
}); | ||
|
||
it('navigating to console app from administration tab meets a11y requirements', async () => { | ||
await PageObjects.home.clickOnConsole(); | ||
await a11y.testAppSnapshot(); | ||
}); | ||
|
||
// issue: https://github.com/elastic/kibana/issues/38980 | ||
it.skip('navigating back to home page from console meets a11y requirements', async () => { | ||
await PageObjects.home.clickOnLogo(); | ||
await a11y.testAppSnapshot(); | ||
}); | ||
|
||
// Extra clickon logo step here will be removed after preceding test is fixed. | ||
it('click on Add logs panel to open all log examples page meets a11y requirements ', async () => { | ||
await PageObjects.home.clickOnLogo(); | ||
await PageObjects.home.ClickOnLogsData(); | ||
await a11y.testAppSnapshot(); | ||
}); | ||
|
||
// issue - logo images are missing alt -text https://github.com/elastic/kibana/issues/62239 | ||
it.skip('click on ActiveMQ logs panel to open tutorial meets a11y requirements', async () => { | ||
await PageObjects.home.clickOnLogsTutorial(); | ||
await a11y.testAppSnapshot(); | ||
}); | ||
|
||
// https://github.com/elastic/kibana/issues/62239 | ||
it.skip('click on cloud tutorial meets a11y requirements', async () => { | ||
await PageObjects.home.clickOnCloudTutorial(); | ||
await a11y.testAppSnapshot(); | ||
}); | ||
}); | ||
} |
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