Skip to content

Commit

Permalink
PLT-8193: Load Nami extension as well
Browse files Browse the repository at this point in the history
  • Loading branch information
yveshauser committed Oct 23, 2023
1 parent af05f4b commit 30a41b9
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ public/config.json
e2e/node_modules
e2e/reports
e2e/dist
e2e/env
prototypes/marlowe-graph/node_modules
prototypes/marlowe-graph/public

12 changes: 12 additions & 0 deletions e2e/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Marlowe Runner End-To-End testing

## Running

Run the tests:
```bash
./run_tests.sh @dev
```

## Installation

### Wallets
1 change: 1 addition & 0 deletions e2e/env/common.env
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ PAGE_URLS_PATH="/config/pages.json"
HTML_REPORT_FILE="./reports/cucumber-html-report.html"
PAGE_ELEMENT_MAPPINGS_PATH="/config/mappings/page-elements/"
LACE_WALLET_EXTENSION_PATH="./artifacts/lace_wallet/"
NAMI_WALLET_EXTENSION_PATH="./artifacts/nami/"
SCRIPT_TIMEOUT=40000
DEVTOOLS=false
LACE_WALLET_PASSWORD=RunnerE2ETest
6 changes: 3 additions & 3 deletions e2e/src/step-definitions/setup/world.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ export class ScenarioWorld extends World {
const automationBrowsers = ['chromium', 'firefox', 'webkit']
type AutomationBrowser = typeof automationBrowsers[number]
const automationBrowser = env('UI_AUTOMATION_BROWSER') as AutomationBrowser
const pathToExtension = env('LACE_WALLET_EXTENSION_PATH') as AutomationBrowser
const pathToLaceExtension = env('LACE_WALLET_EXTENSION_PATH') as AutomationBrowser
const pathToNamiExtension = env('NAMI_WALLET_EXTENSION_PATH') as AutomationBrowser

const browserType: BrowserType = playwright[automationBrowser];
const context = await browserType.launchPersistentContext('', {
Expand All @@ -58,8 +59,7 @@ export class ScenarioWorld extends World {
'--enable-automation',
'--no-first-run',
'--no-default-browser-check',
`--disable-extensions-except=${pathToExtension}`,
`--load-extension=${pathToExtension}`,
`--disable-extensions-except=${pathToLaceExtension},${pathToNamiExtension}`,
'--disable-web-security',
'--allow-insecure-localhost',
'--window-size=1920,1080',
Expand Down

0 comments on commit 30a41b9

Please sign in to comment.