Skip to content

Commit 988a113

Browse files
committed
Shorten playwright config
1 parent 5136c95 commit 988a113

2 files changed

Lines changed: 2 additions & 45 deletions

File tree

Lines changed: 1 addition & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
import { defineConfig, devices } from "@playwright/test";
22

3-
/**
4-
* Read environment variables from file.
5-
* https://github.com/motdotla/dotenv
6-
*/
7-
// require('dotenv').config();
8-
93
/**
104
* See https://playwright.dev/docs/test-configuration.
115
*/
@@ -26,7 +20,7 @@ export default defineConfig({
2620
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
2721
use: {
2822
/* Base URL to use in actions like `await page.goto('/')`. */
29-
// baseURL: 'http://127.0.0.1:3000',
23+
baseURL: "http://localhost:8080",
3024

3125
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
3226
trace: "on-first-retry",
@@ -38,42 +32,5 @@ export default defineConfig({
3832
name: "chromium",
3933
use: { ...devices["Desktop Chrome"] },
4034
},
41-
42-
// {
43-
// name: "firefox",
44-
// use: { ...devices["Desktop Firefox"] },
45-
// },
46-
47-
// {
48-
// name: "webkit",
49-
// use: { ...devices["Desktop Safari"] },
50-
// },
51-
52-
/* Test against mobile viewports. */
53-
// {
54-
// name: 'Mobile Chrome',
55-
// use: { ...devices['Pixel 5'] },
56-
// },
57-
// {
58-
// name: 'Mobile Safari',
59-
// use: { ...devices['iPhone 12'] },
60-
// },
61-
62-
/* Test against branded browsers. */
63-
// {
64-
// name: 'Microsoft Edge',
65-
// use: { ...devices['Desktop Edge'], channel: 'msedge' },
66-
// },
67-
// {
68-
// name: 'Google Chrome',
69-
// use: { ...devices['Desktop Chrome'], channel: 'chrome' },
70-
// },
7135
],
72-
73-
/* Run your local dev server before starting the tests */
74-
// webServer: {
75-
// command: 'npm run start',
76-
// url: 'http://127.0.0.1:3000',
77-
// reuseExistingServer: !process.env.CI,
78-
// },
7936
});

extensions/ql-vscode/test/e2e/run-query.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { test, expect } from "@playwright/test";
22

33
test("run query and open it from history", async ({ page }) => {
4-
await page.goto("http://localhost:8080/?folder=/home/coder/project");
4+
await page.goto("/?folder=/home/coder/project");
55

66
await page.getByRole("tab", { name: "CodeQL" }).locator("a").click();
77

0 commit comments

Comments
 (0)