mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-02 20:21:19 +02:00
mobile: show clear trash success message mobile: add e2e tests mobile: fix clear trash option remains disabled after moving item to trash after login mobile: Disable "Move to trash" for deleted notes.
54 lines
1.4 KiB
TypeScript
54 lines
1.4 KiB
TypeScript
import { notesnook } from "../test.ids";
|
|
import { TestBuilder } from "./utils";
|
|
|
|
describe("TRASH TESTS", () => {
|
|
it("Move a note to trash", async () => {
|
|
await TestBuilder.create()
|
|
.prepare()
|
|
.createNote("Test", "Test note item")
|
|
.tapById(notesnook.listitem.menu)
|
|
.tapById("icon-trash")
|
|
.navigate("Trash")
|
|
.wait(500)
|
|
.isVisibleByText("Test")
|
|
.run();
|
|
});
|
|
|
|
it("Permanently remove a note from trash", async () => {
|
|
await TestBuilder.create()
|
|
.prepare()
|
|
.createNote("Test", "Test note item")
|
|
.tapById(notesnook.listitem.menu)
|
|
.tapById("icon-trash")
|
|
.navigate("Trash")
|
|
.wait(500)
|
|
.isVisibleByText("Test")
|
|
.tapById("trash-clear")
|
|
.tapByText("Clear")
|
|
.wait(100)
|
|
.isNotVisibleByText("Test")
|
|
.navigate("Notes")
|
|
.isNotVisibleByText("Test")
|
|
.run();
|
|
});
|
|
|
|
it("Clear all notes from side menu", async () => {
|
|
await TestBuilder.create()
|
|
.prepare()
|
|
.createNote("Test", "Test note item")
|
|
.tapById(notesnook.listitem.menu)
|
|
.tapById("icon-trash")
|
|
.navigate("Trash")
|
|
.wait(500)
|
|
.isVisibleByText("Test")
|
|
.openSideMenu()
|
|
.longPressByText("Trash")
|
|
.tapByText("Clear trash")
|
|
.wait(500)
|
|
.tapByText("Clear")
|
|
.tapByText("Trash")
|
|
.isNotVisibleByText("Test")
|
|
.run();
|
|
});
|
|
});
|