Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: isEditable/toBeEditable throw for elements that cannot be editable/readonly #33713

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dgozman
Copy link
Contributor

@dgozman dgozman commented Nov 21, 2024

This is similar to isChecked only allowed for checkable elements.

The list of editable elements includes:

  • <input>;
  • <select>;
  • <textarea>;
  • [contenteditable];
  • elements with an implicit/explicit aria role that allows aria-readonly.

Closes #33697.

This comment has been minimized.

…le/readonly

This is similar to `isChecked` only allowed for checkable elements.

The list of editable elements includes:
- `<input>`;
- `<select>`;
- `<textarea>`;
- `[contenteditable]`;
- elements with an implicit/explicit aria role that allows `aria-readonly`.
Copy link
Contributor

Test results for "tests 1"

3 flaky ⚠️ [chromium-library] › library/chromium/oopif.spec.ts:284:3 › should click @chromium-ubuntu-22.04-node20
⚠️ [webkit-library] › library/browsercontext-add-cookies.spec.ts:429:3 › should allow unnamed cookies @webkit-ubuntu-22.04-node18
⚠️ [playwright-test] › ui-mode-test-ct.spec.ts:59:5 › should run component tests after editing test @windows-latest-node18-1

37134 passed, 650 skipped
✔️✔️✔️

Merge workflow run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: toBeEditable() returns true when locator is not editable
2 participants