Skip to content

Commit f493c33

Browse files
committed
feat(e2e): Extends sell flow till the send
new passphrase wallet for trading tests few new locators new .env file for tests removes traces from CI
1 parent db09adf commit f493c33

File tree

23 files changed

+166
-115
lines changed

23 files changed

+166
-115
lines changed

Diff for: .github/workflows/test-suite-desktop-e2e.yml

-7
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,3 @@ jobs:
120120
COMPOSE_FILE: ./docker/docker-compose.suite-desktop-ci.yml
121121
run: docker compose down
122122

123-
- name: Upload Playwright report
124-
if: ${{ ! cancelled() }}
125-
uses: actions/upload-artifact@v4
126-
with:
127-
name: playwright-report-${{ matrix.TEST_GROUP }}
128-
path: ./packages/suite-desktop-core/playwright-report/
129-
retention-days: 30

Diff for: .github/workflows/test-suite-web-e2e-pw.yml

-7
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,3 @@ jobs:
185185
COMPOSE_FILE: ./docker/docker-compose.suite-ci-pw.yml
186186
run: docker compose down
187187

188-
- name: Upload Playwright report
189-
if: ${{ ! cancelled() }}
190-
uses: actions/upload-artifact@v4
191-
with:
192-
name: playwright-report-${{ matrix.TEST_GROUP }}
193-
path: ./packages/suite-desktop-core/playwright-report/
194-
retention-days: 30

Diff for: docs/tests/e2e-playwright-suite.md

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Steps:
2525
- ``export HOSTNAME=`hostname` ``
2626
- `export DISPLAY=${HOSTNAME}:0`
2727
1. In terminal window, navigate to `trezor-user-env` repo root and run `./run.sh`.
28+
1. In workspace `packages/suite-desktop-core` create a `.env` file according to the `.example.env`
2829

2930
### Web
3031

Diff for: packages/suite-desktop-core/.example.env

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
# Secret wallet passphrase dedicated for automated Trading tests
3+
PASSPHRASE=

