Skip to content

Commit 1d22819

Browse files
authored
test: add selected payment type for ramps sell e2e (#12951)
<!-- Please submit this PR as a draft initially. Do not mark it as "Ready for review" until the template has been completely filled out, and PR status checks have passed at least once. --> ## **Description** The sell e2e is failing because no sell quotes were available. I made changes in the e2e to explicitly use a selected payment type: `debit-credit ` ## **Related issues** Fixes: ## **Manual testing steps** 1. Go to this page... 2. 3. ## **Screenshots/Recordings** <!-- If applicable, add screenshots and/or recordings to visualize the before and after of your change. --> ### **Before** <!-- [screenshots/recordings] --> ### **After** <!-- [screenshots/recordings] --> ## **Pre-merge author checklist** - [ ] I’ve followed [MetaMask Contributor Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile Coding Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md). - [ ] I've completed the PR template to the best of my ability - [ ] I’ve included tests if applicable - [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [ ] I’ve applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. ## **Pre-merge reviewer checklist** - [ ] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed). - [ ] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.
1 parent 99a2404 commit 1d22819

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

e2e/specs/ramps/deeplink-to-sell-flow.spec.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ describe(SmokeRamps('Sell Crypto Deeplinks'), () => {
2525
jest.setTimeout(150000);
2626
});
2727
it('should deep link to offramp ETH', async () => {
28-
const sellDeepLinkURL =
29-
'metamask://sell?chainId=1&address=0x0000000000000000000000000000000000000000&amount=50';
28+
const sellDeepLinkURL = 'metamask://sell?chainId=1&amount=50';
3029
const franceRegion = {
3130
currencies: ['/currencies/fiat/eur'],
3231
emoji: '🇫🇷',
@@ -41,6 +40,7 @@ describe(SmokeRamps('Sell Crypto Deeplinks'), () => {
4140
{
4241
fixture: new FixtureBuilder()
4342
.withRampsSelectedRegion(franceRegion)
43+
.withRampsSelectedPaymentMethod()
4444
.build(),
4545
restartDevice: true,
4646
},
@@ -66,7 +66,10 @@ describe(SmokeRamps('Sell Crypto Deeplinks'), () => {
6666

6767
await withFixtures(
6868
{
69-
fixture: new FixtureBuilder().withRampsSelectedRegion().build(),
69+
fixture: new FixtureBuilder()
70+
.withRampsSelectedRegion()
71+
.withRampsSelectedPaymentMethod()
72+
.build(),
7073
restartDevice: true,
7174
},
7275
async () => {

0 commit comments

Comments
 (0)