obsidian-testing-framework/packages/test-project/e2e/example.spec.ts

10 lines
312 B
TypeScript

import { expect } from '@playwright/test';
import {test} from "../../lib.not"
test('something', async ({ page }) => {
expect(page).toHaveURL(/obsidian\.md/i);
});
test("idk", async({app}) => {
let thing = app.metadataCache.getFirstLinkpathDest("Welcome", ".");
expect(thing?.basename).toEqual("Welcome");
})