Skip to content

Commit

Permalink
[RsponseOps] Fix flaky rules list test (#131567)
Browse files Browse the repository at this point in the history
* Add delay to make test less flaky

* Addressed comments

* Addressed comments
  • Loading branch information
JiaweiWu authored May 6, 2022
1 parent c4b554a commit 37443e9
Showing 1 changed file with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
await testSubjects.click('rulesTab');
}

// FLAKY: https://github.com/elastic/kibana/issues/131535
describe.skip('rules list', function () {
describe('rules list', function () {
before(async () => {
await pageObjects.common.navigateToApp('triggersActions');
await testSubjects.click('rulesTab');
Expand Down Expand Up @@ -640,24 +639,34 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
// Select enabled
await testSubjects.click('ruleStatusFilterButton');
await testSubjects.click('ruleStatusFilterOption-enabled');
await find.waitForDeletedByCssSelector('.euiBasicTable-loading');

await assertRulesLength(1);

// Select disabled
await testSubjects.click('ruleStatusFilterOption-enabled');
await testSubjects.click('ruleStatusFilterOption-disabled');
await find.waitForDeletedByCssSelector('.euiBasicTable-loading');

await assertRulesLength(1);

// Select snoozed
await testSubjects.click('ruleStatusFilterOption-disabled');
await testSubjects.click('ruleStatusFilterOption-snoozed');
await find.waitForDeletedByCssSelector('.euiBasicTable-loading');

await assertRulesLength(1);

// Select disabled and snoozed
await testSubjects.click('ruleStatusFilterOption-disabled');
await find.waitForDeletedByCssSelector('.euiBasicTable-loading');

await assertRulesLength(2);

// Select all 3
await testSubjects.click('ruleStatusFilterOption-enabled');
await find.waitForDeletedByCssSelector('.euiBasicTable-loading');

await assertRulesLength(3);
});
});
Expand Down

0 comments on commit 37443e9

Please sign in to comment.