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

Workaround for rancher registry bug #670

Merged
merged 1 commit into from
Mar 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions tests/e2e/rancher/rancher-apps.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,12 @@ export class RancherAppsPage extends BasePage {
// Translate 1.9.3 -> ^\s*1[.]9[.]3\s
if (typeof v === 'string') v = new RegExp(`^\\s*${v.replace(/[.]/g, '[.]')}\\s`)
await this.ui.selectOption('Version', v)
await this.ui.withReload(async() => {
await expect(this.ui.checkbox('Container Registry')).toBeChecked()
}, 'Container Registry is unchecked after version change')

// Wrong registry - https://github.com/rancher/dashboard/issues/10703
await expect(this.ui.select('Version')).toBeVisible()
if (await this.ui.checkbox('Container Registry').isVisible()) {
await this.page.reload()
}
}
await this.nextBtn.click()

Expand Down
Loading