Skip to content

Commit

Permalink
feat(e2e): Change Solana buy test to but token instead of coin (#16988)
Browse files Browse the repository at this point in the history
minor refactoring
few new locators
  • Loading branch information
Vere-Grey authored Feb 14, 2025
1 parent 794bdb8 commit 2c59d0f
Show file tree
Hide file tree
Showing 12 changed files with 284 additions and 519 deletions.
1 change: 1 addition & 0 deletions packages/components/src/components/Menu/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ const Group = ({
setToggled={setToggled}
isKeyboardSelected={itemId === keyboardFocusedItemId}
onMouseOver={() => !item.isDisabled && handleItemHover(itemId)}
data-testid={item['data-testid']}
{...item}
key={itemId}
/>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,198 @@
[
{
"exchange": "mercuryo",
"fiatCurrency": "CZK",
"receiveCurrency": "solana--JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN",
"rate": 20.89,
"wantCrypto": true,
"exp": "BnQKmcAplN2vtGap8BF0Vg==",
"country": "CZ",
"paymentMethodName": "Credit Card",
"tags": ["wantCrypto"],
"fiatStringAmount": "2165.03",
"receiveStringAmount": "98.7",
"minFiat": 508.14,
"maxFiat": 127033.75,
"minCrypto": 23.260642,
"maxCrypto": 5817.144933,
"paymentMethod": "creditCard",
"quoteId": "f91555dc-7df3-46d8-bbac-effe555723ab"
},
{
"exchange": "mercuryo",
"fiatCurrency": "CZK",
"receiveCurrency": "solana--JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN",
"rate": 20.89,
"wantCrypto": true,
"exp": "BnQKmcAplN2vtGap8BF0Vg==",
"country": "CZ",
"paymentMethodName": "Google Pay",
"tags": ["wantCrypto"],
"fiatStringAmount": "2164.04",
"receiveStringAmount": "98.7",
"minFiat": 508.14,
"maxFiat": 127033.75,
"minCrypto": 23.260642,
"maxCrypto": 5817.144933,
"paymentMethod": "googlePay",
"quoteId": "b9ec0704-29d1-481b-8573-125c06ee7cd7"
},
{
"exchange": "mercuryo",
"fiatCurrency": "CZK",
"receiveCurrency": "solana--JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN",
"rate": 20.89,
"wantCrypto": true,
"exp": "BnQKmcAplN2vtGap8BF0Vg==",
"country": "CZ",
"paymentMethodName": "Apple Pay",
"tags": ["wantCrypto"],
"fiatStringAmount": "2164.04",
"receiveStringAmount": "98.7",
"minFiat": 508.14,
"maxFiat": 127033.75,
"minCrypto": 23.260642,
"maxCrypto": 5817.144933,
"paymentMethod": "applePay",
"quoteId": "50d39f4e-c873-4710-9c19-0d16c9fb977e"
},
{
"exchange": "mercuryo",
"fiatCurrency": "CZK",
"receiveCurrency": "solana--JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN",
"rate": 20.89,
"wantCrypto": true,
"exp": "BnQKmcAplN2vtGap8BF0Vg==",
"country": "CZ",
"paymentMethodName": "Revolut Pay",
"tags": ["wantCrypto"],
"fiatStringAmount": "2117.61",
"receiveStringAmount": "98.7",
"minFiat": 508.14,
"maxFiat": 127033.75,
"minCrypto": 23.260642,
"maxCrypto": 5817.144933,
"paymentMethod": "revolutPay",
"quoteId": "1144a19d-3550-4dc2-9f67-29ed97a127b6"
},
{
"exchange": "topper",
"fiatCurrency": "CZK",
"receiveCurrency": "solana--JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN",
"rate": 21.615711681425246,
"wantCrypto": true,
"exp": "BnQKmcAplN2vtGap8BF0Vg==",
"country": "CZ",
"paymentMethodName": "Credit Card",
"tags": ["wantCrypto"],
"fiatStringAmount": "2002.623",
"receiveStringAmount": "88.98666",
"minFiat": 250.52,
"maxFiat": 1252596.57,
"minCrypto": 12.346968950221784,
"maxCrypto": 61734.67570231642,
"paymentMethod": "creditCard",
"quoteId": "23192340-45e7-48cf-8760-9434967d298f",
"orderId": "23192340-45e7-48cf-8760-9434967d298f"
},
{
"exchange": "topper",
"fiatCurrency": "CZK",
"receiveCurrency": "solana--JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN",
"rate": 21.615711681425246,
"wantCrypto": true,
"exp": "BnQKmcAplN2vtGap8BF0Vg==",
"country": "CZ",
"paymentMethodName": "Apple Pay",
"tags": ["wantCrypto"],
"fiatStringAmount": "2002.623",
"receiveStringAmount": "88.98666",
"minFiat": 250.52,
"maxFiat": 1252596.57,
"minCrypto": 12.346968950221784,
"maxCrypto": 61734.67570231642,
"paymentMethod": "applePay",
"quoteId": "2ce61d29-183f-490e-a648-545296865fc0",
"orderId": "2ce61d29-183f-490e-a648-545296865fc0"
},
{
"exchange": "topper",
"fiatCurrency": "CZK",
"receiveCurrency": "solana--JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN",
"rate": 21.615711681425246,
"wantCrypto": true,
"exp": "BnQKmcAplN2vtGap8BF0Vg==",
"country": "CZ",
"paymentMethodName": "Google Pay",
"tags": ["wantCrypto"],
"fiatStringAmount": "2002.623",
"receiveStringAmount": "88.98666",
"minFiat": 250.52,
"maxFiat": 1252596.57,
"minCrypto": 12.346968950221784,
"maxCrypto": 61734.67570231642,
"paymentMethod": "googlePay",
"quoteId": "80b98ebf-4c6e-4339-a250-687ec024f2d2",
"orderId": "80b98ebf-4c6e-4339-a250-687ec024f2d2"
},
{
"exchange": "simplex",
"fiatCurrency": "CZK",
"receiveCurrency": "solana--JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN",
"rate": 24.049138804457954,
"wantCrypto": true,
"exp": "BnQKmcAplN2vtGap8BF0Vg==",
"country": "CZ",
"paymentMethodName": "Credit Card",
"tags": ["wantCrypto"],
"fiatStringAmount": "2373.65",
"receiveStringAmount": "98.7",
"minFiat": 1206,
"maxFiat": 482359,
"minCrypto": 55.01822556,
"maxCrypto": 22007.29022299,
"paymentMethod": "creditCard",
"quoteId": "7e7b74d3-13d3-403b-ae50-e605d4abd846",
"validUntil": "2025-02-12T20:09:59.306Z"
},
{
"exchange": "simplex",
"fiatCurrency": "CZK",
"receiveCurrency": "solana--JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN",
"rate": 24.049138804457954,
"wantCrypto": true,
"exp": "BnQKmcAplN2vtGap8BF0Vg==",
"country": "CZ",
"paymentMethodName": "Apple Pay",
"tags": ["wantCrypto"],
"fiatStringAmount": "2373.65",
"receiveStringAmount": "98.7",
"minFiat": 1206,
"maxFiat": 482359,
"minCrypto": 55.01822556,
"maxCrypto": 22007.29022299,
"paymentMethod": "applePay",
"quoteId": "7e7b74d3-13d3-403b-ae50-e605d4abd846",
"validUntil": "2025-02-12T20:09:59.306Z"
},
{
"exchange": "simplex",
"fiatCurrency": "CZK",
"receiveCurrency": "solana--JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN",
"rate": 24.049138804457954,
"wantCrypto": true,
"exp": "BnQKmcAplN2vtGap8BF0Vg==",
"country": "CZ",
"paymentMethodName": "Google Pay",
"tags": ["wantCrypto"],
"fiatStringAmount": "2373.65",
"receiveStringAmount": "98.7",
"minFiat": 1206,
"maxFiat": 482359,
"minCrypto": 55.01822556,
"maxCrypto": 22007.29022299,
"paymentMethod": "googlePay",
"quoteId": "7e7b74d3-13d3-403b-ae50-e605d4abd846",
"validUntil": "2025-02-12T20:09:59.306Z"
}
]
Loading

0 comments on commit 2c59d0f

Please sign in to comment.