Diff for: packages/suite-desktop-core/e2e/fixtures/invity/buy/trade-bitcoin.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"paymentId": "5e895ff7-c444-4371-a41f-c1735edca46c",
55
"status": "SUBMITTED",
66
"originalPaymentId": "e17a2bed-86c6-4974-9d87-9fc926b16614",
7-
"partnerData": "",
7+
"partnerData": "https://app.topperpay.com/?bt=eyJhbGciOiJFUzUxMiIsInR5cCI6IkpXVCIsImtpZCI6IjEwZjdkZGE4LTNlOGEtNDcyYi1hM2FhLWQzM2RjOTgwMDM4YyJ9.eyJpYXQiOjE3Mzg3NzU4ODQsImV4cCI6MTczODc3NTk0NCwianRpIjoiNWUxZTFhOGUtM2FiZi00NDRhLTk4YmUtOTAxNzk2OWY3YmY4Iiwic3ViIjoiNTUzNzI3NDgtZDRiZS00MTVmLWI0MDgtZDI2OWFkY2I3OWZlIiwicGFydG5lciI6eyJkaXNwbGF5TmFtZSI6IlRyZXpvciBTdWl0ZSIsImNvbnRpbnVlVXJsIjoiaHR0cDovL2xvY2FsaG9zdDo4MDAwL2NvaW5tYXJrZXQtcmVkaXJlY3QjZGV0YWlsL2J0Yy9ub3JtYWwvMC8zZWRkNTkyYi0wYWM4LTQ3ZGItYmVhMy00ODU2NzQ3NTI4ODMiLCJmZWUiOnsicGVyY2VudGFnZSI6IjEifX0sInNvdXJjZSI6eyJhbW91bnQiOiIxMjM0IiwiYXNzZXQiOiJDWksiLCJwYXltZW50TWV0aG9kIjp7Im5ldHdvcmsiOiJjYXJkIn19LCJ0YXJnZXQiOnsiYWRkcmVzcyI6ImJjMXE3Y2VxdmFxN2ZxeXl3eHFjeDdxbmZ4a2ZrMnlrcHNsYTlwZTgwcSIsImFzc2V0IjoiQlRDIiwibmV0d29yayI6ImJpdGNvaW4iLCJyZWNpcGllbnRFZGl0TW9kZSI6Im5vdC1lZGl0YWJsZSJ9fQ.AYeoeDtYLjZFeACH9-Rjtkd1R7hH5EpdIzSp30baeSLfwm1Val_3HVDLVtUNLsBHFeAx3-kacJxUts6ReX2N5R0-AC2_1lVxOCJhkRvzI5VDujguo-btsgFFBUkhWBlbHkXs5rV_861UOFSprdExrD4TL_r-wro73q7OAwPKsjIK8fPQ&theme=light",
88
"exchange": "topper",
99
"fiatCurrency": "CZK",
1010
"receiveCurrency": "bitcoin",
@@ -26,7 +26,7 @@
2626
"tradeForm": {
2727
"form": {
2828
"formMethod": "GET",
29-
"formAction": "",
29+
"formAction": "https://app.topperpay.com/?bt=eyJhbGciOiJFUzUxMiIsInR5cCI6IkpXVCIsImtpZCI6IjEwZjdkZGE4LTNlOGEtNDcyYi1hM2FhLWQzM2RjOTgwMDM4YyJ9.eyJpYXQiOjE3Mzg3NzU4ODQsImV4cCI6MTczODc3NTk0NCwianRpIjoiNWUxZTFhOGUtM2FiZi00NDRhLTk4YmUtOTAxNzk2OWY3YmY4Iiwic3ViIjoiNTUzNzI3NDgtZDRiZS00MTVmLWI0MDgtZDI2OWFkY2I3OWZlIiwicGFydG5lciI6eyJkaXNwbGF5TmFtZSI6IlRyZXpvciBTdWl0ZSIsImNvbnRpbnVlVXJsIjoiaHR0cDovL2xvY2FsaG9zdDo4MDAwL2NvaW5tYXJrZXQtcmVkaXJlY3QjZGV0YWlsL2J0Yy9ub3JtYWwvMC8zZWRkNTkyYi0wYWM4LTQ3ZGItYmVhMy00ODU2NzQ3NTI4ODMiLCJmZWUiOnsicGVyY2VudGFnZSI6IjEifX0sInNvdXJjZSI6eyJhbW91bnQiOiIxMjM0IiwiYXNzZXQiOiJDWksiLCJwYXltZW50TWV0aG9kIjp7Im5ldHdvcmsiOiJjYXJkIn19LCJ0YXJnZXQiOnsiYWRkcmVzcyI6ImJjMXE3Y2VxdmFxN2ZxeXl3eHFjeDdxbmZ4a2ZrMnlrcHNsYTlwZTgwcSIsImFzc2V0IjoiQlRDIiwibmV0d29yayI6ImJpdGNvaW4iLCJyZWNpcGllbnRFZGl0TW9kZSI6Im5vdC1lZGl0YWJsZSJ9fQ.AYeoeDtYLjZFeACH9-Rjtkd1R7hH5EpdIzSp30baeSLfwm1Val_3HVDLVtUNLsBHFeAx3-kacJxUts6ReX2N5R0-AC2_1lVxOCJhkRvzI5VDujguo-btsgFFBUkhWBlbHkXs5rV_861UOFSprdExrD4TL_r-wro73q7OAwPKsjIK8fPQ&theme=light",
3030
"fields": {}
3131
}
3232
}

Diff for: packages/suite-desktop-core/e2e/fixtures/invity/index.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const invityEndpoint = {
4444
sellList: `${invityUrl}/api/v3/sell/list`,
4545
sellQuotes: `${invityUrl}/api/v3/sell/fiat/quotes`,
4646
sellTrade: `${invityUrl}/api/v3/sell/fiat/trade`,
47-
sellWatch: `${invityUrl}/v3/sell/fiat/watch/0*`,
47+
sellWatch: `${invityUrl}/api/v3/sell/fiat/watch/*`,
4848
};
4949

