Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
149 commits
Select commit Hold shift + click to select a range
79421d3
Add additional wait times to connect web wallet after keystore file u…
rolandmoldovan Oct 10, 2025
ecdf359
Increase wait times in connectWebWallet tests to ensure processing co…
rolandmoldovan Oct 10, 2025
1a3bc85
use waitForLoadState for improved reliability
rolandmoldovan Oct 10, 2025
980f30c
Update Slack notifications in E2E test workflows to include artifact …
rolandmoldovan Oct 10, 2025
1343d39
some debugging
rolandmoldovan Oct 10, 2025
8047fcf
Refactor debugging logs in wallet transaction and global setup script…
rolandmoldovan Oct 10, 2025
1318490
more logs
rolandmoldovan Oct 10, 2025
80eea22
Refactor test configuration and wallet transaction scripts by reducin…
rolandmoldovan Oct 10, 2025
c0fb520
Enhance global setup and file writing logic by adding a skipIfExists …
rolandmoldovan Oct 10, 2025
49e1ba3
Implement retry logic for page navigation in connect wallet tests to …
rolandmoldovan Oct 10, 2025
adc94cb
Update navigation retry logic in connect wallet tests to clarify inte…
rolandmoldovan Oct 13, 2025
72cb350
Enhance navigation timeout in connect wallet tests to improve reliabi…
rolandmoldovan Oct 13, 2025
04de13a
debug connection error
rolandmoldovan Oct 13, 2025
49397b7
add retry logic and health check
rolandmoldovan Oct 13, 2025
0f09ab9
fix Error: Either 'port' or 'url' should be specified in config.webSe…
rolandmoldovan Oct 13, 2025
54d27d1
fix Error: Timed out waiting 120000ms from config.webServer.
rolandmoldovan Oct 13, 2025
50fac49
Refactor cancel transaction test to improve clarity and reliability. …
rolandmoldovan Oct 13, 2025
ebbe2fc
Add Playwright traces upload to CI workflows and update visibility ch…
rolandmoldovan Oct 13, 2025
bcd6361
Remove Playwright traces upload from CI workflows and skip cancel tra…
rolandmoldovan Oct 13, 2025
de810d7
Update test configuration timeouts to improve test reliability. Incre…
rolandmoldovan Oct 13, 2025
3dabcfe
add some debugging code
rolandmoldovan Oct 13, 2025
6f16205
more debug code
rolandmoldovan Oct 13, 2025
6d6fea4
Refactor cancel transaction test to streamline side panel interaction…
rolandmoldovan Oct 13, 2025
b927df7
Refactor transaction table parsing logic by removing debug code and s…
rolandmoldovan Oct 13, 2025
51941d1
Refactor ping and pong ABI test by removing unnecessary wait statemen…
rolandmoldovan Oct 13, 2025
4f18fb0
Enhance CI workflows by adding Slack notifications for E2E test succe…
rolandmoldovan Oct 13, 2025
d472e3d
Merge pull request #407 from multiversx/rm/update/e2e-fix-for-keystor…
rolandmoldovan Oct 14, 2025
c210c7c
Replace moment.js with luxon (#410)
razvantomegea Oct 14, 2025
dbcfc6c
e2e add metamask connect test
rolandmoldovan Oct 14, 2025
6aac06b
disable slack notification
rolandmoldovan Oct 14, 2025
f4eb29e
trigger e2e
rolandmoldovan Oct 14, 2025
bbc5b4f
commit pnpm-lock
rolandmoldovan Oct 15, 2025
58ff977
change the working directory to fix error wallet setup files found
rolandmoldovan Oct 15, 2025
fb92ef9
run synpress in headless mode
rolandmoldovan Oct 15, 2025
0786b9a
fix small import issue
rolandmoldovan Oct 15, 2025
80265de
Fix Jest configuration (#413)
razvantomegea Oct 15, 2025
69286af
update working dir; small refactor
rolandmoldovan Oct 15, 2025
4725e9b
add wallet setup to npx synpress command; some refactoring
rolandmoldovan Oct 15, 2025
5509724
try to run synpress generation with pnpm
rolandmoldovan Oct 15, 2025
a256992
update working directory
rolandmoldovan Oct 15, 2025
2bacf04
test remove specific test path
rolandmoldovan Oct 15, 2025
35c3076
update Synpress command
rolandmoldovan Oct 15, 2025
3f628ee
hardcode the hash until we find a better way
rolandmoldovan Oct 15, 2025
cbf6860
refactor Synpress command to specify test path in E2E workflows
rolandmoldovan Oct 15, 2025
62711cb
update playwright test command to run in headless mode
rolandmoldovan Oct 15, 2025
edebe3d
update E2E workflow to use Xvfb for display
rolandmoldovan Oct 16, 2025
9e96ffe
refactor Playwright test command and update E2E workflow to improve X…
rolandmoldovan Oct 16, 2025
5437604
refactor E2E workflow to utilize xvfb-run for Playwright and Synpress…
rolandmoldovan Oct 16, 2025
ebd2aa8
add wallet connection tests for memory provider and web wallet; updat…
rolandmoldovan Oct 16, 2025
109c727
add console log to display available pages in MetaMask Snap warning h…
rolandmoldovan Oct 16, 2025
f8c753b
disable retries
rolandmoldovan Oct 16, 2025
b15dfcc
increase timeout
rolandmoldovan Oct 16, 2025
a17cae7
add some extra time for debugging
rolandmoldovan Oct 16, 2025
0401637
update MetaMask Snap warning handling timeouts to improve reliability
rolandmoldovan Oct 16, 2025
213316a
enhance MetaMask Snap warning handling with context validation and er…
rolandmoldovan Oct 16, 2025
d04c9ab
add debugging code and context validation
rolandmoldovan Oct 16, 2025
c05e31b
improve debugging and context validation in MetaMask wallet connectio…
rolandmoldovan Oct 16, 2025
4012bbb
refactor E2E tests to improve context validation and debugging; utili…
rolandmoldovan Oct 16, 2025
b7b2d59
update test configuration to increase worker count and modify wallet …
rolandmoldovan Oct 16, 2025
352034a
refactor wallet page URL constants in MetaMask tests for consistency …
rolandmoldovan Oct 16, 2025
6ba55eb
enhance MetaMask Snap warning handling with additional debugging and …
rolandmoldovan Oct 16, 2025
6d0be7c
enhance MetaMask Snap warning handling with improved click strategies…
rolandmoldovan Oct 16, 2025
2b809e0
enhance MetaMask Snap warning handling with improved dynamic content …
rolandmoldovan Oct 16, 2025
f70487a
back to square 1
rolandmoldovan Oct 16, 2025
9f62af3
increase timeout for MetaMask Snap warning handling and add additiona…
rolandmoldovan Oct 16, 2025
7cc44d9
remove waitForLoadState - might cause page close issue
rolandmoldovan Oct 16, 2025
cde681f
update test configuration to reduce worker count and disable parallel…
razvantomegea Oct 16, 2025
896f035
update E2E test workflow to streamline environment setup and enhance …
razvantomegea Oct 16, 2025
56b572c
refactor E2E test workflow to simplify environment setup by breaking …
razvantomegea Oct 16, 2025
da0abb3
Update packages
arhtudormorar Oct 16, 2025
046022a
Add Synpress configuration for MetaMask wallet testing and enhance Me…
razvantomegea Oct 16, 2025
3ad8a4a
Merge branch 'development' into rm/update/e2e-add-metamask-connect-test
razvantomegea Oct 16, 2025
6fc3899
Update pnpm-lock.yaml to reflect dependency version upgrades for @mul…
razvantomegea Oct 16, 2025
1424c27
Update test configuration to set worker count to 1 and disable fully …
razvantomegea Oct 16, 2025
1ebca8e
Update MetaMask Snap warning handling to use new notification page URL
razvantomegea Oct 16, 2025
f619a5a
Update MetaMask Snap warning handling to reflect new notification pag…
razvantomegea Oct 16, 2025
ca24d99
Delete pnpm-lock.yaml
rolandmoldovan Oct 16, 2025
51f22d2
Refactor test configuration by removing Synpress config, updating Pla…
rolandmoldovan Oct 16, 2025
00a1d0d
Update test configuration to increase worker count from 1 to 10 and r…
rolandmoldovan Oct 16, 2025
737160b
Refactor MetaMask Snap warning handling to consistently use the metam…
rolandmoldovan Oct 16, 2025
3ef82f6
Refactor MetaMask Snap warning handling to simplify button interactio…
rolandmoldovan Oct 16, 2025
98c5870
Increase timeout for button clicks in MetaMask Snap warning handling …
rolandmoldovan Oct 16, 2025
4c9aa86
Refactor MetaMask Snap warning handling to remove timeout parameters …
rolandmoldovan Oct 16, 2025
1621e0c
Refactor MetaMask Snap handling by replacing warning handling with ap…
rolandmoldovan Oct 16, 2025
1c4622d
Increase default timeout for button visibility checks in MetaMask Sna…
rolandmoldovan Oct 16, 2025
6e52dd8
Refactor helper function for MetaMask Snap approval handling to impro…
rolandmoldovan Oct 16, 2025
9cdf51b
Add wait for page load state in MetaMask Snap approval handling to en…
rolandmoldovan Oct 16, 2025
5308948
Refactor helper function for MetaMask Snap approval handling to impro…
rolandmoldovan Oct 16, 2025
b547b0f
Add debug logging to handleMetaMaskSnapApproval for available pages b…
rolandmoldovan Oct 17, 2025
39837df
Refactor page interaction logic in handleMetaMaskSnapApproval to ensu…
rolandmoldovan Oct 17, 2025
37b6e09
Enhance page load handling in handleMetaMaskSnapApproval by adding ex…
rolandmoldovan Oct 17, 2025
678dc9f
Increase timeout values in handleMetaMaskSnapApproval to enhance reli…
rolandmoldovan Oct 17, 2025
f9be85c
Enhance UI readiness checks in handleMetaMaskSnapApproval by adding a…
rolandmoldovan Oct 17, 2025
661a741
Refine debug logging in handleMetaMaskSnapApproval to display availab…
rolandmoldovan Oct 17, 2025
bf9cde0
Adjust test configuration by reducing worker count from 10 to 5 and i…
rolandmoldovan Oct 17, 2025
1080e1b
Update handleMetaMaskSnapApproval to wait for 'attached' state instea…
rolandmoldovan Oct 17, 2025
8a82527
Set viewport size in handleMetaMaskSnapApproval to ensure visibility …
rolandmoldovan Oct 17, 2025
57277a2
Add waitUntilStable function in handleMetaMaskSnapApproval to streaml…
rolandmoldovan Oct 17, 2025
507d876
Update handleMetaMaskSnapApproval to set viewport size for MetaMask n…
rolandmoldovan Oct 17, 2025
2ef493e
Implement retry logic in refreshPageAndClick and handleMetaMaskSnapAp…
rolandmoldovan Oct 17, 2025
9188dc5
Add waitUntilStable function and refactor handleMetaMaskSnapApproval …
rolandmoldovan Oct 17, 2025
685c2f1
Refactor ConnectWallet tests to improve clarity and consistency
rolandmoldovan Oct 17, 2025
b3e7094
Update test configuration and improve MetaMask interaction reliability
rolandmoldovan Oct 17, 2025
9fded61
Refactor element interaction in handleMetaMaskSnapApproval for improv…
rolandmoldovan Oct 17, 2025
4e69976
Refactor handleMetaMaskSnapApproval for improved element interaction …
rolandmoldovan Oct 17, 2025
ebd1c41
Increase SNAP_APPROVAL_MAX_RETRIES from 2 to 5 and enhance error logg…
rolandmoldovan Oct 17, 2025
277f7ef
Enhance Slack notifications in E2E test workflows and update test con…
rolandmoldovan Oct 17, 2025
ca1aad5
Reduce SNAP_APPROVAL_MAX_RETRIES from 5 to 3 in handleMetaMaskSnapApp…
rolandmoldovan Oct 17, 2025
95691e5
Refactor E2E test workflows and enhance MetaMask interaction reliability
rolandmoldovan Oct 17, 2025
c3fb3b0
Update MetaMask test to reflect template dashboard URL and enhance er…
rolandmoldovan Oct 17, 2025
97797b0
Refactor handleMetaMaskSnapApproval and navigateToConnectWallet for i…
rolandmoldovan Oct 17, 2025
1b6b3ad
Update test configuration and improve MetaMask interaction reliability
rolandmoldovan Oct 17, 2025
9f1f12f
Ensure MetaMask tests run sequentially for improved reliability
rolandmoldovan Oct 17, 2025
06ade30
Increase CLICK_ACTION_TIMEOUT to 10000ms and ensure notification page…
rolandmoldovan Oct 17, 2025
deaef6c
Enhance error handling in MetaMask connection test by ensuring notifi…
rolandmoldovan Oct 18, 2025
6664bea
Update test configuration to disable fully parallel execution and ens…
rolandmoldovan Oct 18, 2025
ccf9a7b
add retry mechanism
rolandmoldovan Oct 18, 2025
e783da4
Enhance handleMetaMaskSnapApproval by adding waitForMetaMaskLoad to e…
rolandmoldovan Oct 18, 2025
ecc0739
Refactor handleMetaMaskSnapApproval to increase maxRetries to 5 and i…
rolandmoldovan Oct 18, 2025
97bfb7d
Refactor handleMetaMaskSnapApproval to simplify element clicking logi…
rolandmoldovan Oct 18, 2025
67b0ff3
Refactor attemptClickElement in handleMetaMaskSnapApproval to use not…
rolandmoldovan Oct 18, 2025
c04ddf2
Enhance attemptClickElement in handleMetaMaskSnapApproval by adding a…
rolandmoldovan Oct 18, 2025
92f570b
add debugging logs
rolandmoldovan Oct 18, 2025
b5b4057
Enhance attemptClickElement by adding checks to skip actions if the n…
rolandmoldovan Oct 18, 2025
69090fe
Improve error handling and debugging in handleMetaMaskSnapApproval an…
rolandmoldovan Oct 18, 2025
e6bd001
Refactor handleMetaMaskSnapApproval to improve page reacquisition log…
rolandmoldovan Oct 18, 2025
3aeb738
Refactor handleMetaMaskSnapApproval to accept context and extensionId…
rolandmoldovan Oct 18, 2025
10ed5de
Update metaMask.spec.ts to use page context for notification page loa…
rolandmoldovan Oct 18, 2025
2a560c1
Remove special handling for MultiversX checkbox and internal page ref…
rolandmoldovan Oct 19, 2025
b509501
Update test configuration to increase timeout to 120 seconds and enab…
rolandmoldovan Oct 19, 2025
81b5f70
Update test configuration to disable fully parallel execution and adj…
rolandmoldovan Oct 19, 2025
fce5663
some optimizations
rolandmoldovan Oct 19, 2025
8a4d21d
Refactor parameter order in handleMetaMaskSnapApproval calls in metaM…
rolandmoldovan Oct 19, 2025
5180f8f
undo improvements
rolandmoldovan Oct 19, 2025
de95837
final version, logs removed
rolandmoldovan Oct 19, 2025
ccd3357
Enhance Slack notifications in E2E test workflows by re-enabling succ…
rolandmoldovan Oct 19, 2025
d77c3f8
Update E2E test workflow to trigger on pull requests only for the mai…
rolandmoldovan Oct 19, 2025
04ed611
Update test configuration to enable retries on CI for improved test r…
rolandmoldovan Oct 20, 2025
716b0f9
Merge pull request #412 from multiversx/rm/update/e2e-add-metamask-co…
rolandmoldovan Oct 20, 2025
7367c48
e2e replace deprecated page loading method with a new utility functio…
rolandmoldovan Oct 20, 2025
1df1f7c
all good - re-enable slack messages
rolandmoldovan Oct 20, 2025
395726b
update forgotten reference
rolandmoldovan Oct 21, 2025
8bbd870
use UrlRegex constants
rolandmoldovan Oct 21, 2025
ed5df1f
Merge pull request #418 from multiversx/rm/update/e2e-deprecated-page…
rolandmoldovan Oct 21, 2025
615cd98
Updated type (#419)
iuliacimpeanu Oct 21, 2025
3fb8175
e2e remove unnecesary github action job comment (#421)
rolandmoldovan Oct 21, 2025
963b05d
Disable MetaMask tests due to compatibility issues with the older ver…
rolandmoldovan Oct 27, 2025
7692dd0
E2E Refactor test structure and add MetaMask support utilities (#423)
rolandmoldovan Oct 31, 2025
7878fe5
Removed moduleNameMapper for sdkDappUi (#424)
mgavrila Nov 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
],
"plugins": ["react-hooks", "prettier", "import", "sort-exports"],
"rules": {
"sort-exports/sort-exports": "error",
"sort-imports": [
"error",
{
Expand Down
27 changes: 9 additions & 18 deletions .github/workflows/run-merge-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,8 @@ on:
branches: [main]
workflow_dispatch:
jobs:
Slack-Notification:
runs-on: runner-dapp
steps:
- name: Slack Notification
uses: rtCamp/action-slack-notify@master
env:
if: always()
SLACK_ICON_EMOJI: ':robot_face:'
SLACK_USERNAME: Playwright Bot
SLACK_MESSAGE: E2E merge tests are now running. A new notification will be sent when completed.
SLACK_TITLE : 'Playwright E2E Template RUN'
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
E2E-RUN:
runs-on: runner-dapp
needs: Slack-Notification
env:
KEYSTORE1_JSON_B64: ${{ secrets.KEYSTORE1_JSON_B64 }}
KEYSTORE1_PASSWORD: ${{ secrets.KEYSTORE1_PASSWORD }}
Expand All @@ -41,6 +28,10 @@ jobs:

KEYSTORE6_PRIVATE_KEY_UTF8: ${{ secrets.KEYSTORE6_PRIVATE_KEY_UTF8 }}
KEYSTORE6_ADDRESS: ${{ secrets.KEYSTORE6_ADDRESS }}

METAMASK_MNEMONIC: ${{ secrets.METAMASK_MNEMONIC }}
METAMASK_ADDRESS: ${{ secrets.METAMASK_ADDRESS }}
METAMASK_PASSWORD: ${{ secrets.METAMASK_PASSWORD }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -60,7 +51,7 @@ jobs:
- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps
- name: Run Playwright E2E Tests
run: pnpm run run-playwright-test
run: xvfb-run pnpm run run-playwright-test
- name: Upload Playwright test report
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
Expand All @@ -72,18 +63,18 @@ jobs:
uses: rtCamp/action-slack-notify@master
if: success()
env:
SLACK_ICON_EMOJI: ':white_check_mark:'
SLACK_ICON_EMOJI: ':robot_face:'
SLACK_USERNAME: Playwright Bot
SLACK_MESSAGE: 'E2E merge Tests completed successfully! All tests passed. 📊 Test Report: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
SLACK_MESSAGE: 'E2E merge Tests completed successfully!'
SLACK_TITLE: 'Playwright E2E Tests - SUCCESS'
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
- name: Slack Failure Notification
uses: rtCamp/action-slack-notify@master
if: failure()
env:
SLACK_ICON_EMOJI: ':red_circle:'
SLACK_ICON_EMOJI: ':robot_face:'
SLACK_USERNAME: Playwright Bot
SLACK_MESSAGE: 'E2E merge Tests failed. Please check the logs for details. 📊 Test Report: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
SLACK_MESSAGE: 'E2E merge Tests failed!'
SLACK_TITLE: 'Playwright E2E Tests - FAILED'
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

28 changes: 10 additions & 18 deletions .github/workflows/run-night-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,8 @@ on:
- cron: '0 20 * * *'
workflow_dispatch:
jobs:
Slack-Notification:
runs-on: runner-dapp
steps:
- name: Slack Notification
uses: rtCamp/action-slack-notify@master
env:
if: always()
SLACK_ICON_EMOJI: ':robot_face:'
SLACK_USERNAME: Playwright Bot
SLACK_MESSAGE: E2E night tests are now running. A new notification will be sent when completed.
SLACK_TITLE : 'Playwright E2E Template RUN'
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
E2E-RUN:
runs-on: runner-dapp
needs: Slack-Notification
env:
KEYSTORE1_JSON_B64: ${{ secrets.KEYSTORE1_JSON_B64 }}
KEYSTORE1_PASSWORD: ${{ secrets.KEYSTORE1_PASSWORD }}
Expand All @@ -41,6 +28,10 @@ jobs:

KEYSTORE6_PRIVATE_KEY_UTF8: ${{ secrets.KEYSTORE6_PRIVATE_KEY_UTF8 }}
KEYSTORE6_ADDRESS: ${{ secrets.KEYSTORE6_ADDRESS }}

METAMASK_MNEMONIC: ${{ secrets.METAMASK_MNEMONIC }}
METAMASK_ADDRESS: ${{ secrets.METAMASK_ADDRESS }}
METAMASK_PASSWORD: ${{ secrets.METAMASK_PASSWORD }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -60,7 +51,8 @@ jobs:
- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps
- name: Run Playwright E2E Tests
run: pnpm run run-playwright-test
working-directory: tests
run: xvfb-run pnpm run run-playwright-test
- name: Upload Playwright test report
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
Expand All @@ -72,17 +64,17 @@ jobs:
uses: rtCamp/action-slack-notify@master
if: success()
env:
SLACK_ICON_EMOJI: ':white_check_mark:'
SLACK_ICON_EMOJI: ':robot_face:'
SLACK_USERNAME: Playwright Bot
SLACK_MESSAGE: 'E2E Night Tests completed successfully! All tests passed. 📊 Test Report: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
SLACK_MESSAGE: 'E2E Night Tests completed successfully!'
SLACK_TITLE: 'Playwright E2E Tests - SUCCESS'
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
- name: Slack Failure Notification
uses: rtCamp/action-slack-notify@master
if: failure()
env:
SLACK_ICON_EMOJI: ':x:'
SLACK_ICON_EMOJI: ':robot_face:'
SLACK_USERNAME: Playwright Bot
SLACK_MESSAGE: 'E2E Night Tests failed. Please check the logs for details. 📊 Test Report: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
SLACK_MESSAGE: 'E2E Night Tests failed!'
SLACK_TITLE: 'Playwright E2E Tests - FAILED'
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ node_modules/
/playwright/.cache/
/certificates/
/temps/

.cache

# secrets (local only)
tests/support/wallets/
7 changes: 4 additions & 3 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,17 @@ module.exports = {
},
transformIgnorePatterns: ['node_modules/(^.+\\\\.(ts|js)$)'],
testMatch: ['**/src/**/?(*.)+(spec|test|bgTest).ts?(x)'],
moduleNameMapper: {
'\\.(css|sass|scss)$': 'identity-obj-proxy'
},

moduleFileExtensions: [
// Place tsx and ts to beginning as suggestion from Jest team
// https://jestjs.io/docs/configuration#modulefileextensions-arraystring
'tsx',
'ts',
'web.js',
'js',
'jsx',
'cjs',
'mjs',
'web.ts',
'web.tsx',
'json',
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"axios": "1.10.0",
"bignumber.js": "^9.x",
"classnames": "2.3.2",
"moment": "2.29.4",
"luxon": "3.5.0",
"motion": "^12.23.12",
"protobufjs": "^7.5.3",
"react": "18.2.0",
Expand All @@ -40,8 +40,7 @@
"copy-mainnet-config": "cp ./src/config/config.mainnet.ts ./src/config/index.ts",
"test": "jest",
"run-playwright-test": "playwright test",
"run-playwright-test-ui": "playwright test --ui",
"run-playwright-test-grep": "playwright test --grep \"$npm_config_grep\""
"run-playwright-test-ui": "playwright test --ui"
},
"browserslist": [
">0.2%",
Expand All @@ -58,7 +57,9 @@
"@testing-library/jest-dom": "6.1.3",
"@testing-library/react": "14.0.0",
"@testing-library/user-event": "14.5.1",
"@types/fs-extra": "11.0.4",
"@types/jest": "29.5.5",
"@types/luxon": "3.4.2",
"@types/node": "20.7.1",
"@types/react": "18.2.23",
"@types/react-dom": "^19.1.7",
Expand Down
14 changes: 11 additions & 3 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { TEST_CONFIG } from './tests/config';
* See https://playwright.dev/docs/test-configuration.
*/
export default defineConfig({
globalSetup: './tests/support/globalSetup.ts',
globalSetup: './tests/support/template/globalSetup.ts',
/* timeout for each test */
timeout: TEST_CONFIG.timeout,
/* timeout for locators */
Expand Down Expand Up @@ -54,14 +54,22 @@ export default defineConfig({
use: {
...devices['Desktop Chrome'],
launchOptions: {
args: ['--start-maximized']
args: [
'--start-maximized',
'--disable-web-security',
'--disable-features=VizDisplayCompositor'
]
}
}
}
],
webServer: {
command: 'pnpm run start-devnet',
url: 'https://localhost:3000',
timeout: 120 * 1000,
reuseExistingServer: !process.env.CI
reuseExistingServer: !process.env.CI,
stdout: 'pipe',
stderr: 'pipe',
ignoreHTTPSErrors: true
}
});
Loading