mirror of
https://github.com/jesse-r-s-hines/obsidian-open-tab-settings.git
synced 2026-07-22 05:43:41 +00:00
14 lines
549 B
TypeScript
14 lines
549 B
TypeScript
import { browser } from '@wdio/globals'
|
|
import { expect } from 'chai';
|
|
|
|
describe('Test my plugin', () => {
|
|
before(async () => {
|
|
await browser.openVault("./test/vaults/simple");
|
|
})
|
|
it('test command open-sample-modal-simple', async () => {
|
|
await browser.executeObsidianCommand("sample-plugin:open-sample-modal-simple");
|
|
|
|
expect(await browser.$(".modal-container .modal-content").isExisting()).to.equal(true);
|
|
expect(await browser.$(".modal-container .modal-content").getText()).to.equal("Woah!");
|
|
})
|
|
})
|