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

10 lines
312 B
TypeScript
Raw Normal View History

2024-10-22 18:33:44 -04:00
import { expect } from '@playwright/test';
2024-10-22 19:21:04 -04:00
import {test} from "../../lib.not"
2024-10-22 18:33:44 -04:00
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");
})