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 list tests #5286

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

ndv99
Copy link
Contributor

@ndv99 ndv99 commented Jan 16, 2024

Done

  • Fixed "can select a machine range" test
  • Fixed button selector in machine add commands

This should also fix the machine actions test suite.

QA steps

  • Run machines/list.spec.ts
  • Ensure it passes

@webteam-app
Copy link

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

@@ -39,7 +39,7 @@ Cypress.Commands.add("loginNonAdmin", () => {

Cypress.Commands.add("addMachine", (hostname = generateName()) => {
cy.visit(generateMAASURL("/machines"));
cy.get("[data-testid='add-hardware-dropdown'] button").click();
cy.findByRole("button", { name: "Add hardware" }).click();
Copy link
Contributor

Choose a reason for hiding this comment

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

Every test id replacement with a semantic query has has my 👍

@ndv99 ndv99 merged commit 114d228 into canonical:main Jan 16, 2024
7 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