mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
Add a e2e-test for Modal
This commit is contained in:
@@ -22,7 +22,7 @@ test.afterEach.always(async t => {
|
||||
await t.context.app.stop()
|
||||
})
|
||||
|
||||
test(async t => {
|
||||
test('Measure BrowserWindow status with await', async t => {
|
||||
const app = t.context.app
|
||||
await app.client.waitUntilWindowLoaded()
|
||||
|
||||
@@ -37,3 +37,9 @@ test(async t => {
|
||||
t.true(width > 0)
|
||||
t.true(height > 0)
|
||||
})
|
||||
|
||||
test('', async t => {
|
||||
const app = t.context.app
|
||||
await app.client.click('.TopBar__control-newPostButton___browser-main-TopBar-')
|
||||
await app.client.click('.NewNoteModal__close-mark___browser-main-modals-')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user