forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Upgrade Assistant] Add A11y Tests (elastic#90265)
* Added overview a11y test. Added data test subjects to the tabs in the app. * Added data test subjects for all tabs and the detail panel on the indidual pages. Updated tests to wait for detail panel to be visible before taking snapshot. * Updated snapshot for upgrade assistant jest tests. Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
- Loading branch information
1 parent
1675cb3
commit b5a05a5
Showing
6 changed files
with
63 additions
and
5 deletions.
There are no files selected for viewing
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
12 changes: 9 additions & 3 deletions
12
...istant/public/application/components/tabs/checkup/__snapshots__/checkup_tab.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
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,44 @@ | ||
/* | ||
* 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(['upgradeAssistant', 'common']); | ||
const a11y = getService('a11y'); | ||
const testSubjects = getService('testSubjects'); | ||
const retry = getService('retry'); | ||
|
||
describe('Upgrade Assistant Home', () => { | ||
before(async () => { | ||
await PageObjects.upgradeAssistant.navigateToPage(); | ||
}); | ||
|
||
it('Overview Tab', async () => { | ||
await retry.waitFor('Upgrade Assistant overview tab to be visible', async () => { | ||
return testSubjects.exists('upgradeAssistantOverviewTabDetail'); | ||
}); | ||
await a11y.testAppSnapshot(); | ||
}); | ||
|
||
it('Cluster Tab', async () => { | ||
await testSubjects.click('upgradeAssistantClusterTab'); | ||
await retry.waitFor('Upgrade Assistant Cluster tab to be visible', async () => { | ||
return testSubjects.exists('upgradeAssistantClusterTabDetail'); | ||
}); | ||
await a11y.testAppSnapshot(); | ||
}); | ||
|
||
it('Indices Tab', async () => { | ||
await testSubjects.click('upgradeAssistantIndicesTab'); | ||
await retry.waitFor('Upgrade Assistant Cluster tab to be visible', async () => { | ||
return testSubjects.exists('upgradeAssistantIndexTabDetail'); | ||
}); | ||
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