5050
export const invityRequest = {
@@ -78,8 +78,9 @@ export const createRedirectedTradeResponse = (
7878
tradeRequest: any,
7979
) => {
8080
const modifiedResponse = cloneDeep(tradeResponse);
81-
modifiedResponse.trade.partnerData = tradeRequest.returnUrl;
82-
modifiedResponse.tradeForm.form.formAction = tradeRequest.returnUrl;
81+
const newRedirect = tradeRequest.returnUrl;
82+
modifiedResponse.trade.partnerData = newRedirect;
83+
modifiedResponse.tradeForm.form.formAction = newRedirect;
8384
modifiedResponse.trade.paymentId = tradeRequest.trade.paymentId;
8485
modifiedResponse.trade.orderId = tradeRequest.trade.orderId;
8586
if ('refundAddress' in modifiedResponse.trade && tradeRequest.refundAddress) {

Diff for: packages/suite-desktop-core/e2e/fixtures/invity/sell/list.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@
109109
"cosmos",
110110
"binance-smart-chain--0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82",
111111
"flow",
112-
"fantom",
113112
"ethereum--0xf57e7e7c23978c3caec3c3548e3d615c346e79ff",
114113
"ethereum--0xc944e90c64b2c07662a292be6244bdf05cda44a7",
115114
"near",
@@ -374,7 +373,9 @@
374373
"tradedCoins": [
375374
"cardano",
376375
"avalanche-2",
376+
"ethereum--0xbb0e17ef65f82ab018d8edd776e8dd940327b28b",
377377
"bitcoin-cash",
378+
"binancecoin",
378379
"bitcoin",
379380
"dogecoin",
380381
"ethereum",
@@ -383,6 +384,12 @@
383384
"ethereum--0x455e53cbb86018ac2b8092fdcd39d8444affc3f6",
384385
"polygon-ecosystem-token",
385386
"solana",
387+
"tron",
388+
"ethereum--0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
389+
"polygon-pos--0x3c499c542cef5e3811e1192ce70d8cc03d5c3359",
390+
"solana--EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
391+
"ethereum--0xdac17f958d2ee523a2206206994597c13d831ec7",
392+
"tron--TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
386393
"stellar",
387394
"ripple"
388395
],

Diff for: packages/suite-desktop-core/e2e/fixtures/invity/sell/quotes-bitcoin.json

+35-41
Original file line numberDiff line numberDiff line change
@@ -3,94 +3,88 @@
33
"exchange": "moonpay-sell",
44
"fiatCurrency": "EUR",
55
"cryptoCurrency": "bitcoin",
6-
"rate": 88471.42857142857,
6+
"rate": 85907.69230769231,
77
"amountInCrypto": true,
8-
"exp": "EV/8oAVshyY5TAk+IGNDeA==",
8+
"exp": "qtn7k13GIY/wauu7BvapWA==",
99
"country": "CZ",
1010
"paymentMethodName": "Credit Card",
11-
"fiatStringAmount": "61.93",
12-
"cryptoStringAmount": "0.0007",
11+
"fiatStringAmount": "55.84",
12+
"cryptoStringAmount": "0.00065",
1313
"minFiat": 20,
1414
"maxFiat": 30000,
15-
"minCrypto": 0.00005,
15+
"minCrypto": 0.00006,
1616
"maxCrypto": 30000,
1717
"paymentMethod": "creditCard"
1818
},
1919
{
2020
"exchange": "btcdirect-sell",
2121
"fiatCurrency": "EUR",
2222
"cryptoCurrency": "bitcoin",
23-
"rate": 94471.42857142857,
23+
"rate": 92153.84615384616,
2424
"amountInCrypto": true,
25-
"exp": "EV/8oAVshyY5TAk+IGNDeA==",
25+
"exp": "qtn7k13GIY/wauu7BvapWA==",
2626
"country": "CZ",
2727
"paymentMethodName": "Bank Transfer",
28-
"fiatStringAmount": "66.13",
29-
"cryptoStringAmount": "0.0007",
30-
"minFiat": 30.24,
31-
"maxFiat": 50395.4,
32-
"minCrypto": 0.00031543,
33-
"maxCrypto": 0.52573521,
28+
"fiatStringAmount": "59.90",
29+
"cryptoStringAmount": "0.00065",
30+
"minFiat": 31.04,
31+
"maxFiat": 51736.36,
32+
"minCrypto": 0.00032244,
33+
"maxCrypto": 0.53742565,
3434
"paymentMethod": "bankTransfer",
35-
"quoteId": "eyJpdiI6IjdISHVSQWZvQm8tVnNGeUIiLCJ0YWciOiJfbkZZc1A1Nk9nTmxRejNqZU9GNkpBIiwiYWxnIjoiQTI1NkdDTUtXIiwiZW5jIjoiQTI1NkdDTSIsInppcCI6IkRFRiJ9.2OFsXXhQciu-3jRp5WUnE2npJU2d-x5emSeDlvvlcBA.I0ovkF-MREWumUfZ.O3NZpJ1RRIZBnZKrgdDA9GegXMhy05wuASSR2XoPtuTpY3WHyvygOJhaNrBNDFLbCR_uFnoLQfM3nl4icbD3CoQ4kh_4U_BJ1QkznrPMNcwjA9z8N5_c3vkYtaoWgo2v6X-xtWTcluCPrNcBBRWa39vbAbyg8NR8fQI-vYessJ8vbtUTUc7BmxVSHLidmO8dWU2Z01MgOaFVHYyc6RlU3FgHiNdURyQrXV8rxatZxXyuVavVbYjn0_R3-2ggvTH5nbZgjnhbTfEazi5uQdNFbH1-Yyt9w4OI5DPgRAHuRdMb9a5CF8ZadhchJs6pa_H04hosbdiPZbpGYjy7nRWzQvtASaAtGYRxHuD8_7eERKM76eAktqv0Wc7OKRfbL07qKSIbfwcHBpHwePX_MBOQNI-veBLMtZuJDlDRmdIl5zMLv0xj4l-asIeWuOEYW-P94HwTN8w0Oxw0eI6GHerShH8GcFqMO1szvRiojEkvxBI.AgsxnqAwn-ErsSjWvJWSag",
36-
"validUntil": "2025-02-04T14:56:35Z",
37-
"infoNote": "Your bank account hasn't been verified yet. Select Register to complete the verification process with our partner.",
38-
"status": "SITE_ACTION_REQUEST"
35+
"validUntil": "2025-02-07T12:43:29Z"
3936
},
4037
{
4138
"exchange": "btcdirect-sell",
4239
"fiatCurrency": "EUR",
4340
"cryptoCurrency": "bitcoin",
44-
"rate": 94471.42857142857,
41+
"rate": 92153.84615384616,
4542
"amountInCrypto": true,
46-
"exp": "EV/8oAVshyY5TAk+IGNDeA==",
43+
"exp": "qtn7k13GIY/wauu7BvapWA==",
4744
"country": "CZ",
4845
"paymentMethodName": "SEPA",
49-
"fiatStringAmount": "66.13",
50-
"cryptoStringAmount": "0.0007",
51-
"minFiat": 30.24,
52-
"maxFiat": 50395.4,
53-
"minCrypto": 0.00031543,
54-
"maxCrypto": 0.52573521,
46+
"fiatStringAmount": "59.90",
47+
"cryptoStringAmount": "0.00065",
48+
"minFiat": 31.04,
49+
"maxFiat": 51736.36,
50+
"minCrypto": 0.00032244,
51+
"maxCrypto": 0.53742565,
5552
"paymentMethod": "sepa",
56-
"quoteId": "eyJpdiI6ImxpWUo5WWYxX2Npd2VzVVYiLCJ0YWciOiJ3ZmpweUhyQk5NZ3ptX05JYWdzWHF3IiwiYWxnIjoiQTI1NkdDTUtXIiwiZW5jIjoiQTI1NkdDTSIsInppcCI6IkRFRiJ9.9Qy1f7P4kjku503Qxdp3BAmXq-fDQcWE-eMRvDiPPpQ.-FEmAl2Sc4tQlJOG.Ctkx0LiToLdgSkWm_mQDNcRF5NfnbqiHwCL0gHNVhks5SDr7GHxRysJx_LHBcFKxhjwqICGLj45fN5JjjFSQds7t4Ifbs8BKMxfQNHlA-vQhzv93g44EZp04PU3wVkctpok308DN7swGqXhpO_McwV4ei1yBaMeIw7JZd7ogYv2hEBcE1huw-IzWwJllQTlLLKZxbPOQsswwBgB-wQmb7qzTj89PMl_P1xmEMJh1-4HiAXo-8Y0PhPUo08jmBFevi_O7xehS-9FNGfl41sm1kjTX1YYbzPrZYgcQgs2tWxPlJy0vLoFlqfA_5LmaRa-xR6v97T9IptyhD_nQrbUegwaLOIrXMYmFkatNwoMx_yoeWFpm3IxdXe1gDirAEYd6yspNNXsghD5uprPR4m3jXZy0UMnxhqjzlhPI1SnKPCAmOwtnLGP6rIfRmlb8f3dL6MwoDoqb_MTTV320uxsbi06KouHs9nFEiDn8i_R0J7g.mpgbKk_-EYMJu6JKh8kosQ",
57-
"validUntil": "2025-02-04T14:56:35Z",
58-
"infoNote": "Your bank account hasn't been verified yet. Select Register to complete the verification process with our partner.",
59-
"status": "SITE_ACTION_REQUEST"
53+
"validUntil": "2025-02-07T12:43:29Z"
6054
},
6155
{
6256
"exchange": "moonpay-sell",
6357
"fiatCurrency": "EUR",
6458
"cryptoCurrency": "bitcoin",
65-
"rate": 88471.42857142857,
59+
"rate": 85907.69230769231,
6660
"amountInCrypto": true,
67-
"exp": "EV/8oAVshyY5TAk+IGNDeA==",
61+
"exp": "qtn7k13GIY/wauu7BvapWA==",
6862
"country": "CZ",
6963
"paymentMethodName": "SEPA",
70-
"fiatStringAmount": "61.93",
71-
"cryptoStringAmount": "0.0007",
64+
"fiatStringAmount": "55.84",
65+
"cryptoStringAmount": "0.00065",
7266
"minFiat": 20,
7367
"maxFiat": 30000,
74-
"minCrypto": 0.00005,
68+
"minCrypto": 0.00006,
7569
"maxCrypto": 30000,
7670
"paymentMethod": "sepa"
7771
},
7872
{
79-
"error": "Amount too low, minimum is 0.0007 0.00083458.",
73+
"error": "Amount too low, minimum is 0.00065 0.00083102.",
8074
"exchange": "banxa-sell",
8175
"fiatCurrency": "EUR",
8276
"cryptoCurrency": "bitcoin",
83-
"rate": 93414.28571428571,
77+
"rate": 90969.23076923077,
8478
"amountInCrypto": true,
85-
"exp": "EV/8oAVshyY5TAk+IGNDeA==",
79+
"exp": "qtn7k13GIY/wauu7BvapWA==",
8680
"country": "CZ",
8781
"paymentMethodName": "Bank Transfer",
88-
"fiatStringAmount": "65.39",
89-
"cryptoStringAmount": "0.00070000",
82+
"fiatStringAmount": "59.13",
83+
"cryptoStringAmount": "0.00065000",
9084
"minFiat": 80,
9185
"maxFiat": 50000,
92-
"minCrypto": 0.00083458,
93-
"maxCrypto": 0.52161032,
86+
"minCrypto": 0.00083102,
87+
"maxCrypto": 0.51938878,
9488
"paymentMethod": "bankTransfer",
9589
"partnerData2": "6057"
9690
}

Diff for: packages/suite-desktop-core/e2e/fixtures/invity/sell/requests/quotes-request.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"cryptoCurrency": "bitcoin",
44
"fiatCurrency": "EUR",
55
"country": "CZ",
6-
"cryptoStringAmount": "0.0007",
6+
"cryptoStringAmount": "0.00065",
77
"fiatStringAmount": "",
88
"flows": ["BANK_ACCOUNT", "PAYMENT_GATE"]
99
}

Diff for: packages/suite-desktop-core/e2e/fixtures/invity/sell/requests/trade-request.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@
33
"exchange": "moonpay-sell",
44
"fiatCurrency": "EUR",
55
"cryptoCurrency": "bitcoin",
6-
"rate": 88471.42857142857,
6+
"rate": 85907.69230769231,
77
"amountInCrypto": true,
8-
"exp": "EV/8oAVshyY5TAk+IGNDeA==",
8+
"exp": "qtn7k13GIY/wauu7BvapWA==",
99
"country": "CZ",
1010
"paymentMethodName": "Credit Card",
11-
"fiatStringAmount": "61.93",
12-
"cryptoStringAmount": "0.0007",
11+
"fiatStringAmount": "55.84",
12+
"cryptoStringAmount": "0.00065",
1313
"minFiat": 20,
1414
"maxFiat": 30000,
15-
"minCrypto": 0.00005,
15+
"minCrypto": 0.00006,
1616
"maxCrypto": 30000,
1717
"paymentMethod": "creditCard",
18-
"paymentId": "82b84c1f-0525-4205-9edd-47b4592fe906",
19-
"orderId": "8d59f7f4-b12f-4434-a73c-afe799194edc",
20-
"refundAddress": "bc1q6stfdrpv7wqkdh97qea3yarxrvk76jcsxnf708"
18+
"paymentId": "227c5679-53df-45a6-ae83-9f4ebf9ecce7",
19+
"orderId": "4839ba2d-dd85-49b3-ae73-5ab1b526e66f",
20+
"refundAddress": "bc1qw0r95wvsqxumq3km0q8kqyjdard2u8ahaw4y2n"
2121
},
22-
"returnUrl": "http://localhost:8000/coinmarket-redirect#sell-offers/btc/normal/0/p-qc/CZ/EUR/0.0007/bitcoin/8d59f7f4-b12f-4434-a73c-afe799194edc"
22+
"returnUrl": "http://localhost:8000/coinmarket-redirect#sell-offers/btc/normal/0/p-qc/CZ/EUR/0.00065/bitcoin/4839ba2d-dd85-49b3-ae73-5ab1b526e66f"
2323
}
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
{
2-
"refundAddress": "bc1q6stfdrpv7wqkdh97qea3yarxrvk76jcsxnf708",
3-
"paymentId": "531847d1-4476-49b6-9577-27f3d6ae8e8c",
2+
"refundAddress": "bc1qw0r95wvsqxumq3km0q8kqyjdard2u8ahaw4y2n",
3+
"paymentId": "227c5679-53df-45a6-ae83-9f4ebf9ecce7",
44
"status": "SUBMITTED",
5-
"partnerData": "https://sell.moonpay.com/?apiKey=pk_live_1wuWa2Z1O2qG8izvpLkMOvBFbAPgWpfn&baseCurrencyCode=btc&quoteCurrencyCode=eur&baseCurrencyAmount=0.0007&lockAmount=true&externalTransactionId=531847d1-4476-49b6-9577-27f3d6ae8e8c&redirectURL=http%3A%2F%2Flocalhost%3A8000%2Fcoinmarket-redirect%23sell-offers%2Fbtc%2Fnormal%2F0%2Fp-qc%2FCZ%2FEUR%2F0.0007%2Fbitcoin%2Fb8373fba-d981-42ae-9c28-bcee40e20772&showWalletAddressForm=true&colorCode=%2300bfd9&language=CZ&signature=wOM6FBcSfatZ1AZepe3luyvbibbpR%2F0QFpTwJGI7ISI%3D",
5+
"partnerData": "https://sell.moonpay.com/?apiKey=pk_live_1wuWa2Z1O2qG8izvpLkMOvBFbAPgWpfn&baseCurrencyCode=btc&quoteCurrencyCode=eur&baseCurrencyAmount=0.00065&lockAmount=true&externalTransactionId=227c5679-53df-45a6-ae83-9f4ebf9ecce7&redirectURL=http%3A%2F%2Flocalhost%3A8000%2Fcoinmarket-redirect%23sell-offers%2Fbtc%2Fnormal%2F0%2Fp-qc%2FCZ%2FEUR%2F0.00065%2Fbitcoin%2F4839ba2d-dd85-49b3-ae73-5ab1b526e66f&showWalletAddressForm=true&colorCode=%2300bfd9&language=CZ&signature=Nduwv4haCHiSgzeb1%2FaBUu8lN1r8aKg%2FN%2F2Io9JDYY0%3D",
66
"exchange": "moonpay-sell",
77
"fiatCurrency": "EUR",
88
"cryptoCurrency": "bitcoin",
9-
"rate": 87357.14285714286,
9+
"rate": 85907.69230769231,
1010
"amountInCrypto": true,
11-
"exp": "EV/8oAVshyY5TAk+IGNDeA==",
11+
"exp": "qtn7k13GIY/wauu7BvapWA==",
1212
"country": "CZ",
1313
"paymentMethodName": "Credit Card",
14-
"fiatStringAmount": "61.15",
15-
"cryptoStringAmount": "0.0007",
14+
"fiatStringAmount": "55.84",
15+
"cryptoStringAmount": "0.00065",
1616
"minFiat": 20,
1717
"maxFiat": 30000,
18-
"minCrypto": 0.00005,
18+
"minCrypto": 0.00006,
1919
"maxCrypto": 30000,
2020
"paymentMethod": "creditCard",
21-
"orderId": "b8373fba-d981-42ae-9c28-bcee40e20772"
21+
"orderId": "4839ba2d-dd85-49b3-ae73-5ab1b526e66f"
2222
}

