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

10 lines
325 B
TypeScript
Raw Normal View History

2024-10-22 18:33:44 -04:00
import { expect } from '@playwright/test';
2024-10-22 19:50:56 -04:00
import {test} from "obsidian-testing-framework"
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");
})