feat: add desktop repo (#1071)
This commit is contained in:
16
packages/desktop/test/window.spec.ts
Normal file
16
packages/desktop/test/window.spec.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import anyTest, { TestFn } from 'ava'
|
||||
import { createDriver, Driver } from './driver'
|
||||
|
||||
const test = anyTest as TestFn<Driver>
|
||||
|
||||
test.before(async (t) => {
|
||||
t.context = await createDriver()
|
||||
})
|
||||
|
||||
test.after.always((t) => {
|
||||
return t.context.stop()
|
||||
})
|
||||
|
||||
test('Only has one window', async (t) => {
|
||||
t.is(await t.context.windowCount(), 1)
|
||||
})
|
||||
Reference in New Issue
Block a user