diff --git a/examples/new-dawn/package.json b/examples/new-dawn/package.json index acf989e55..bb6636058 100644 --- a/examples/new-dawn/package.json +++ b/examples/new-dawn/package.json @@ -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" diff --git a/examples/new-dawn/playwright.config.ts b/examples/new-dawn/playwright.config.ts index dea88e1f7..e11b98f3f 100644 --- a/examples/new-dawn/playwright.config.ts +++ b/examples/new-dawn/playwright.config.ts @@ -1,4 +1,4 @@ -import { defineConfig, devices } from '@playwright/test' +import { defineConfig, devices } from '@playwright/test'; /** * See https://playwright.dev/docs/test-configuration. @@ -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. @@ -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, + }, +}); diff --git a/examples/new-dawn/test/wallet-setup/connected.setup.ts b/examples/new-dawn/test/wallet-setup/connected.setup.ts index a2ed3b4ef..0446f645b 100644 --- a/examples/new-dawn/test/wallet-setup/connected.setup.ts +++ b/examples/new-dawn/test/wallet-setup/connected.setup.ts @@ -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()