Skip to content

Commit

Permalink
use fixed isChromeVisible method (#71813)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshustov authored Jul 15, 2020
1 parent 21156d6 commit 667b72f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions x-pack/test/functional_embedded/tests/iframe_embedded.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const browser = getService('browser');
const config = getService('config');
const testSubjects = getService('testSubjects');
const retry = getService('retry');

// Flaky: https://github.com/elastic/kibana/issues/70928
describe.skip('in iframe', () => {
describe('in iframe', () => {
it('should open Kibana for logged-in user', async () => {
const isChromeHiddenBefore = await PageObjects.common.isChromeHidden();
expect(isChromeHiddenBefore).to.be(true);
Expand All @@ -36,8 +36,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const iframe = await testSubjects.find('iframe_embedded');
await browser.switchToFrame(iframe);

const isChromeHidden = await PageObjects.common.isChromeHidden();
expect(isChromeHidden).to.be(false);
await retry.waitFor('page rendered for a logged-in user', async () => {
return await PageObjects.common.isChromeVisible();
});
});
});
}

0 comments on commit 667b72f

Please sign in to comment.