Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add playwright exmaple #37

Merged
merged 13 commits into from
Sep 3, 2020
Merged
Show file tree
Hide file tree
Changes from 3 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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ A set of examples to help demontrate common configurations using Mocha. They sho
- [TypeScript, Babel](packages/typescript-babel/)
- [Express REST API](packages/express-rest-api/)
- [Node Sqlite 3 example](packages/node-sqlite3/)
- [Playwright application](packages/playwright/)

## Adding a new example

Expand Down
1 change: 1 addition & 0 deletions packages/playwright/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
7 changes: 7 additions & 0 deletions packages/playwright/.mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can probably remove the values which are the default, i.e. everything except timeout.

"diff": true,
"package": "./package.json",
"reporter": "spec",
"timeout": 10000,
"ui": "bdd"
}
7 changes: 7 additions & 0 deletions packages/playwright/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Playwright

Basic example for mocha and playwright(`^1.3.0`)

## Commands

- `npm test` - Run mocha test. Visit [Mocha Page](https://mochajs.org) and assert actual text on Chromium.
Loading