-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add E2E tests for merchant on-boarding (#7955)
Co-authored-by: Brian Borman <[email protected]> Co-authored-by: Achyuth Ajoy <[email protected]>
- Loading branch information
Showing
11 changed files
with
450 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: patch | ||
Type: dev | ||
|
||
E2E test - Merchant facing multi-currency on-boarding screen. |
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 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,17 @@ | ||
const { jestPuppeteerConfig } = require( '@woocommerce/e2e-environment' ); | ||
|
||
// Add arg to allow accessing the payments iframes in interactive mode ({ headles: false }). | ||
// https://github.com/puppeteer/puppeteer/issues/4960#issuecomment-535729011 | ||
jestPuppeteerConfig.launch.args.push( '--disable-features=site-per-process' ); | ||
jestPuppeteerConfig.launch.args.push( '--disable-web-security' ); | ||
jestPuppeteerConfig.launch.args.push( '--disable-features=IsolateOrigins' ); | ||
jestPuppeteerConfig.launch.args.push( '--disable-site-isolation-trials' ); | ||
|
||
// Set a real User Agent so the "Add block" button isn't disabled in Gutenberg during -dev tests. | ||
// Also keeping the "puppeteer-debug" value coming from @automattic.puppeteer | ||
jestPuppeteerConfig.launch.args.push( | ||
// eslint-disable-next-line max-len | ||
'--user-agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36 puppeteer-debug' | ||
); | ||
|
||
module.exports = jestPuppeteerConfig; |
Oops, something went wrong.