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

While pressKey('enter') works fine, pressKey('Enter') does nothing #7871

Closed
Dmitry-Ostashev opened this issue Jul 11, 2023 · 0 comments
Closed
Labels

Comments

@Dmitry-Ostashev
Copy link
Contributor

Dmitry-Ostashev commented Jul 11, 2023

What is your Scenario?

Press the 'Enter' key in the content's editable area.

What is the Current behavior?

.pressKey('enter') is working fine. However, .pressKey('Enter') does nothing, and there is no error in this case.

What is the Expected behavior?

The .pressKey('Enter') action should work. Or, it should throw an error like "Incorrect key combination".

What is your public website URL? (or attach your complete example)

			<div contenteditable="true">
				<span>Editable content</span>
				<span>First</span>
				<span>Second</span>
				<span>Third</span>
			</div>

What is your TestCafe test code?

fixture`Multiline`.page`file:///C:/Work/Pages/index.html`;

test('Test', async t => {
    await t
        .typeText('div[contenteditable=true]', 'abc')
        .pressKey('Enter')
        .typeText('div[contenteditable=true]', 'def')
        .debug();
});

Your complete configuration file

No response

Your complete test report

No response

Screenshots

No response

Steps to Reproduce

  1. Run a test for a page with an editable div like above.
  2. pressKey('enter') works fine.
  3. Change the key name to "Enter".
  4. pressKey('Enter') does nothing, and no errors occur.

TestCafe version

3.0.1

Node.js version

No response

Command-line arguments

npx testcafe chrome content-editable.js

Browser name(s) and version(s)

Chrome

Platform(s) and version(s)

No response

Other

No response

@Dmitry-Ostashev Dmitry-Ostashev added the TYPE: bug The described behavior is considered as wrong (bug). label Jul 11, 2023
@Dmitry-Ostashev Dmitry-Ostashev changed the title Since the pressKey('enter') works fine, pressKey('Enter') does nothing While pressKey('enter') works fine, pressKey('Enter') does nothing Jul 11, 2023
@AlexKamaev AlexKamaev closed this as not planned Won't fix, can't repro, duplicate, stale Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants