Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rich committed Sep 17, 2024
1 parent 53e9f73 commit edde8c5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions e2e/app.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,6 @@ const connect = async (page: Page) => {

// Verify page title
await expect(page).toHaveTitle("Colour Me Knowledgeable!");

// Verify colour is visible
await page.getByText("Connected 🟢");
};

const addName = async (page: Page, name: Player["name"]) => {
Expand All @@ -102,6 +99,10 @@ const addName = async (page: Page, name: Player["name"]) => {
// Click join
const joinButton = page.getByRole("button", { name: "Join game" });
await joinButton.click();

// Verify colour is visible
await page.getByText("Connected 🟢");

joinedPlayerNames.push(name);
};

Expand Down

0 comments on commit edde8c5

Please sign in to comment.