Diff for: packages/suite-desktop-core/e2e/fixtures/invity/sell/trade-bitcoin.json

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
{
22
"trade": {
3-
"refundAddress": "bc1q6stfdrpv7wqkdh97qea3yarxrvk76jcsxnf708",
4-
"paymentId": "82b84c1f-0525-4205-9edd-47b4592fe906",
5-
"status": "SEND_CRYPTO",
6-
"partnerData": "https://sell.moonpay.com/?apiKey=pk_live_1wuWa2Z1O2qG8izvpLkMOvBFbAPgWpfn&baseCurrencyCode=btc&quoteCurrencyCode=eur&baseCurrencyAmount=0.0007&lockAmount=true&externalTransactionId=82b84c1f-0525-4205-9edd-47b4592fe906&redirectURL=http%3A%2F%2Flocalhost%3A8000%2Fcoinmarket-redirect%23sell-offers%2Fbtc%2Fnormal%2F0%2Fp-qc%2FCZ%2FEUR%2F0.0007%2Fbitcoin%2F8d59f7f4-b12f-4434-a73c-afe799194edc&showWalletAddressForm=true&colorCode=%2300bfd9&language=CZ&signature=bQII1NcHdhbsGlu%2BqcfNhEBWcR4z5LogmtLbddpj6hc%3D",
3+
"refundAddress": "bc1qw0r95wvsqxumq3km0q8kqyjdard2u8ahaw4y2n",
4+
"paymentId": "227c5679-53df-45a6-ae83-9f4ebf9ecce7",
5+
"status": "SUBMITTED",
6+
"partnerData": "https://sell.moonpay.com/?apiKey=pk_live_1wuWa2Z1O2qG8izvpLkMOvBFbAPgWpfn&baseCurrencyCode=btc&quoteCurrencyCode=eur&baseCurrencyAmount=0.00065&lockAmount=true&externalTransactionId=227c5679-53df-45a6-ae83-9f4ebf9ecce7&redirectURL=http%3A%2F%2Flocalhost%3A8000%2Fcoinmarket-redirect%23sell-offers%2Fbtc%2Fnormal%2F0%2Fp-qc%2FCZ%2FEUR%2F0.00065%2Fbitcoin%2F4839ba2d-dd85-49b3-ae73-5ab1b526e66f&showWalletAddressForm=true&colorCode=%2300bfd9&language=CZ&signature=Nduwv4haCHiSgzeb1%2FaBUu8lN1r8aKg%2FN%2F2Io9JDYY0%3D",
77
"exchange": "moonpay-sell",
88
"fiatCurrency": "EUR",
99
"cryptoCurrency": "bitcoin",
10-
"rate": 88471.42857142857,
10+
"rate": 85907.69230769231,
1111
"amountInCrypto": true,
12-
"exp": "EV/8oAVshyY5TAk+IGNDeA==",
12+
"exp": "qtn7k13GIY/wauu7BvapWA==",
1313
"country": "CZ",
1414
"paymentMethodName": "Credit Card",
15-
"fiatStringAmount": "61.93",
16-
"cryptoStringAmount": "0.0007",
15+
"fiatStringAmount": "55.84",
16+
"cryptoStringAmount": "0.00065",
1717
"minFiat": 20,
1818
"maxFiat": 30000,
19-
"minCrypto": 0.00005,
19+
"minCrypto": 0.00006,
2020
"maxCrypto": 30000,
2121
"paymentMethod": "creditCard",
22-
"orderId": "8d59f7f4-b12f-4434-a73c-afe799194edc"
22+
"orderId": "4839ba2d-dd85-49b3-ae73-5ab1b526e66f"
2323
},
2424
"tradeForm": {
2525
"form": {
2626
"formMethod": "GET",
27-
"formAction": "https://sell.moonpay.com/?apiKey=pk_live_1wuWa2Z1O2qG8izvpLkMOvBFbAPgWpfn&baseCurrencyCode=btc&quoteCurrencyCode=eur&baseCurrencyAmount=0.0007&lockAmount=true&externalTransactionId=82b84c1f-0525-4205-9edd-47b4592fe906&redirectURL=http%3A%2F%2Flocalhost%3A8000%2Fcoinmarket-redirect%23sell-offers%2Fbtc%2Fnormal%2F0%2Fp-qc%2FCZ%2FEUR%2F0.0007%2Fbitcoin%2F8d59f7f4-b12f-4434-a73c-afe799194edc&showWalletAddressForm=true&colorCode=%2300bfd9&language=CZ&signature=bQII1NcHdhbsGlu%2BqcfNhEBWcR4z5LogmtLbddpj6hc%3D",
27+
"formAction": "https://sell.moonpay.com/?apiKey=pk_live_1wuWa2Z1O2qG8izvpLkMOvBFbAPgWpfn&baseCurrencyCode=btc&quoteCurrencyCode=eur&baseCurrencyAmount=0.00065&lockAmount=true&externalTransactionId=227c5679-53df-45a6-ae83-9f4ebf9ecce7&redirectURL=http%3A%2F%2Flocalhost%3A8000%2Fcoinmarket-redirect%23sell-offers%2Fbtc%2Fnormal%2F0%2Fp-qc%2FCZ%2FEUR%2F0.00065%2Fbitcoin%2F4839ba2d-dd85-49b3-ae73-5ab1b526e66f&showWalletAddressForm=true&colorCode=%2300bfd9&language=CZ&signature=Nduwv4haCHiSgzeb1%2FaBUu8lN1r8aKg%2FN%2F2Io9JDYY0%3D",
2828
"fields": {}
2929
}
3030
}
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
{
2-
"status": "SEND_CRYPTO"
2+
"status": "SEND_CRYPTO",
3+
"destinationAddress": "bc1q3tzqaakjpjdljaudkhusr95s23fl48wh4xdmvy",
4+
"destinationPaymentExtraId": "6d666a5f-b99c-4482-b8bc-2df04fc11b7b"
35
}

0 commit comments

Comments
 (0)