Skip to content

Commit

Permalink
[Discover] Unskip serverless alerts tests (#180913)
Browse files Browse the repository at this point in the history
- Closes #180311
- Closes #180305

25x
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5693
25x more
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5698

Also going to close other tickets as these tests are a part of the same
test suit and the flaky test runner finished green with all of them:
- Closes #172365
- Closes #172366
- Closes #180100
- Closes #180101
  • Loading branch information
jughosta authored Apr 17, 2024
1 parent 7ff0088 commit 80e14ce
Showing 1 changed file with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,19 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
}

await filterBar.addFilter({ field: 'rule_id', operation: 'is', value: ruleId });
await PageObjects.discover.waitUntilSearchingHasFinished();

await retry.waitFor('results', async () => {
await PageObjects.header.waitUntilLoadingHasFinished();
await PageObjects.discover.waitUntilSearchingHasFinished();

const alreadyHasData = await testSubjects.exists('docTable');

if (!alreadyHasData) {
await testSubjects.click('querySubmitButton');
}

return alreadyHasData;
});

const link = await getResultsLink();
await filterBar.removeFilter('rule_id'); // clear filter bar
Expand Down Expand Up @@ -342,8 +354,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
expect(await titleElem.getAttribute('value')).to.equal(dataView);
};

// Failing: See https://github.com/elastic/kibana/issues/180311
describe.skip('Search source Alert', () => {
describe('Search source Alert', () => {
before(async () => {
await security.testUser.setRoles(['discover_alert']);
await PageObjects.svlCommonPage.loginAsAdmin();
Expand Down

0 comments on commit 80e14ce

Please sign in to comment.