generated from remarkablegames/party-game-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Placeholder): ensure form inputs for joke are required
Fixes #304
- Loading branch information
1 parent
37939e8
commit 25c1979
Showing
7 changed files
with
61 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
|
||
# testing | ||
/coverage | ||
/cypress/downloads | ||
|
||
# vite | ||
/dist | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { When } from '@badeball/cypress-cucumber-preprocessor'; | ||
import { When_I_visit_URL } from 'cypress-cucumber-steps'; | ||
|
||
function When_I_load_joke_id(jokeId: string) { | ||
cy.url().then((url) => { | ||
When_I_visit_URL(`${url}&joke_id=${jokeId}`); | ||
|
||
cy.on('window:confirm', (text) => { | ||
expect(text).to.contains('Reload site?'); | ||
}); | ||
}); | ||
} | ||
|
||
When('I load joke id {string}', When_I_load_joke_id); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"extends": "../tsconfig.json", | ||
"compilerOptions": { | ||
"target": "esnext", | ||
"lib": ["dom", "esnext"], | ||
"moduleResolution": "nodenext", | ||
"strict": true, | ||
"skipLibCheck": true, | ||
"target": "es2021", | ||
"types": ["cypress", "node", "cypress-real-events"] | ||
}, | ||
"include": ["../node_modules/cypress", "./**/*.ts"], | ||
"exclude": ["node_modules"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters