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

Staging Release #1579

Merged
merged 2 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion src/components/Widgets/Widget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export function Widget({
},
bridges: {
allow: configTheme?.allowedBridges,
deny: ['allbridge', 'hop', 'celerim', 'squid'],
deny: ['allbridge', 'celerim', 'squid'],
},
exchanges: {
allow: configTheme?.allowedExchanges,
Expand Down
15 changes: 15 additions & 0 deletions tests/swapActions.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,19 @@ test.describe('On chain swaps', () => {
await page.goto(`/${urlParams}`);
await checkIfBestReturnLabelIsVisible(page);
});

test(`Check ${chainData.ARBtoARB.ETHtoUSDT.tokenSymbol} to ${chainData.ARBtoARB.ETHtoUSDT.toTokenSymbol} swap pair on ARB chain`, async ({
page,
}) => {
const urlParams = buildUlParams(chainData.ARBtoARB.ETHtoUSDT);
await page.goto(`/${urlParams}`);
await checkIfBestReturnLabelIsVisible(page);
});
test(`Check ${chainData.ARBtoARB.USDCtoWBTC.tokenSymbol} to ${chainData.ARBtoARB.USDCtoWBTC.toTokenSymbol} swap pair on ARB chain`, async ({
page,
}) => {
const urlParams = buildUlParams(chainData.ARBtoARB.USDCtoWBTC);
await page.goto(`/${urlParams}`);
await checkIfBestReturnLabelIsVisible(page);
});
});
20 changes: 20 additions & 0 deletions tests/testData/chainData.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,25 @@
"toToken": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"toChain": "1"
}
},
"ARBtoARB":{
"ETHtoUSDT":{
"tokenSymbol":"ETH",
"fromToken":"0x0000000000000000000000000000000000000000",
"fromChain":"42161",
"amount":"1",
"toToken":"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",
"toTokenSymbol":"USDT",
"toChain":"42161"
},
"USDCtoWBTC":{
"tokenSymbol":"USDC",
"fromToken":"0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
"fromChain":"42161",
"toToken":"0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f",
"toTokenSymbol":"WBTC",
"toChain":"42161",
"amount":"100"
}
}
}
Loading