Skip to content

Commit

Permalink
add retry on stale for another suspicious part
Browse files Browse the repository at this point in the history
  • Loading branch information
gergoabraham committed Oct 23, 2024
1 parent 602f229 commit ec8c5cf
Showing 1 changed file with 15 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
targetTags(this, ['@ess', '@serverless']);
this.timeout(10 * MINUTES);

const clearPrefilledEntries = async () => {
const entriesContainer = await testSubjects.find('exceptionEntriesContainer');

let deleteButtons: WebElementWrapper[];
do {
deleteButtons = await testSubjects.findAllDescendant(
'builderItemEntryDeleteButton',
entriesContainer
);

await deleteButtons[0].click();
} while (deleteButtons.length > 1);
};
let clearPrefilledEntries: () => Promise<void>;

const openNewEndpointExceptionFlyout = async () => {
retryOnStale(async () => {
Expand Down Expand Up @@ -166,6 +154,20 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
};

await deleteEndpointExceptions();

clearPrefilledEntries = async () => {
const entriesContainer = await testSubjects.find('exceptionEntriesContainer');

let deleteButtons: WebElementWrapper[];
do {
deleteButtons = await testSubjects.findAllDescendant(
'builderItemEntryDeleteButton',
entriesContainer
);

await deleteButtons[0].click();
} while (deleteButtons.length > 1);
};
});

it('should add `event.module=endpoint` to entry if only wildcard operator is present', async () => {
Expand Down

0 comments on commit ec8c5cf

Please sign in to comment.