Skip to content

Commit

Permalink
🔧 chore: Unified MetaMask Dapp ports
Browse files Browse the repository at this point in the history
  • Loading branch information
matstyler committed Feb 5, 2024
1 parent eacf895 commit 0f2f55e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion examples/new-dawn/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build:cache": "synpress",
"build:cache:force": "synpress --force",
"build:cache:headless": "synpress --headless",
"serve:test-dapp": "serve node_modules/@metamask/test-dapp/dist -p 12345",
"serve:test-dapp": "serve node_modules/@metamask/test-dapp/dist -p 9999",
"test:e2e:headful": "playwright test",
"test:e2e:headless": "HEADLESS=true playwright test",
"test:e2e:headless:ui": "HEADLESS=true playwright test --ui"
Expand Down
12 changes: 6 additions & 6 deletions examples/new-dawn/playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineConfig, devices } from '@playwright/test'
import { defineConfig, devices } from '@playwright/test';

/**
* See https://playwright.dev/docs/test-configuration.
Expand All @@ -15,7 +15,7 @@ export default defineConfig({

use: {
// We are using locally deployed MetaMask Test Dapp.
baseURL: 'http://localhost:12345'
baseURL: 'http://localhost:9999',
},

// Synpress currently only supports Chromium, however, this will change in the future.
Expand All @@ -29,7 +29,7 @@ export default defineConfig({
// Serve MetaMask Test Dapp locally before starting the tests.
webServer: {
command: 'pnpm run serve:test-dapp',
url: 'http://localhost:12345',
reuseExistingServer: true
}
})
url: 'http://localhost:9999',
reuseExistingServer: true,
},
});
2 changes: 1 addition & 1 deletion examples/new-dawn/test/wallet-setup/connected.setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default defineWalletSetup(PASSWORD, async (context, walletPage) => {
const page = await context.newPage()

// Go to a locally hosted MetaMask Test Dapp.
await page.goto('http://localhost:12345')
await page.goto('http://localhost:9999')

await page.locator('#connectButton').click()

Expand Down

0 comments on commit 0f2f55e

Please sign in to comment.