diff --git a/client/cypress/e2e/first-user.cy.ts b/client/cypress/e2e/first-user.cy.ts index 3a5071a7..813a332b 100644 --- a/client/cypress/e2e/first-user.cy.ts +++ b/client/cypress/e2e/first-user.cy.ts @@ -23,15 +23,20 @@ describe("a test test", () => { cy.task("waitForCheckpoint", "second player character created"); cy.findByRole("button", { name: "Ready" }).click(); - // cy.findByText("Open Inventory").click(); + cy.findByText("Open Inventory").click(); + cy.findAllByText("HP Autoinjector").first().click(); + cy.findByText("Use").click(); + cy.findByText("Execute").click(); + cy.findByText("Close Inventory").click(); + cy.findByText("Ready to explore").click(); - // cy.findByText("Attack").click(); - // cy.findByText("Execute").click(); + cy.findByText("Attack").click(); + cy.findByText("Execute").click(); - // cy.wait(2000); + cy.wait(2000); - // cy.findByText("Attack").click(); - // cy.findByText("Execute").click(); + cy.findByText("Attack").click(); + cy.findByText("Execute").click(); // cy.task("checkpoint", "first attack executed"); // cy.findAllByText("Take").first().click({ force: true }); diff --git a/client/cypress/e2e/second-user.cy.ts b/client/cypress/e2e/second-user.cy.ts index ba042f95..f980f895 100644 --- a/client/cypress/e2e/second-user.cy.ts +++ b/client/cypress/e2e/second-user.cy.ts @@ -13,6 +13,13 @@ describe("a test test", () => { cy.findByRole("button", { name: "Create Character" }).click(); cy.task("checkpoint", "second player character created"); cy.findByRole("button", { name: "Ready" }).click(); + + cy.findByText("Open Inventory").click(); + cy.findAllByText("HP Autoinjector").first().click(); + cy.findByText("Use").click(); + cy.findByText("Execute").click(); + cy.findByText("Close Inventory").click(); + cy.findByText("Ready to explore").click(); // cy.task("waitForCheckpoint", "first attack executed"); diff --git a/client/cypress/e2e/test.cy.ts b/client/cypress/e2e/test.cy.ts index 5cfaedd7..86c3fbed 100644 --- a/client/cypress/e2e/test.cy.ts +++ b/client/cypress/e2e/test.cy.ts @@ -12,22 +12,31 @@ describe("a test test", () => { cy.findByRole("button", { name: "Create Character" }).focus(); cy.findByRole("button", { name: "Create Character" }).click(); - // cy.findByPlaceholderText("Character name...") - // .click() - // .clear() - // .type("Rebecca Chambers", { delay: 0 }); - // cy.findByRole("button", { name: "Create Character" }).focus(); - // cy.findByRole("button", { name: "Create Character" }).click(); + cy.findByPlaceholderText("Character name...") + .click() + .clear() + .type("Rebecca Chambers", { delay: 0 }); + cy.findByRole("button", { name: "Create Character" }).focus(); + cy.findByRole("button", { name: "Create Character" }).click(); - // cy.findByPlaceholderText("Character name...") - // .click() - // .clear() - // .type("character 3", { delay: 0 }); - // cy.findByRole("button", { name: "Create Character" }).focus(); - // cy.findByRole("button", { name: "Create Character" }).click(); + cy.findByPlaceholderText("Character name...") + .click() + .clear() + .type("character 3", { delay: 0 }); + cy.findByRole("button", { name: "Create Character" }).focus(); + cy.findByRole("button", { name: "Create Character" }).click(); cy.findByRole("button", { name: "Ready" }).click(); // cy.findByText("Open Inventory").click(); cy.findByText("Ready to explore").click(); + + // cy.findByText("Attack").click(); + // cy.findByText("Execute").click(); + // cy.wait(1200); + // cy.findByText("Attack").click(); + // cy.findByText("Execute").click(); + // cy.wait(1200); + // cy.findByText("Attack").click(); + // cy.findByText("Execute").click(); }); }); diff --git a/client/dist/index.html b/client/dist/index.html index 2fdace13..d367b43c 100644 --- a/client/dist/index.html +++ b/client/dist/index.html @@ -1,15 +1,15 @@