Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for test 01 aimed at GKE #4258

Merged
merged 1 commit into from
Feb 10, 2022
Merged

Fix for test 01 aimed at GKE #4258

merged 1 commit into from
Feb 10, 2022

Conversation

castelblanque
Copy link
Collaborator

Signed-off-by: Rafa Castelblanque rcastelblanq@vmware.com

Description of the change

Fixes the E2E test number 01 that is failing in GKE but not on Kind.

Benefits

Test should not fail now in GKE.

Possible drawbacks

Hopefully none

Signed-off-by: Rafa Castelblanque <rcastelblanq@vmware.com>
@@ -28,6 +28,8 @@ test.describe("Limited user simple deployments", () => {
await releaseNameLocator.fill(utils.getRandomName("test-01-release"));
await page.locator('cds-button:has-text("Deploy")').click();

// Assertions
await page.waitForSelector(".alert-items .alert-text");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So it was just a kind of race condition, that's why retrying made it to work?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I would say that if the error message was appearing almost immediately, the problem was hidden. It makes total sense to have this waitForSelector, as neither page.locator nor expect(errorLocator) wait for the error to be there.

@castelblanque castelblanque merged commit 121640a into main Feb 10, 2022
@castelblanque castelblanque deleted the e2e-01-test-fix branch February 10, 2022 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants