Skip to content

chore(ci): move range-kots-version test to playwright#5167

Merged
emosbaugh merged 4 commits intomainfrom
move-range-kots-version-test-to-playwright
Mar 5, 2025
Merged

chore(ci): move range-kots-version test to playwright#5167
emosbaugh merged 4 commits intomainfrom
move-range-kots-version-test-to-playwright

Conversation

@emosbaugh
Copy link
Member

What this PR does / why we need it:

Which issue(s) this PR fixes:

Does this PR require a test?

Does this PR require a release note?


Does this PR require documentation?

@emosbaugh
Copy link
Member Author

[sc-120670]

@emosbaugh emosbaugh marked this pull request as ready for review March 5, 2025 14:55
@emosbaugh emosbaugh requested a review from sgalsaleh March 5, 2025 14:55
@emosbaugh
Copy link
Member Author

Failing tests are due to rotated key. Merging


const errorMessage = airgapUpdateErrorMessage(page);
await expect(errorMessage).toContainText("requires");
await expect(errorMessage).toContainText(constants.RESTRICTIVE_TARGET_KOTS_VERSION);
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't this be min kots version not target?

Copy link
Member Author

Choose a reason for hiding this comment

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

The test im porting it from calls it the same

return errorMsg.includes("requires") && errorMsg.includes(testRestrictiveTargetKotsVersion);

https://app.testim.io/#/project/wpYAooUimFDgQxY73r17/branch/master/test/8rpv6TcGvHgZ5RUQ/step/9TTzkJ47uvcMQv8g?path=BpDZz3PsPjJPF47d%3A9TTzkJ47uvcMQv8g

Copy link
Member

Choose a reason for hiding this comment

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

that's for install, not update


let errorMessage = card.getByTestId("version-download-status");
await expect(errorMessage).toContainText("requires", { timeout: 5 * 1000 }); // 5 seconds
await expect(errorMessage).toContainText(constants.RESTRICTIVE_TARGET_KOTS_VERSION);
Copy link
Member

Choose a reason for hiding this comment

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

ditto


errorMessage = card.getByTestId("version-downloading-status");
await expect(errorMessage).toContainText("requires", { timeout: 5 * 1000 }); // 5 seconds
await expect(errorMessage).toContainText(constants.RESTRICTIVE_TARGET_KOTS_VERSION);
Copy link
Member

Choose a reason for hiding this comment

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

ditto

@emosbaugh emosbaugh requested a review from sgalsaleh March 5, 2025 16:17
@emosbaugh emosbaugh merged commit d60aabb into main Mar 5, 2025
129 of 131 checks passed
@emosbaugh emosbaugh deleted the move-range-kots-version-test-to-playwright branch March 5, 2025 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants