-
Notifications
You must be signed in to change notification settings - Fork 52
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
test: fix failing MAAS UI e2e tests #5198
test: fix failing MAAS UI e2e tests #5198
Conversation
Demo starting at https://maas-ui-5198.demos.haus |
@Jay-Topher Changes that are related to tests only are usually prefixed with |
cypress/support/commands.ts
Outdated
cy.get("button[type='submit']", { timeout: LONG_TIMEOUT }) | ||
.should("be.enabled") | ||
.click(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As explained in the acceptance criteria, our goal here is to:
Wait for ephemeral OS to be available or provide a workaround allowing the test to pass when it’s unavailable
Generic timeout wait specific enough. I'd recommend to talk to someone from the MAAS core team, share a screenshot of the failing test where ephemeral message is visible and find if there are better ways of detecting this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, thanks I reach out to someone concerning this, this is not up for review yet, I created a draft PR as a sandbox to get Cypress test results.
703df95
to
b5cfe33
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Glad you managed to figure this out! Let's clean this up a bit before we merge.
.github/workflows/cypress.yml
Outdated
@@ -36,6 +36,7 @@ jobs: | |||
run: | | |||
export API_KEY=`sudo maas apikey --username=admin` | |||
maas login admin http://localhost:5240/MAAS $API_KEY | |||
while [ $(maas admin boot-resources is-importing | cat) == "true" ]; do sleep 10; done; echo "syncing finished" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think ideally it should be moved to a separate step (e.g. with a name "Wait for MAAS boot resources") which would help track its progress (and execution time).
Done
QA steps
Fixes
1967
Fixes: