Skip to content

Commit

Permalink
[FTR][BugFix] Fix for Failed FTR cis integration (elastic#175396)
Browse files Browse the repository at this point in the history
## Summary

This PR is to address failed/flaky ftr

https://github.com/orgs/elastic/projects/705/views/8?filterQuery=area%3A%22Cloud+Risk+Mgmt%22+sprint%3A%40current+assignee%3Aanimehart&pane=issue&itemId=43745926
The test fails due to the page is still loading. This PR adds a wait for
the page to fully load first before doing the test steps
  • Loading branch information
animehart authored and CoenWarmer committed Feb 15, 2024
1 parent fffb572 commit e0f12f7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ export function AddCisIntegrationFormPageProvider({
'integrations/cloud_security_posture/add-integration/cspm',
{ shouldUseHashForSubUrl: false }
);
await PageObjects.header.waitUntilLoadingHasFinished();
};

const navigateToAddIntegrationCnvmPage = async () => {
Expand All @@ -139,6 +140,7 @@ export function AddCisIntegrationFormPageProvider({
'integrations/cloud_security_posture/add-integration/vuln_mgmt',
{ shouldUseHashForSubUrl: false }
);
await PageObjects.header.waitUntilLoadingHasFinished();
};

const navigateToIntegrationCspList = async () => {
Expand All @@ -150,6 +152,7 @@ export function AddCisIntegrationFormPageProvider({
shouldLoginIfPrompted: false,
}
);
await PageObjects.header.waitUntilLoadingHasFinished();
};

const clickPolicyToBeEdited = async (name: string) => {
Expand Down

0 comments on commit e0f12f7

Please sign in to comment.