Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Andi Braimllari committed May 5, 2024
1 parent cfff7fa commit 85e56f3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
8 changes: 8 additions & 0 deletions cypress/e2e/editor.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,12 @@ describe("editor", () => {
)
.should("be.visible");
});

it("should place (retain) the focus on the editor when clicking on the placeholder text", () => {
cy.get('[data-test="editor-placeholder-text"]').then((v) => {
// TODO: derive (40, 10) or equivalent from `v[0].getBoundingClientRect();` or whatever is needed
cy.get('[data-test="editor"]').click(40, 10);
});
cy.get('[data-test="editor"]').should("be.focused");
});
});
13 changes: 0 additions & 13 deletions cypress/e2e/focus-editor-placeholder.cy.js

This file was deleted.

0 comments on commit 85e56f3

Please sign in to comment.