From 984fd8687501e70d01b3dbc5b2b05882706ee377 Mon Sep 17 00:00:00 2001 From: Nick Peihl Date: Tue, 18 Apr 2023 10:17:27 -0400 Subject: [PATCH] Use PageObject service methods to fix flaky test --- x-pack/test/accessibility/apps/maps.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/x-pack/test/accessibility/apps/maps.ts b/x-pack/test/accessibility/apps/maps.ts index 5a315260a0b2d..af74466fb8f24 100644 --- a/x-pack/test/accessibility/apps/maps.ts +++ b/x-pack/test/accessibility/apps/maps.ts @@ -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, @@ -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(); });