Skip to content

Commit

Permalink
Remove cleanup step from test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrisse committed Aug 14, 2024
1 parent 82f0eb0 commit 75ccf7e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/leapfrogai_ui/tests/global.setup.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { test as setup } from './fixtures';
import * as OTPAuth from 'otpauth';
import { delay } from 'msw';
import { cleanup } from './helpers/cleanup';

const authFile = 'playwright/.auth/user.json';

setup('authenticate', async ({ page, openAIClient }) => {
setup('authenticate', async ({ page }) => {
await page.goto('/'); // go to the home page
await delay(2000); // allow page to fully hydrate
if (process.env.PUBLIC_DISABLE_KEYCLOAK === 'true') {
Expand Down Expand Up @@ -65,8 +64,4 @@ setup('authenticate', async ({ page, openAIClient }) => {
// End of authentication steps.

await page.context().storageState({ path: authFile });

console.log('setting up...');
await cleanup(openAIClient);
console.log('set up complete');
});

0 comments on commit 75ccf7e

Please sign in to comment.