Skip to content

Commit

Permalink
chore: Format
Browse files Browse the repository at this point in the history
  • Loading branch information
aszenz committed Feb 15, 2025
1 parent 68ce684 commit 981e8b8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
18 changes: 9 additions & 9 deletions playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineConfig, devices } from '@playwright/test';
import { defineConfig, devices } from "@playwright/test";

/**
* Read environment variables from file.
Expand All @@ -12,7 +12,7 @@ import { defineConfig, devices } from '@playwright/test';
* See https://playwright.dev/docs/test-configuration.
*/
export default defineConfig({
testDir: './tests',
testDir: "./tests",
/* Run tests in files in parallel */
fullyParallel: true,
/* Fail the build on CI if you accidentally left test.only in the source code. */
Expand All @@ -22,27 +22,27 @@ export default defineConfig({
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: 'html',
reporter: "html",
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
baseURL: process.env.URL,

video: 'retain-on-failure',
video: "retain-on-failure",
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'retain-on-failure',
trace: "retain-on-failure",
},

/* Configure projects for major browsers */
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
name: "chromium",
use: { ...devices["Desktop Chrome"] },
},

{
name: 'firefox',
use: { ...devices['Desktop Firefox'] },
name: "firefox",
use: { ...devices["Desktop Firefox"] },
},

// {
Expand Down
4 changes: 3 additions & 1 deletion tests/site.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ test("Home page loads", async ({ page }) => {
await page.goto("/");
await expect(page.getByText("Loading...")).toBeVisible();
// wait for loading spinner
await expect(page.getByText("Loading...")).not.toBeVisible({timeout: 15 * 1000});
await expect(page.getByText("Loading...")).not.toBeVisible({
timeout: 15 * 1000,
});
await expect(
page.getByRole("heading", { name: "Malloy model explorer" }),
).toBeVisible();
Expand Down

0 comments on commit 981e8b8

Please sign in to comment.