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

TestCafe can't resize MS Edge 15 #1517

Closed
Scrum opened this issue Jun 5, 2017 · 6 comments
Closed

TestCafe can't resize MS Edge 15 #1517

Scrum opened this issue Jun 5, 2017 · 6 comments
Assignees
Labels
STATE: Auto-locked An issue has been automatically locked by the Lock bot. SYSTEM: browser natives TYPE: bug The described behavior is considered as wrong (bug).
Milestone

Comments

@Scrum
Copy link

Scrum commented Jun 5, 2017

Are you requesting a feature or reporting a bug?

Bug

What is the current behavior?

1) AssertionError: expected 30 to deeply equal 29

      Browser: Edge 15.15063.0 / Windows 10 0.0.0

         16 |    const gridRowPage = new GridRowPage();
         17 |
         18 |    await t.navigateTo(gridColPage.url)
         19 |        .expect(gridColPage.colums.count).eql(12)
         20 |        .resizeWindow(500, 500)
       > 21 |        .expect(gridColPage.colums.nth(0).clientWidth).eql(29)
         22 |        .navigateTo(gridRowPage.url)
         23 |        .expect(gridRowPage.rows.count).eql(12)
         24 |        .resizeWindow(500, 500)
         25 |        .expect(gridRowPage.rows.clientHeight).eql(25);
         26 |});

If you perform a manual inspection, then the width of the element is 29

What is the expected behavior?

test passed

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

$ git clone https://github.com/GitScrum/slims.git && cd slims
$ npm i && npm t

This should be done on the platform Windows 10

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

Tested page URL: https://github.com/GitScrum/slims/blob/master/tests/e2e/index-test.js#L14-L26

Specify your

  • operating system: Windows 10 0.0.0
  • testcafe version: 0.15.0
  • node.js version: v8.0.0
@AndreyBelym AndreyBelym self-assigned this Jun 6, 2017
@AlexanderMoskovkin AlexanderMoskovkin added STATE: Need clarification An issue lacks information for further research. TYPE: bug The described behavior is considered as wrong (bug). labels Jun 7, 2017
@AlexanderMoskovkin
Copy link
Contributor

Hi Ivan,

I've checked your scenario and it works properly on my side.
I've added a debug command before the assertion:

await t.navigateTo(gridColPage.url)
        .expect(gridColPage.colums.count).eql(12)
        .resizeWindow(500, 500)
        .debug()
        .expect(gridColPage.colums.nth(0).clientWidth).eql(29)

Here is a screenshot how does it look on my side:
2017-06-07_0947

As you can see TestCafe run is stopped on the debug command. window.innerWidth equals 500 as expected and the clientWidth of the column is 29. I think it can be related to your MS Edge rendering specific or some extensions behavior. Could you please perform the same steps as I did to see what's wrong on your side?

@Scrum
Copy link
Author

Scrum commented Jun 7, 2017

@AlexanderMoskovkin Hi, I think the problem is resizeWindow. I changed the value to 600 but the window did not change

bug

@AndreyBelym
Copy link
Contributor

Hello @gitscrum, I reproduced the problem with resizeWindow and Edge 15. It's related to the OS-specific native module: DevExpress/testcafe-browser-tools#117. Need some to investigate and fix it. I will inform you when the fix will be available in a next alpha/release.

@Scrum
Copy link
Author

Scrum commented Jun 7, 2017

@AndreyBelym Hi, thanks for the feedback. And also I have problems with:
MacOS 10.12.5
Firefox DE 54.0b14
Chrome 61.0.3122
Safari 10.1.1
2017-06-08 0 08 54

@AlexanderMoskovkin AlexanderMoskovkin added SYSTEM: browser natives and removed STATE: Need clarification An issue lacks information for further research. labels Jun 9, 2017
@AlexanderMoskovkin AlexanderMoskovkin added this to the Sprint #8 milestone Jun 9, 2017
@AndreyBelym
Copy link
Contributor

Hello @gitscrum, we discovered that some apps can prevent TestCafe from accessing browser windows. In this case, relogin without session restore might be helpful.

@AlexanderMoskovkin AlexanderMoskovkin modified the milestones: Sprint #8, Planned Jul 17, 2017
@AlexanderMoskovkin AlexanderMoskovkin modified the milestones: Sprint #9, Planned Aug 2, 2017
@AlexanderMoskovkin AlexanderMoskovkin changed the title Edge 15.15063.0 / Windows 10 0.0.0 TestCafe can't resize MS Edge 15 Aug 16, 2017
@lock
Copy link

lock bot commented Mar 28, 2019

This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. We recommend you ask TestCafe API, usage and configuration inquiries 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
STATE: Auto-locked An issue has been automatically locked by the Lock bot. SYSTEM: browser natives TYPE: bug The described behavior is considered as wrong (bug).
Projects
None yet
Development

No branches or pull requests

3 participants