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

wip: running tests in playwright-test #846

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"watch:js:webpack": "webpack --watch --progress -d --devtool inline-source-map --config ./webpack.config.js",
"test": "run-s test:*",
"test:functional": " nyc --reporter=lcov --reporter=text mocha --timeout 15000 --require ignore-styles \"test/functional/**/*.test.js\"",
"test:playwright-test": "playwright-test --runner mocha --browser chromium --extension --timeout 15000 --require ignore-styles \"test/playwright-test/test.test.js\"",
"lint": "run-s lint:*",
"lint:standard": "standard -v \"*.js\" \"add-on/src/**/*.js\" \"test/**/*.js\" \"scripts/**/*.js\"",
"lint:web-ext": "web-ext lint",
Expand Down Expand Up @@ -152,6 +153,7 @@
"p-queue": "6.2.1",
"path-browserify": "1.0.0",
"piggybacker": "2.0.0",
"playwright-test": "0.0.6",
"postmsg-rpc": "2.4.0",
"pull-file-reader": "1.0.2",
"readable-stream": "3.4.0",
Expand Down
9 changes: 9 additions & 0 deletions test/playwright-test/test.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const { describe, it } = require('mocha')
const { expect } = require('chai')

describe('playwright-test web context', function () {
it('should have chrome extension APIs', function () {
expect(typeof chrome).to.equal('object')
expect(typeof chrome.runtime.id).to.equal('string')
})
})
Loading