Skip to content

Commit

Permalink
test(NA): add waitFor on artifact_entries_list ftr test
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic committed Dec 19, 2023
1 parent 683b55d commit cc78d15
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,10 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
await createArtifact(testData, { policyId: policyInfo.packagePolicy.id });
// Check new artifact is in the list
for (const checkResult of testData.create.checkResults) {
expect(await testSubjects.getVisibleText(checkResult.selector)).to.equal(
checkResult.value
);
await retry.waitForWithTimeout('entry is added in list', 10000, async () => {
const currentValue = await testSubjects.getVisibleText(checkResult.selector);
return currentValue === checkResult.value;
});
}
await pageObjects.common.closeToast();

Expand Down

0 comments on commit cc78d15

Please sign in to comment.