mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-29 00:20:04 +01:00
41 lines
1013 B
JavaScript
41 lines
1013 B
JavaScript
const { notesnook } = require("../test.ids");
|
|
const { sleep } = require("./utils.test");
|
|
|
|
it('App initialization', async () => {
|
|
await expect(element(by.id(notesnook.ids.default.root))).toBeVisible();
|
|
});
|
|
|
|
it('Drawer Navigation', async () => {
|
|
let menu = element(by.id(notesnook.ids.default.header.buttons.left));
|
|
await menu.tap();
|
|
await sleep(100)
|
|
await element(by.text('Notebooks')).tap();
|
|
menu.tap();
|
|
await sleep(100)
|
|
await element(by.text('Favorites')).tap();
|
|
menu.tap();
|
|
await sleep(100)
|
|
await element(by.text('Trash')).tap();
|
|
menu.tap();
|
|
await sleep(100)
|
|
await element(by.text('Tags')).tap();
|
|
menu.tap();
|
|
await sleep(100)
|
|
await element(by.text('Settings')).tap();
|
|
});
|
|
|
|
|
|
it('Dark Mode', async () => {
|
|
let menu = element(by.id(notesnook.ids.default.header.buttons.left));
|
|
menu.tap();
|
|
await sleep(100)
|
|
let nightmode = element(by.id(notesnook.ids.menu.nightmode))
|
|
await sleep(100)
|
|
await nightmode.tap();
|
|
await sleep(100)
|
|
await nightmode.tap();
|
|
await sleep(100)
|
|
menu.tap();
|
|
});
|
|
|