Skip to content

Commit

Permalink
Retry waiting for Add to new case option
Browse files Browse the repository at this point in the history
  • Loading branch information
CoenWarmer committed May 1, 2023
1 parent 4e88645 commit a127521
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ export default ({ getService, getPageObjects }: FtrProviderContext) => {
const observability = getService('observability');
const retry = getService('retry');

// Failing: See https://github.com/elastic/kibana/issues/154726
describe.skip('Observability alerts / Add to case >', function () {
describe('Observability alerts / Add to case >', function () {
this.tags('includeFirefox');

before(async () => {
Expand All @@ -26,7 +25,7 @@ export default ({ getService, getPageObjects }: FtrProviderContext) => {
await esArchiver.unload('x-pack/test/functional/es_archives/observability/alerts');
});

describe('When user has all priviledges for cases', () => {
describe('When user has all privileges for cases', () => {
before(async () => {
await observability.users.setTestUserRole(
observability.users.defineBasicObservabilityRole({
Expand All @@ -49,8 +48,10 @@ export default ({ getService, getPageObjects }: FtrProviderContext) => {
});
});

it('opens a flyout when Add to new case is clicked', async () => {
await observability.alerts.addToCase.addToNewCaseButtonClick();
it('opens a flyout when "Add to new case" is clicked', async () => {
await retry.try(async () => {
await observability.alerts.addToCase.addToNewCaseButtonClick();
});

await retry.try(async () => {
await observability.alerts.addToCase.getCreateCaseFlyoutOrFail();
Expand Down

0 comments on commit a127521

Please sign in to comment.