Skip to content

Commit

Permalink
test: fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
petermakowski committed Mar 1, 2024
1 parent 96450b0 commit 17abd3f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
4 changes: 1 addition & 3 deletions cypress/e2e/with-users/login/login.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ context("Login page", () => {

it("displays an error message if submitted invalid login credentials", () => {
cy.findByRole("textbox", { name: /Username/ }).type("invalid-username");
cy.findByLabelText(/Password/)
.type("invalid-password")
.type("{enter}");
cy.findByLabelText(/Password/).type("invalid-password{enter}");
cy.findByRole("alert")
.should("be.visible")
.should("include.text", "Please enter a correct username and password");
Expand Down
13 changes: 6 additions & 7 deletions cypress/e2e/with-users/machines/actions.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ context("Machine listing - actions", () => {
cy.findByLabelText(/Name/i).type(poolName);
cy.findByRole("button", { name: /Set pool for machine/i }).click();
cy.findByRole("complementary", { name: /Set pool/i }).should("not.exist");
cy.findByRole("grid", { name: /Machines/i })
.within(() => cy.findByText(poolName))
.should("exist");
cy.findByRole("grid", { name: /Machines/i }).within(() => {
cy.findByText(poolName).should("exist");
});
cy.deleteMachine(machineName);
cy.deletePool(poolName);
});
Expand All @@ -161,10 +161,9 @@ context("Machine listing - actions", () => {
cy.findByRole("cell", { name: /To be added/ }).should("exist");
cy.findByRole("cell", { name: new RegExp(tagName, "i") }).should("exist");
});
cy.findByRole("button", { name: /Save/i }).click();
cy.findByRole("grid", { name: /Machines/i })
.within(() => cy.findByText(tagName))
.should("exist");
cy.findByRole("grid", { name: /Machines/i }).within(() =>
cy.findByText(tagName).should("exist")
);
cy.deleteMachine(machineName);
});

Expand Down

0 comments on commit 17abd3f

Please sign in to comment.