Skip to content

Commit

Permalink
feat: complete all the three tab flows
Browse files Browse the repository at this point in the history
  • Loading branch information
vikrantgupta25 committed Nov 9, 2023
1 parent aa20b4d commit 1ae05df
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion frontend/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ if (container) {
<GlobalStyles />
<AppRoutes />
</Provider>
{process.env.NODE_ENV === 'development' && <ReactQueryDevtools />}
{process.env.NODE_ENV === 'development' && (
<ReactQueryDevtools initialIsOpen />
)}
</QueryClientProvider>
</ThemeProvider>
</HelmetProvider>,
Expand Down
8 changes: 5 additions & 3 deletions frontend/tests/service/servicesLanding.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { loginApi } from '../fixtures/common';

let page: Page;

test.describe('Service Flow', () => {
test.describe('Service flow', () => {
test.beforeEach(async ({ baseURL, browser }) => {
const context = await browser.newContext({ storageState: 'tests/auth.json' });
const newPage = await context.newPage();
Expand All @@ -18,7 +18,7 @@ test.describe('Service Flow', () => {
page = newPage;
});

test('Services Empty Page', async ({ baseURL }) => {
test('Services empty page', async ({ baseURL }) => {
// visit services page
await page.goto(`${baseURL}${ROUTES.APPLICATION}`);

Expand All @@ -33,7 +33,9 @@ test.describe('Service Flow', () => {
await expect(page.getByText('No data')).toBeVisible();
});

test('Services Table Rendered with correct data', async ({ baseURL }) => {
test('Services table and service details page rendered with correct data', async ({
baseURL,
}) => {
// visit services page
await page.goto(`${baseURL}${ROUTES.APPLICATION}`);

Expand Down

0 comments on commit 1ae05df

Please sign in to comment.