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

Focusing on the checked radio button does not work by tab key #2045

Closed
nikolaj10 opened this issue Jan 15, 2018 · 2 comments · May be fixed by marcusrc/testcafe#6, marcusrc/testcafe#7, marcusrc/testcafe#8 or marcusrc/testcafe#34
Assignees
Labels
AREA: client STATE: Auto-locked An issue has been automatically locked by the Lock bot. SYSTEM: automations TYPE: bug The described behavior is considered as wrong (bug).

Comments

@nikolaj10
Copy link

Are you requesting a feature or reporting a bug?

Bug report

What is the current behavior? (this step can be also used to reproduce the bug)

Example: In real environment (on any web page) when radio group gets focus by tab key, the selected radio is focused. The testcafe focuses the first radio (checked or unchecked).

What is the expected behavior?

Focusing the checked radio button after pressing tab key from the previous element above this group of radio buttons

Provide the test code and the tested page URL (if applicable)

Tested page URL:
http://devexpress.github.io/testcafe/example/

Test code:

test('Should select the checked radio button by pressing the tab key', async () => {
    await t
       .click(Selector('#macos'))
       .click(Selector('#traffic-markup-analysis'))
       .pressKey('tab')
       .expect(Selector('#macos').focused).ok();
});

This test should pass, but it fails

Specify your

  • operating system: Win 7
  • testcafe version: 0.18.6
  • node.js version: 6.10.2
@AlexanderMoskovkin AlexanderMoskovkin added TYPE: bug The described behavior is considered as wrong (bug). AREA: client labels Jan 15, 2018
@AlexanderMoskovkin
Copy link
Contributor

Hi @nikolaj10,

Thanks for your report. I've reproduced the issue and we'll fix this.

@helen-dikareva helen-dikareva added this to the Planned milestone Jan 24, 2018
@AndreyBelym AndreyBelym modified the milestones: Planned, Sprint #16 Aug 14, 2018
@AndreyBelym AndreyBelym self-assigned this Aug 14, 2018
@AndreyBelym AndreyBelym modified the milestones: Sprint #16, Sprint #17 Aug 30, 2018
@AndreyBelym AndreyBelym modified the milestones: Sprint #17, Sprint #18 Sep 17, 2018
@AlexKamaev AlexKamaev assigned AlexKamaev and unassigned AndreyBelym Sep 21, 2018
@AndreyBelym AndreyBelym modified the milestones: Sprint #18, Sprint #19 Oct 1, 2018
@lock
Copy link

lock bot commented Mar 28, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or feature requests. For TestCafe API, usage and configuration inquiries, we recommend asking them on StackOverflow.

@lock lock bot added the STATE: Auto-locked An issue has been automatically locked by the Lock bot. label Mar 28, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Mar 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.