mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
unskip test/functional/apps/maps/group4/discover·js (#149554)
Fixes https://github.com/elastic/kibana/issues/137408 and https://github.com/elastic/kibana/issues/149358 flaky test runner https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/1790 Tests flaky because clicking on `Visualize` button not registered. This resulted in test failing because the test started looking for elements in Maps even though the page was still in Discover. PR resolves flakiness by adding retry around click to ensure `Visualize` button is clicked as expected. Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
e8b368c8ab
commit
85b5351c90
2 changed files with 8 additions and 4 deletions
|
@ -598,7 +598,13 @@ export class DiscoverPageObject extends FtrService {
|
|||
}
|
||||
|
||||
await this.waitUntilFieldPopoverIsOpen();
|
||||
await this.testSubjects.click(`fieldVisualize-${fieldName}`);
|
||||
const visualizeButtonTestSubject = `fieldVisualize-${fieldName}`;
|
||||
// wrap visualize button click in retry to ensure button is clicked and retry if button click is not registered
|
||||
await this.retry.try(async () => {
|
||||
await this.testSubjects.click(visualizeButtonTestSubject);
|
||||
await this.testSubjects.waitForDeleted(visualizeButtonTestSubject);
|
||||
await this.testSubjects.missingOrFail(visualizeButtonTestSubject);
|
||||
});
|
||||
await this.header.waitUntilLoadingHasFinished();
|
||||
}
|
||||
|
||||
|
|
|
@ -14,9 +14,7 @@ export default function ({ getService, getPageObjects }) {
|
|||
const from = 'Sep 22, 2015 @ 00:00:00.000';
|
||||
const to = 'Sep 22, 2015 @ 04:00:00.000';
|
||||
|
||||
// Failing: See https://github.com/elastic/kibana/issues/137408
|
||||
// Failing: See https://github.com/elastic/kibana/issues/149358
|
||||
describe.skip('discover visualize button', () => {
|
||||
describe('discover visualize button', () => {
|
||||
beforeEach(async () => {
|
||||
await security.testUser.setRoles([
|
||||
'test_logstash_reader',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue