Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ npm uninstall -g wordle-clone

## Development

Requires Node.js ≥ 20.

Clone this repository, then run the following:

```
Expand Down
7 changes: 3 additions & 4 deletions cypress/e2e/game/how-to-play.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe("how to play", () => {
cy.contains("How to play").should("be.visible");
});

it("can be closed by pressing enter key after clicking help icon", () => {
it("can be closed via close button after clicking help icon", () => {
cy.reload();
cy.waitForGameReady();

Expand All @@ -50,9 +50,8 @@ describe("how to play", () => {
cy.get(".dialog").should("be.visible");
cy.get(".overlay-back").should("be.visible");

// Need to use cypress-real-events realType method to simulate a "real" enter key press to trigger the exact scenario
// that happens in real browser where the browser is still focused on the help link at this point and triggers the help dialog again.
cy.get(".help-link").realType("{enter}");
// Click the close button to dismiss the dialog.
cy.get(".dialog > .close").click();

cy.get(".dialog").should("not.exist");
cy.get(".overlay-back").should("not.be.visible");
Expand Down
1 change: 0 additions & 1 deletion cypress/support/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,4 @@ import "./commands";
// Alternatively you can use CommonJS syntax:
// require('./commands')

import "cypress-real-events/support";
import 'cypress-wait-until';
Loading
Loading