Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: fix flaky e2e tests #2156

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
Next Next commit
videos
  • Loading branch information
brtkx committed Dec 19, 2024
commit 3e9fafe231f5d78518898e5d9576eb17da4233e8
3 changes: 2 additions & 1 deletion packages/arb-token-bridge-ui/synpress.cctp.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ export async function fundUsdc({
await tx.wait()
}

const shouldRecordVideo = process.env.CYPRESS_RECORD_VIDEO === 'true'
// const shouldRecordVideo = process.env.CYPRESS_RECORD_VIDEO === 'true'
const shouldRecordVideo = true

const tests =
process.env.TEST_FILE &&
Expand Down
24 changes: 12 additions & 12 deletions packages/arb-token-bridge-ui/tests/e2e/specfiles.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,61 +2,61 @@
{
"name": "Login and balance check",
"file": "tests/e2e/specs/**/login.cy.{js,jsx,ts,tsx}",
"recordVideo": "false"
"recordVideo": "true"
},
{
"name": "Deposit native token",
"file": "tests/e2e/specs/**/depositNativeToken.cy.{js,jsx,ts,tsx}",
"recordVideo": "false"
"recordVideo": "true"
},
{
"name": "Withdraw native token",
"file": "tests/e2e/specs/**/withdrawNativeToken.cy.{js,jsx,ts,tsx}",
"recordVideo": "false"
"recordVideo": "true"
},
{
"name": "Deposit ERC20",
"file": "tests/e2e/specs/**/depositERC20.cy.{js,jsx,ts,tsx}",
"recordVideo": "false"
"recordVideo": "true"
},
{
"name": "Withdraw ERC20",
"file": "tests/e2e/specs/**/withdrawERC20.cy.{js,jsx,ts,tsx}",
"recordVideo": "false"
"recordVideo": "true"
},
{
"name": "Batch deposit",
"file": "tests/e2e/specs/**/batchDeposit.cy.{js,jsx,ts,tsx}",
"recordVideo": "false"
"recordVideo": "true"
},
{
"name": "TX history",
"file": "tests/e2e/specs/**/txHistory.cy.{js,jsx,ts,tsx}",
"recordVideo": "false"
"recordVideo": "true"
},
{
"name": "Approve ERC20",
"file": "tests/e2e/specs/**/approveToken.cy.{js,jsx,ts,tsx}",
"recordVideo": "false"
"recordVideo": "true"
},
{
"name": "Import test ERC20",
"file": "tests/e2e/specs/**/importToken.cy.{js,jsx,ts,tsx}",
"recordVideo": "false"
"recordVideo": "true"
},
{
"name": "Read classic deposits",
"file": "tests/e2e/specs/**/readClassicDeposits.cy.{js,jsx,ts,tsx}",
"recordVideo": "false"
"recordVideo": "true"
},
{
"name": "Redeem Retryable",
"file": "tests/e2e/specs/**/redeemRetryable.cy.{js,jsx,ts,tsx}",
"recordVideo": "false"
"recordVideo": "true"
},
{
"name": "Switch network",
"file": "tests/e2e/specs/**/switchNetworks.cy.{js,jsx,ts,tsx}",
"recordVideo": "false"
"recordVideo": "true"
}
]
Loading