-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MPDX-0000 - Tools - Adds ToolsWrapper to import pages. (#1028)
* Adds ToolsWrapper to import pages.
- Loading branch information
Showing
5 changed files
with
57 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 8 additions & 10 deletions
18
pages/accountLists/[accountListId]/tools/import/google.page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
pages/accountLists/[accountListId]/tools/import/tnt.page.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import React from 'react'; | ||
import { ThemeProvider } from '@mui/material/styles'; | ||
import { render } from '@testing-library/react'; | ||
import TestRouter from '__tests__/util/TestRouter'; | ||
import TestWrapper from '__tests__/util/TestWrapper'; | ||
import theme from 'src/theme'; | ||
import TntConnectPage from './tnt.page'; | ||
|
||
const accountListId = 'accountListId'; | ||
const router = { | ||
query: { accountListId }, | ||
isReady: true, | ||
}; | ||
|
||
const RenderGoogleImportPage = () => ( | ||
<TestWrapper> | ||
<TestRouter router={router}> | ||
<ThemeProvider theme={theme}> | ||
<TntConnectPage /> | ||
</ThemeProvider> | ||
</TestRouter> | ||
</TestWrapper> | ||
); | ||
describe('render', () => { | ||
it('google import page', async () => { | ||
const { findAllByText } = render(<RenderGoogleImportPage />); | ||
const title = await findAllByText('Import from TntConnect'); | ||
expect(title).toHaveLength(2); | ||
}); | ||
}); |
18 changes: 8 additions & 10 deletions
18
pages/accountLists/[accountListId]/tools/import/tnt.page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters