Skip to content

Commit 9418355

Browse files
committed
Dev: change to slow definition
1 parent e92a161 commit 9418355

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

tests/IDE.ide.spec.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@ import { test, expect, chromium, BrowserContext, Page } from '@playwright/test';
22
import { IDEPage } from '../pages/IDEPage';
33
import { LandingPage } from '../pages/LandingPage';
44
import { localURL } from '../global.config';
5+
import path from 'path';
56

67
let context: BrowserContext;
78
let page: Page;
89

910
test.describe('IDE Tests', () => {
1011

1112
test.beforeAll(async ({}, testInfo) => {
12-
test.setTimeout(120_000)
13+
test.slow();
1314
const browser = await chromium.launch();
14-
context = await browser.newContext();
15+
const authFilePath = path.resolve(__dirname, '../.auth/user.json');
16+
context = await browser.newContext({ storageState: authFilePath });
1517
page = await context.newPage();
1618

1719
if (testInfo.project.name !== 'local') {
@@ -26,7 +28,6 @@ test.describe('IDE Tests', () => {
2628
});
2729

2830
test('Create new File', async () => {
29-
test.setTimeout(120_000)
3031
const idePage = new IDEPage(page);
3132
await idePage.createNewFile();
3233
await expect(page.getByRole('listitem', { name: /\/Untitled-/ })).toBeVisible();

tests/LandingPage.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ test.describe('LandingPage: Landing Page Setup', () => {
6060
}
6161
);
6262

63-
test.skip('LandingPage: Launch C instance', async ({ page }) => {
64-
test.setTimeout(120_000)
63+
test('LandingPage: Launch C instance', async ({ page }) => {
64+
test.slow();
6565
const landingPage = new LandingPage(page);
6666
await landingPage.launchLanguage('C');
6767
await page.waitForURL(/.*#\/home\/project/);

0 commit comments

Comments
 (0)