-
-
Notifications
You must be signed in to change notification settings - Fork 847
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added testcases covering all major browsers, removed cypress & added …
…playwright 🧪 (#1481) * removed cypress & installed playwright - removed cypress (still need to remove folders and update readme.md) - installed playwright - wrote first few tests (homepage) * added more devices to test & completed homepage - firefox and chrome added - completed homepage fully (need to convert to po still) - create npm/yarn e2e script * rm'ed cy dir, added more tests & fixed README - removed cypress directory since all the tests are covered - converted homepage to pageobject - added ideaspage and also added po for it - fixed main readme file to adjust to playwright - added plays.spec to write more tests later * complete set e2e tests added - removed cypress.yml and added pw yml - using list reporter instaed of line reporter - added full sets of tests * comment resolve - typo broweBtn --------- Signed-off-by: Mohat Shil <[email protected]> Co-authored-by: Mohat Shil <[email protected]> Co-authored-by: Priyankar Pal <[email protected]>
- Loading branch information
1 parent
80144b3
commit c95c260
Showing
23 changed files
with
753 additions
and
1,127 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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,30 @@ | ||
## Purpose | ||
|
||
To test and provide good quality to react-play users. Making sure all of the basic path are functional and does not break user flow. | ||
|
||
test-case written for | ||
|
||
- home | ||
- /plays | ||
- /ideas | ||
|
||
Tests written followed simple page object rules, to keep the locaters segreggated and all the relevant reusable methods in the page files described at playwright docs, read more at: https://playwright.dev/docs/pom | ||
|
||
|
||
### To run the test-cases use | ||
|
||
``` | ||
yarn e2e | ||
``` | ||
|
||
OR | ||
|
||
``` | ||
npm run e2e | ||
``` | ||
|
||
to debug test-cases use | ||
|
||
``` | ||
yarn playwright test <test-file.spec.ts> --debug | ||
``` |
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,4 @@ | ||
export enum Constant { | ||
TRENDING_PLAYS_CARD_COUNT = 5, | ||
PARTNERS_SPONSERS_LINKS_COUNT = 10 | ||
} |
Oops, something went wrong.