Skip to content

Commit

Permalink
Use PageObject service methods to fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
nickpeihl committed Apr 18, 2023
1 parent 0a38f85 commit 984fd86
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions x-pack/test/accessibility/apps/maps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const inspector = getService('inspector');
const PageObjects = getPageObjects(['common', 'settings', 'header', 'home', 'maps']);

// Failing: See https://github.com/elastic/kibana/issues/154913
describe.skip('Maps app Accessibility', () => {
describe('Maps app Accessibility', () => {
before(async () => {
await PageObjects.common.navigateToUrl('home', '/tutorial_directory/sampleData', {
useActualUrl: true,
Expand Down Expand Up @@ -79,12 +78,12 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
});

it('full screen button should exist', async () => {
await testSubjects.click('mapsFullScreenMode');
await PageObjects.maps.existFullScreen();
await a11y.testAppSnapshot();
});

it('displays exit full screen logo button', async () => {
await testSubjects.click('exitFullScreenModeButton');
await PageObjects.maps.enterFullScreen();
await a11y.testAppSnapshot();
});

Expand Down

0 comments on commit 984fd86

Please sign in to comment.