mirror of
https://github.com/zhigang1992/xverse-web-extension.git
synced 2026-04-30 21:52:45 +08:00
[ENG-3999] Onboarding part 2 (#184)
* Add storage seedphrase * add 12 word seedphrase error message check * add error message check for 24 word seedphrase * optimize code, add switch 12 to 24 seedphrase test case * add confirm address copy and save address in file * [ENG-4031] Implement Sharding for test execution * Add Lock and login flow * Added attributes to elements in the homedashboard for better locators * fix: prefer data-testid over id, and aria-label for options button * Use static method (#187) * [ENG-3979] Implement Smoketest execution for PR build --------- Co-authored-by: DuskaT021 <aleksa2601@gmail.com> Co-authored-by: Tim Man <tim@secretkeylabs.com> Co-authored-by: Eduard Bardají Puig <ebardaji@gmail.com>
This commit is contained in:
3
tests/fixtures/base.ts
vendored
3
tests/fixtures/base.ts
vendored
@@ -9,9 +9,10 @@ export const test = baseTest.extend<{
|
||||
}>({
|
||||
// parts of the setup for the persistent context from https://playwright.dev/docs/chrome-extensions#testing
|
||||
context: async ({}, use) => {
|
||||
const extPath = path.join(__dirname, '../../build');
|
||||
const extPath = process.env.BUILD_EXTENSION_PATH || path.join(__dirname, '../../build');
|
||||
const context = await chromium.launchPersistentContext('', {
|
||||
args: [`--disable-extensions-except=${extPath}`, `--load-extension=${extPath}`],
|
||||
// slowMo: 400, // Slows down Playwright operations by 400 milliseconds for showcasing or testing reasons
|
||||
});
|
||||
await context.grantPermissions(['clipboard-read', 'clipboard-write']);
|
||||
await use(context);
|
||||
|
||||
Reference in New Issue
Block a user