-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support headless chrome as a test environment
- Loading branch information
1 parent
8d91b99
commit da401c1
Showing
5 changed files
with
849 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
// require('expect-puppeteer') | ||
|
||
const windowCrypto = require("window-crypto"); | ||
const crypto = require('crypto'); | ||
|
||
|
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,11 @@ | ||
import 'expect-puppeteer' | ||
|
||
describe('test puppeteer', () => { | ||
beforeAll(async () => { | ||
await page.goto('https://so.com') | ||
}) | ||
|
||
it('should display "360" text on so.com page', async () => { | ||
await expect(page).toMatch('360') | ||
}) | ||
}) |
Oops, something went wrong.