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

test: fix Cypress machine details tests #5287

Merged

Conversation

ndv99
Copy link
Contributor

@ndv99 ndv99 commented Jan 16, 2024

Done

  • Added steps to add and delete a machine for subnet column visibility test
  • Replaced label text assertion with role assertion for searchbox in commissioning details test

QA steps

  • Run machines/details.spec.ts
  • Ensure the tests pass

@webteam-app
Copy link

Demo starting at https://maas-ui-5287.demos.haus

Comment on lines +43 to +49
// delete the machine
cy.findByRole("button", { name: /Menu/i }).click();
cy.findByRole("button", { name: /Delete/i }).click();
cy.findByRole("button", { name: /Delete machine/i }).click();
cy.waitForPageToLoad();
// verify the user has been redirected to the machine list
cy.url().should("include", generateMAASURL("/machines"));
Copy link
Contributor

Choose a reason for hiding this comment

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

We also have cy.deleteMachine()

@petermakowski petermakowski merged commit 1bb1df1 into canonical:main Jan 16, 2024
5 checks passed
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.

3 participants