Add undo/redo check (#3893)
* add check for other browsers * [autofix.ci] apply automated fixes * add command + zand y test --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
f802f9a92a
commit
34ef5f5964
3 changed files with 61 additions and 7 deletions
|
|
@ -106,4 +106,19 @@ test("LangflowShortcuts", async ({ page }) => {
|
|||
if (numberOfNodes != 1) {
|
||||
expect(false).toBeTruthy();
|
||||
}
|
||||
|
||||
// Test undo (Command+Z or Control+Z)
|
||||
await page.getByTestId("title-Ollama").click();
|
||||
await page.keyboard.press("Backspace");
|
||||
numberOfNodes = await page.getByTestId("title-Ollama")?.count();
|
||||
expect(numberOfNodes).toBe(0);
|
||||
|
||||
await page.keyboard.press(`${control}+z`);
|
||||
numberOfNodes = await page.getByTestId("title-Ollama")?.count();
|
||||
expect(numberOfNodes).toBe(1);
|
||||
|
||||
// Test redo (Command+Y or Control+Y)
|
||||
await page.keyboard.press(`${control}+y`);
|
||||
numberOfNodes = await page.getByTestId("title-Ollama")?.count();
|
||||
expect(numberOfNodes).toBe(0);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue