-
Notifications
You must be signed in to change notification settings - Fork 327
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4039 from LedgerHQ/support/b2cqa-613-swap-not-ava…
…ilable-pw-test B2CQA 613 - Added Playwright tests for when swap providers aren't available
- Loading branch information
Showing
4 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
apps/ledger-live-desktop/tests/specs/services/swap.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import test from "../../fixtures/common"; | ||
import { expect } from "@playwright/test"; | ||
import { SwapPage } from "../../models/SwapPage"; | ||
|
||
test.use({ | ||
userdata: "1AccountBTC1AccountETH", | ||
}); | ||
|
||
test.describe.parallel("Swap - Miscellaneous tests", () => { | ||
test("Swap not yet available due to API error", async ({ page }) => { | ||
const swapPage = new SwapPage(page); | ||
|
||
await page.route("https://swap.ledger.com/v4/providers**", async route => { | ||
route.fulfill({ headers: { teststatus: "mocked" }, status: 404 }); | ||
}); | ||
|
||
await swapPage.navigate(); | ||
await expect(page.getByText("swap is not available yet in your area")).toBeVisible(); | ||
}); | ||
|
||
test("Swap not yet available due to no valid providers", async ({ page }) => { | ||
const swapPage = new SwapPage(page); | ||
|
||
const providers = JSON.stringify({ | ||
currencies: {}, | ||
providers: {}, | ||
}); | ||
|
||
await page.route("https://swap.ledger.com/v4/providers**", async route => { | ||
route.fulfill({ headers: { teststatus: "mocked" }, body: providers }); | ||
}); | ||
|
||
await swapPage.navigate(); | ||
await expect(page.getByText("swap is not available yet in your area")).toBeVisible(); | ||
}); | ||
}); |
ab2b8a3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
live-common-tools – ./
live-common-tools-ledgerhq.vercel.app
live.ledger.tools
live-common-tools-git-develop-ledgerhq.vercel.app
ledger-live.vercel.app
ledger-live-tools.vercel.app
ab2b8a3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Bot] non-reg on develop with 'Nitrogen' ✅ 88 txs ❌ 23 txs 💰 24 miss funds ($218.41) ⏲ 41min 43s
6 critical spec errors
Spec persistence failed!
Spec Ethereum failed!
Spec Ethereum Goerli failed!
Spec Solana failed!
Spec Polygon EVM (TEST ONLY DO NOT USE) failed!
Spec Telos failed!
❌ 23 mutation errors
Portfolio ($218.41) – Details of the 71 currencies
bc1q9hy629k79kjh9knn5yzrq7s7490y94u32kmkh5
tb1qrs8yhkranv8suhl8twmc2qzen7r8ajjxafu2jq
qq5xhm99nu794k8c2gzdndf7tkfkupa2fqqe9zz3hd
AKtJJmo1ofZWigKUPWUGwWwK1GEpm34Vrq
XpzvFt3yELKzmMjJjbo9VCWAaMiVe2rhz3
dgb1q5zeqygfu6ee6nm6m2x2h9yu5f0ul9yqus4h3sn
DDXz8WoC9qzqEGD9Kc4kdiPiDhRRc1FNAm
RPP1MRoCDcZyXRSB5K8yCoKwYsWiBMTxFe
ltc1q3zk0fzu6a6rxve6e886t8kdjgvtrf4xz5jas5p
PPxkgKw4u3PzdBQTyiZPVkfMhPjr4sZsQS
DPgj3gGakqkXCvxEdncbuGRXzbK46oKQUC
MM9ksE93XwSjs8nrou4M5RGDxB8sL9upig
34xoncs52GdYuB8pryfVnZxjT9K5oVJH6s
ERafHWaKRpecrpipWibafEQxLvACAndNjv
t1b3PAcUwnQct11zbUNcC22VSgG844HYsHw
znUZjCrkVCfnA6iWLBVJwsiyrxnQbcC43hB
DsRUTRc9DgAu3tThWNsV7o8eBfAKRNFEJua
addr1qx7ad9fsrd6grqvx0r3rkp55r2pdgypx8d8gcldq8ew7v6rwsr839ept3mchu8mqmf2mfesqewdeduhvpm4eefu4lk6qmyq2fm
0x246FFDB387F1F8c48072E1C13443540017bC71b7
axelar1rs97j43nfyvc689y5rjvnnhrq3tes6ghlj7dgv
cosmos1rs97j43nfyvc689y5rjvnnhrq3tes6ghmug9rd
osmo1rs97j43nfyvc689y5rjvnnhrq3tes6ghn8m44l
desmos1rs97j43nfyvc689y5rjvnnhrq3tes6gh0y9454
umee1rs97j43nfyvc689y5rjvnnhrq3tes6ghf2468l
persistence1rs97j43nfyvc689y5rjvnnhrq3tes6gh4swkdf
quick1rs97j43nfyvc689y5rjvnnhrq3tes6ghscch6l
onomy1rs97j43nfyvc689y5rjvnnhrq3tes6ghpaunjg
secret1rs97j43nfyvc689y5rjvnnhrq3tes6gheeuv73
stars1hgyf054qztvmty3cayuw9nedftlhejv5laj7j4
cro14zpaxs3msrdnx5ch3m3y3yue0wwwevrf2hmwra
erd18n5sk95fq9dtgdsa9m9q5ddp66ch9cq5lpjflwn5j9z8x2e9h0qqrvk5qp
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x7584df0780C5eB83b26aE55abBc265014f8bf897
f1ycrlid7xrbmrdqunshum2ecanuxpynryta6iila
43d9d6dafe1ec769d55fde8c385f07c71ac0e30d3f6d1fd486f757712a2f288a
0573d7a9c745fa9fe224b080832aa93d740760b94f192c9c141c709945e9aaaf
r9etPtq3oboweMPju5gdYufmvwhH2euz8z
5vhAGihUC1uKucJvreCgWWXB6LEptPwkwpqhkq9M6iaz
SP2J4VHFRAT94KY6NFT6129HBA382S6R98W9ABFG2
GDJPZPOWITPCBX3TIHB6N7E4WCHS6JBZKSNWGU34QYCJXKWBTUZY5RYC
tz1aDK1uFAmnUXZ7KJPEmcCEFeYHiVZ56zVF
TGd7BhccGUpnTuPUeyFGQqFDdp2nnK7xzm
TM4WJOS4MZ2TD775W7GSXZMBUF74YT6SKSBXCZY3N7OUIAPXE54MZ5FCD4
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0xe404f128644459C5A0F6FAc6824AdA8F94798c8f
14X7Au3YQTURKHkEQi3vsvJqZM6ZLEEJnLBQH4HwW69x12dW
Performance ⏲ 41min 43s
Time spent for each spec: (total across mutations)
ab2b8a3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Bot] non-reg on develop with 'Nitrogen' ✅ 82 txs ❌ 28 txs 💰 25 miss funds ($217.50) ⏲ 44min 3s
6 critical spec errors
Spec persistence failed!
Spec Ethereum failed!
Spec Ethereum Goerli failed!
Spec Solana failed!
Spec Polygon EVM (TEST ONLY DO NOT USE) failed!
Spec Telos failed!
❌ 28 mutation errors
Portfolio ($217.50) – Details of the 71 currencies
bc1q9hy629k79kjh9knn5yzrq7s7490y94u32kmkh5
tb1qrs8yhkranv8suhl8twmc2qzen7r8ajjxafu2jq
qzkw4tkl2y963q29kxmrwv454k9pukaxlc5qsxl3t3
AVV6or1h87ehEFsZGDKmaLSc5Vuk13w8DJ
XnePWzPe9xDfSo7haQmBdoMci3xz4VKPV4
dgb1q5zeqygfu6ee6nm6m2x2h9yu5f0ul9yqus4h3sn
DDXz8WoC9qzqEGD9Kc4kdiPiDhRRc1FNAm
RPP1MRoCDcZyXRSB5K8yCoKwYsWiBMTxFe
ltc1qtuj7363g29ldpkr7m62029525g757z36rek8q7
PVxtGvWxkiztpo9Froi7QZK2T2w11x5zwo
DFkpr7HbmNcbtgHMWxUurTpy1CsGRjdbFx
MM9ksE93XwSjs8nrou4M5RGDxB8sL9upig
32B64vvmWkxqBJgL3VFEyDLqcs5aPYa9L3
ERafHWaKRpecrpipWibafEQxLvACAndNjv
t1b3PAcUwnQct11zbUNcC22VSgG844HYsHw
znY6c8xqR19weSJZ4Ar1k15y8ccyjFJ4TfW
DsRUTRc9DgAu3tThWNsV7o8eBfAKRNFEJua
addr1qx7ad9fsrd6grqvx0r3rkp55r2pdgypx8d8gcldq8ew7v6rwsr839ept3mchu8mqmf2mfesqewdeduhvpm4eefu4lk6qmyq2fm
0x246FFDB387F1F8c48072E1C13443540017bC71b7
axelar1rs97j43nfyvc689y5rjvnnhrq3tes6ghlj7dgv
cosmos1rs97j43nfyvc689y5rjvnnhrq3tes6ghmug9rd
osmo1rs97j43nfyvc689y5rjvnnhrq3tes6ghn8m44l
desmos1rs97j43nfyvc689y5rjvnnhrq3tes6gh0y9454
umee1rs97j43nfyvc689y5rjvnnhrq3tes6ghf2468l
persistence1rs97j43nfyvc689y5rjvnnhrq3tes6gh4swkdf
quick1rs97j43nfyvc689y5rjvnnhrq3tes6ghscch6l
onomy1rs97j43nfyvc689y5rjvnnhrq3tes6ghpaunjg
secret1rs97j43nfyvc689y5rjvnnhrq3tes6gheeuv73
stars1rs97j43nfyvc689y5rjvnnhrq3tes6gh0qlcgu
cro14zpaxs3msrdnx5ch3m3y3yue0wwwevrf2hmwra
erd1ql9pxrhe29cjr8qgxx3rtmh9lyax5x9dkvu3mfzrgt4e8hwk536ssl4sea
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x7584df0780C5eB83b26aE55abBc265014f8bf897
f1ycrlid7xrbmrdqunshum2ecanuxpynryta6iila
8c6bb319fda7b3fc496a52aad2a1fee76e8549a11ff03aebdb8741b4bf593a33
0573d7a9c745fa9fe224b080832aa93d740760b94f192c9c141c709945e9aaaf
r9etPtq3oboweMPju5gdYufmvwhH2euz8z
5vhAGihUC1uKucJvreCgWWXB6LEptPwkwpqhkq9M6iaz
SP2J4VHFRAT94KY6NFT6129HBA382S6R98W9ABFG2
GDJPZPOWITPCBX3TIHB6N7E4WCHS6JBZKSNWGU34QYCJXKWBTUZY5RYC
tz1aDK1uFAmnUXZ7KJPEmcCEFeYHiVZ56zVF
TGd7BhccGUpnTuPUeyFGQqFDdp2nnK7xzm
TM4WJOS4MZ2TD775W7GSXZMBUF74YT6SKSBXCZY3N7OUIAPXE54MZ5FCD4
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0xe404f128644459C5A0F6FAc6824AdA8F94798c8f
0x90bD48144e08b66490BcA9a756BDe9f004F17857
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
14X7Au3YQTURKHkEQi3vsvJqZM6ZLEEJnLBQH4HwW69x12dW
Performance ⏲ 44min 3s
Time spent for each spec: (total across mutations)
ab2b8a3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Bot] Ethereum on Staging ❌ 4 txs 💰 1 miss funds ($23.15) ⏲ 41.9s
3 critical spec errors
Spec Polygon failed!
Spec Ethereum failed!
Spec Ethereum Goerli failed!
❌ 4 mutation errors
Details of the 4 mutations
Spec Avalanche C-Chain (failed)
Spec BSC (10)
Spec Polygon (failed)
Spec Ethereum (0)
Spec Ethereum Classic (6)
Spec Ethereum Goerli (0)
Details of the 12 uncovered mutations
Spec Avalanche C-Chain (2)
Spec BSC (2)
Spec Polygon (3)
Spec Ethereum (3)
Spec Ethereum Goerli (2)
Portfolio ($23.15) – Details of the 6 currencies
0x8a6Af0dD602db0A78EaD07cE9e2595815383FD5D
0x8a6Af0dD602db0A78EaD07cE9e2595815383FD5D
0xFEe4aF74cec36821814b5d6091680280A7f9fd3A
Performance ⏲ 41.9s
Time spent for each spec: (total across mutations)