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

chore(ramp): update mock data to use Ramp Network name #6098

Closed
wants to merge 4 commits into from
Closed
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
16 changes: 8 additions & 8 deletions src/fiatExchanges/PaymentMethodSection.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ describe('PaymentMethodSection', () => {
</Provider>
)
expect(queryByText('selectProviderScreen.card')).toBeTruthy()
expect(queryByTestId('image-Ramp')).toBeTruthy()
expect(queryByTestId('newLabel-Ramp')).toBeFalsy()
expect(queryByTestId('image-Ramp Network')).toBeTruthy()
expect(queryByTestId('newLabel-Ramp Network')).toBeFalsy()
expect(queryByTestId('Card/provider-0')).toHaveTextContent(
'selectProviderScreen.receiveAmount100.00 cUSD'
)
Expand All @@ -125,12 +125,12 @@ describe('PaymentMethodSection', () => {
</Provider>
)
expect(getByText('selectProviderScreen.card')).toBeTruthy()
expect(getByTestId('image-Ramp')).toBeTruthy()
expect(getByTestId('newLabel-Ramp')).toBeTruthy()
expect(getByTestId('image-Ramp Network')).toBeTruthy()
expect(getByTestId('newLabel-Ramp Network')).toBeTruthy()
expect(getByTestId('newDialog')).toBeTruthy()
expect(getByTestId('newDialog')).not.toBeVisible()

fireEvent.press(getByTestId('newLabel-Ramp'))
fireEvent.press(getByTestId('newLabel-Ramp Network'))
expect(getByTestId('newDialog')).toBeVisible()
fireEvent.press(getByTestId('newDialog/PrimaryAction'))
await waitFor(() => expect(getByTestId('newDialog')).not.toBeVisible())
Expand All @@ -150,10 +150,10 @@ describe('PaymentMethodSection', () => {
expect(queryByText('selectProviderScreen.card')).toBeTruthy()
expect(queryByText('selectProviderScreen.numProviders, {"count":3}')).toBeTruthy()

expect(queryByTestId('image-Ramp')).toBeTruthy()
expect(queryByTestId('image-Ramp Network')).toBeTruthy()
expect(queryByTestId('image-Simplex')).toBeTruthy()
expect(queryByTestId('image-Moonpay')).toBeTruthy()
expect(queryByTestId('newLabel-Ramp')).toBeFalsy()
expect(queryByTestId('newLabel-Ramp Network')).toBeFalsy()
expect(queryByTestId('newLabel-Simplex')).toBeTruthy()
expect(queryByTestId('newLabel-Moonpay')).toBeTruthy()

Expand All @@ -167,7 +167,7 @@ describe('PaymentMethodSection', () => {

// Collapse works
fireEvent.press(getByText('selectProviderScreen.numProviders, {"count":3}'))
expect(queryByTestId('image-Ramp')).toBeFalsy()
expect(queryByTestId('image-Ramp Network')).toBeFalsy()
expect(queryByTestId('image-Simplex')).toBeFalsy()
expect(queryByTestId('image-Moonpay')).toBeFalsy()
})
Expand Down
4 changes: 2 additions & 2 deletions src/fiatExchanges/quotes/normalizeQuotes.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe('normalizeQuotes', () => {
['provider-two', 100],
['provider-three', 100], //provider-three supports Mobile Money and Bank Account
['provider-three', 100],
['Ramp', 100],
['Ramp Network', 100],
['Moonpay', 95],
['Fonbnk', 93],
['Moonpay', 90],
Expand All @@ -61,7 +61,7 @@ describe('normalizeQuotes', () => {
expect(
normalizedQuotes.map((quote) => [quote.getProviderId(), quote.getReceiveAmount()?.toNumber()])
).toEqual([
['Ramp', 100],
['Ramp Network', 100],
['Simplex', 25],
['Moonpay', undefined],
])
Expand Down
4 changes: 2 additions & 2 deletions test/values.ts
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ export const mockProviders: FetchProvidersOutput[] = [
],
},
{
name: 'Ramp',
name: 'Ramp Network',
restricted: false,
paymentMethods: [PaymentMethod.Card, PaymentMethod.Bank],
url: 'www.fakewebsite.com',
Expand Down Expand Up @@ -767,7 +767,7 @@ export const mockProviders: FetchProvidersOutput[] = [
cashOut: false,
},
{
name: 'Ramp',
name: 'Ramp Network',
restricted: false,
unavailable: false,
paymentMethods: [PaymentMethod.Card, PaymentMethod.Bank],
Expand Down
Loading