Skip to content

Commit

Permalink
fix (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
Germandrummer92 authored Jul 23, 2024
1 parent 20036af commit a5f46de
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@octomind/debugtopus",
"version": "3.1.2",
"version": "3.2.0",
"description": "Thin wrapper around playwright and the octomind api to run your automagically-maintained tests locally",
"main": "./dist/index.js",
"packageManager": "[email protected]+sha256.dbdf5961c32909fb030595a9daa1dae720162e658609a8f92f2fa99835510ca5",
Expand Down
1 change: 1 addition & 0 deletions src/debugtopus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { defineConfig, devices } from "@playwright/test";
// noinspection JSUnusedGlobalSymbols
export default defineConfig({
use: {
headless: false,
baseURL: "${url}",
},
timeout: 600_000,
Expand Down
8 changes: 7 additions & 1 deletion tests/debugtopus.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,13 @@ describe("debugtopus", () => {
it("should override the timeout", () => {
const config = getConfig("doesn't/matter", "./someDir");

expect(config).toContain("timeout: 600_00");
expect(config).toContain("timeout: 600_000");
});

it("should run a non-headless browser", () => {
const config = getConfig("doesn't/matter", "./someDir");

expect(config).toContain("headless: false");
});
});

Expand Down

0 comments on commit a5f46de

Please sign in to comment.