Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
remove wallet accept from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
horacioh committed Jan 8, 2024
1 parent b278bd2 commit 54c424a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/test-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,12 @@ jobs:
VITE_DESKTOP_HOSTNAME: "http://localhost"

- name: Install Playwright Browsers
run: npx playwright install --with-deps
run: PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 npx playwright install --with-deps

- name: Run Tests
run: yarn workspace @mintter/desktop e2e
env:
CI: "1"

- name: Upload Artifacts
uses: actions/upload-artifact@v3
Expand Down
6 changes: 3 additions & 3 deletions frontend/apps/desktop/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ const config: PlaywrightTestConfig = {
trace: 'retain-on-failure',
video: 'on',
},
retries: 2,
retries: process.env.CI ? 2 : 0,
workers: 1,
expect: {
timeout: 10 * 1000,
timeout: 30 * 1000,
},
timeout: 10 * 1000,
timeout: 30 * 1000,
reporter: process.env.CI ? 'github' : 'html',
// reporter: [
// ['list'],
Expand Down
12 changes: 6 additions & 6 deletions frontend/apps/desktop/tests/onboarding-from-scratch.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ test('Onboarding from scratch', async ({onboardingPage}) => {
})

await test.step('Wallet', async () => {
let elWalletBtn = await appWindow.locator('#btn-accept-wallet')
// let elWalletBtn = await appWindow.locator('#btn-accept-wallet')
let elNextBtn = await appWindow.locator('#btn-next')
await elWalletBtn.click()
let elWalletSuccessMssg = await appWindow.getByText(
'Your wallet is ready to use!',
)
await expect(elWalletSuccessMssg).toBeVisible()
// await elWalletBtn.click()
// let elWalletSuccessMssg = await appWindow.getByText(
// 'Your wallet is ready to use!',
// )
// await expect(elWalletSuccessMssg).toBeVisible()
expect(elNextBtn).toBeInViewport()
await elNextBtn.click()
})
Expand Down

0 comments on commit 54c424a

Please sign in to comment.