This commit is contained in:
parent
bab77652de
commit
adc0711dbe
@ -42,7 +42,7 @@ const obsidianTestFixtures: Fixtures<ObsidianTestFixtures> = {
|
|||||||
timeout: 60000,
|
timeout: 60000,
|
||||||
args: [
|
args: [
|
||||||
getExe(),
|
getExe(),
|
||||||
!!vault && `obsidian://open?vault=${encodeURI(vault)}`,
|
!!vault && `obsidian://open?path=${encodeURIComponent(vault)}`,
|
||||||
].filter((a) => !!a) as string[],
|
].filter((a) => !!a) as string[],
|
||||||
});
|
});
|
||||||
electronApp.on("console", async (msg) => {
|
electronApp.on("console", async (msg) => {
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
import { defineConfig, devices } from '@playwright/test';
|
import { defineConfig, devices } from '@playwright/test';
|
||||||
import {ObsidianTestFixtures} from "obsidian-testing-framework/fixture";
|
import {ObsidianTestFixtures} from "obsidian-testing-framework/fixture";
|
||||||
|
import os from "os"
|
||||||
|
import path from 'path';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Read environment variables from file.
|
* Read environment variables from file.
|
||||||
@ -33,7 +35,7 @@ export default defineConfig<ObsidianTestFixtures>({
|
|||||||
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
|
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
|
||||||
trace: 'on-first-retry',
|
trace: 'on-first-retry',
|
||||||
obsidian: {
|
obsidian: {
|
||||||
vault: "test-framework-tester"
|
vault: path.join(__dirname, "vault", "test-framework-tester")
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user