Skip to content

Commit

Permalink
[EBT] Fix flaky test for Context Providers in the browser (#131957)
Browse files Browse the repository at this point in the history
  • Loading branch information
afharo authored May 11, 2022
1 parent 040efae commit 10915c9
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const ebtUIHelper = getService('kibana_ebt_ui');
const { common } = getPageObjects(['common']);

// FLAKY: https://github.com/elastic/kibana/issues/131729
describe.skip('Core Context Providers', () => {
describe('Core Context Providers', () => {
let event: Event;
before(async () => {
await common.navigateToApp('home');
Expand Down Expand Up @@ -73,7 +72,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
expect(event.context).not.to.have.property('page'); // In the Home app it's not available.
});

it('should have the properties provided by the "license info" context provider', () => {
it('should have the properties provided by the "license info" context provider', async () => {
await common.clickAndValidate('kibanaChrome', 'kibanaChrome');
[event] = await ebtUIHelper.getLastEvents(1, ['click']); // Get a later event to ensure license has been obtained already.
expect(event.context).to.have.property('license_id');
expect(event.context.license_id).to.be.a('string');
expect(event.context).to.have.property('license_status');
Expand Down

0 comments on commit 10915c9

Please sign in to comment.