Skip to content

Commit

Permalink
test(e2e): add tests for asset visibility and management on Testnet F…
Browse files Browse the repository at this point in the history
…E-1151 (#1718)

Move the assets test to the same structure as the app tests for a
cleaner setup.
  • Loading branch information
nelitow authored Dec 21, 2024
1 parent ae69013 commit 7fcfee7
Show file tree
Hide file tree
Showing 16 changed files with 25 additions and 158 deletions.
5 changes: 5 additions & 0 deletions .changeset/mean-monkeys-swim.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"fuels-wallet": patch
---

Update E2E setup
2 changes: 1 addition & 1 deletion .github/workflows/pr-tests-e2e-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ concurrency:
jobs:
tests-e2e-assets:
name: Test
timeout-minutes: 10
runs-on: buildjet-8vcpu-ubuntu-2204
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: FuelLabs/github-actions/setups/node@master
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"test:e2e": "NODE_ENV=test pnpm build:crx && playwright test --config=packages/app/playwright.config.ts --project=chromium",
"test:e2e:beta": "NODE_ENV=test pnpm build:crx && playwright test --config=packages/app/playwright.config.ts --project=chrome-beta",
"test:e2e:crx-lock": "NODE_ENV=test pnpm build:crx && playwright test --config=packages/app/playwright.crx-lock.config.ts",
"test:e2e:assets": "NODE_ENV=test pnpm playwright test --config=packages/e2e-assets/playwright.config.ts",
"test:e2e:assets": "NODE_ENV=test pnpm playwright test --config=packages/app/playwright.assets.config.ts",
"test:e2e:contracts": "NODE_ENV=test pnpm build:crx && pnpm --filter=@fuel-wallet/e2e-contract-tests test:e2e",
"test:appfile": "pnpm --filter=fuels-wallet test --",
"ts:check": "turbo run ts:check",
Expand Down
17 changes: 17 additions & 0 deletions packages/app/playwright.assets.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { defineConfig, devices } from '@playwright/test';
import { playwrightConfig } from './playwright.config';
import './load.envs.cts';

export default defineConfig({
...playwrightConfig,
testMatch: 'playwright/crx/assets.test.ts',
testIgnore: undefined,
projects: [
{
name: 'chromium',
use: {
...devices['Desktop Chromium'],
},
},
],
});
2 changes: 1 addition & 1 deletion packages/app/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const playwrightConfig: PlaywrightTestConfig = {
},
},
],
testIgnore: ['playwright/crx/lock.test.ts'],
testIgnore: ['playwright/crx/lock.test.ts', 'playwright/crx/assets.test.ts'],
};

export default defineConfig(playwrightConfig);
File renamed without changes.
2 changes: 0 additions & 2 deletions packages/e2e-assets/.env.example

This file was deleted.

Empty file removed packages/e2e-assets/.gitignore
Empty file.
3 changes: 0 additions & 3 deletions packages/e2e-assets/CHANGELOG.md

This file was deleted.

44 changes: 0 additions & 44 deletions packages/e2e-assets/load.envs.cts

This file was deleted.

9 changes: 0 additions & 9 deletions packages/e2e-assets/package.json

This file was deleted.

31 changes: 0 additions & 31 deletions packages/e2e-assets/playwright.config.ts

This file was deleted.

2 changes: 0 additions & 2 deletions packages/e2e-assets/playwright/commons/index.ts

This file was deleted.

17 changes: 0 additions & 17 deletions packages/e2e-assets/playwright/commons/locator.ts

This file was deleted.

29 changes: 0 additions & 29 deletions packages/e2e-assets/playwright/commons/text.ts

This file was deleted.

18 changes: 0 additions & 18 deletions packages/e2e-assets/tsconfig.node.json

This file was deleted.

0 comments on commit 7fcfee7

Please sign in to comment.