Skip to content

Commit

Permalink
feat(e2e-tests): move caret to the end of input elements
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyamore88 committed Aug 28, 2024
1 parent 6c919ab commit f513bc9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/playground/tests/contenteditable.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ test.describe('Contenteditable field', () => {
const expectedText = initialText + inputText;

await contenteditable.click();
await contenteditable.press('Control+ArrowRight');
await contenteditable.pressSequentially(inputText);

await expect(contenteditable).toHaveText(expectedText);
Expand Down
1 change: 1 addition & 0 deletions packages/playground/tests/input.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ test.describe('Native input element', () => {
const expectedText = initialText + inputText;

await input.click();
await input.press('Control+ArrowRight');
await input.pressSequentially(inputText, { delay: 100 });

await expect(input).toHaveValue(expectedText);
Expand Down
1 change: 1 addition & 0 deletions packages/playground/tests/textarea.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ test.describe('Textarea field', () => {
const expectedText = initialText + inputText;

await textarea.click();
await textarea.press('Control+ArrowRight');
await textarea.pressSequentially(inputText, { delay: 100 });

await expect(textarea).toHaveValue(expectedText);
Expand Down

0 comments on commit f513bc9

Please sign in to comment.