Differential D19604 Diff 58919 cashtab/src/components/App/fixtures/__tests__/CashtabTestWrapper.test.js
Changeset View
Changeset View
Standalone View
Standalone View
cashtab/src/components/App/fixtures/__tests__/CashtabTestWrapper.test.js
| Show First 20 Lines • Show All 95 Lines • ▼ Show 20 Lines | it('We can render other pages by passing the route', async () => { | ||||
| const mockedChronik = await initializeCashtabStateForTests( | const mockedChronik = await initializeCashtabStateForTests( | ||||
| walletWithXecAndTokensActive, | walletWithXecAndTokensActive, | ||||
| localforage, | localforage, | ||||
| ); | ); | ||||
| render( | render( | ||||
| <CashtabTestWrapper chronik={mockedChronik} route="/configure" />, | <CashtabTestWrapper chronik={mockedChronik} route="/configure" />, | ||||
| ); | ); | ||||
| // We are at the <Configure/> component, i.e. home page if we do not nav anywhere | // We are at the <Configure/> component | ||||
| expect(await screen.findByTitle('Settings')).toBeInTheDocument(); | expect(await screen.findByText('Display Currency')).toBeInTheDocument(); | ||||
| }); | }); | ||||
| }); | }); | ||||