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

rightClick doesn't work but run passed manually #2056

Closed
hang-ren opened this issue Jan 22, 2018 · 5 comments
Closed

rightClick doesn't work but run passed manually #2056

hang-ren opened this issue Jan 22, 2018 · 5 comments
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).
Milestone

Comments

@hang-ren
Copy link

hang-ren commented Jan 22, 2018

Are you requesting a feature or reporting a bug?

Bug

What is the current behavior?

rightClick doesn't work

What is the expected behavior?

Works fine

How would you reproduce the current behavior (if this is a bug)?

Run the script failed but succeed if manually force it.

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

Tested page URL:

https://ezhome-alpha-3d.shejijia.com/?brand=ezhome

Test code

import { Selector } from 'testcafe';

const continueBtn = Selector('button.btn_continuebtn');
const closeWelcomeImg = Selector('img.closewelcome');
const propertyCheck1 = Selector('div.topproperty');
const unitDropdown = Selector('div.statusBar.unselectable.noprint.propertybar > ul > li.unitDropdown.cdropdown > button > span.utext');
const dimensionDropdown = Selector('div.statusBar.unselectable.noprint.propertybar > ul > li.dimensionDropdown.cdropdown > button > span.utext');
const rightButton1 = Selector('#editor > div.rightmenu > div > div.mainland > div:nth-child(1) > div > div > div');

fixture `New Property Bar`
   .page `https://ezhome-alpha-3d.shejijia.com/?brand=ezhome`

test('new_property_bar_canvas', async t => {
    /* Test Check New Property Bar For Canvas */

    await t
        .maximizeWindow()
        .click(continueBtn)
        .click(closeWelcomeImg)
        .wait(2000)
        .expect(propertyCheck1.innerText).contains('属性', 'The item cannot be shown')
        .expect(unitDropdown.exists).ok()
        .expect(dimensionDropdown.innerText).eql('墙内线', 'The item cannot be shown')
        .rightClick('#editor', {offsetX: 960, offsetY: 400})
        .wait(2000)
        .expect(rightButton1.innerText).contains('缩小 (Ctrl+-)', 'The item cannot be shown')

});

Specify your

  • operating system: Windows 7
  • testcafe version: 0.18.4
  • node.js version:v8.9.0
@hang-ren hang-ren changed the title rign rightClick doesn't work but run passed manually Jan 22, 2018
@churkin
Copy link
Contributor

churkin commented Jan 23, 2018

I've reproduced the problem.

@churkin churkin added TYPE: bug The described behavior is considered as wrong (bug). AREA: client SYSTEM: automations labels Jan 23, 2018
@AndreyBelym AndreyBelym added this to the Sprint #12 milestone May 15, 2018
@AndreyBelym AndreyBelym self-assigned this May 15, 2018
@AlexKamaev AlexKamaev assigned AlexKamaev and unassigned AndreyBelym Jun 7, 2018
@AndreyBelym AndreyBelym modified the milestones: Sprint #12, Sprint #13 Jun 21, 2018
AlexKamaev added a commit to AlexKamaev/testcafe that referenced this issue Jun 22, 2018
AlexKamaev added a commit to AlexKamaev/testcafe that referenced this issue Jun 22, 2018
AlexKamaev added a commit to AlexKamaev/testcafe that referenced this issue Jun 22, 2018
AlexKamaev added a commit to AlexKamaev/testcafe that referenced this issue Jun 25, 2018
@AlexKamaev
Copy link
Contributor

fixed in DevExpress/testcafe-hammerhead#1658

@AndreyBelym
Copy link
Contributor

Hi @hang-ren, I've just published [email protected] with the fix! Please, update your TestCafe installation, and feel free to reopen the issue if the problem isn't fixed in your environment.

@hang-ren
Copy link
Author

@AndreyBelym Well done, thanks for the fix, I will verify it.

@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.
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).
Projects
None yet
Development

No branches or pull requests

4 participants