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

v0.21.0 - Execution hangs on first command execution/jQuery not defined #2707

Closed
maeriens opened this issue Aug 8, 2018 · 4 comments
Closed
Assignees
Labels
STATE: Auto-locked An issue has been automatically locked by the Lock bot. SYSTEM: hammerhead TYPE: bug The described behavior is considered as wrong (bug).
Milestone

Comments

@maeriens
Copy link

maeriens commented Aug 8, 2018

What is the current behavior?

Page opens, but the Waiting for page to load message does not appear. Console hangs after printing the test title.

Solution

I downgraded to v0.19.2 (Not sure why, I have been struggling with this for the past 5 hours and tried everything) and it... works.

How I found out something was wrong

After a few tries, I opened the console and found out that the console show a few errors, in the likes of jQuery is not defined, $ is not defined, Cannot set property 'display' of undefined, etc.

image

Tested page URL: http://the-internet.herokuapp.com/abtest

Test code:

import { Selector } from 'testcafe';

fixture`AB TESTING`
  .page`the-internet.herokuapp.com/abtest`;

test('Print out header', async t => {
  const articleHeader = Selector('#main-form .main-content h1');
  await t
    .expect(articleHeader.innerText).eql('Thank you, Peter Parker!')
}); // I know it will fail, it is the idea.
  • operating system: Linux Mint 18.3 - Cinnamon desktop
  • testcafe version: 0.21.0 and 0.19.2
  • node.js version: 10.5.0
  • browsers: Chrome@latest and Firefox@latest
@maeriens maeriens changed the title Errors with v0.21.0 - Execution hangs on first command execution v0.21.0 - Execution hangs on first command execution/jQuery not defined Aug 8, 2018
@AndreyBelym AndreyBelym added TYPE: bug The described behavior is considered as wrong (bug). SYSTEM: hammerhead labels Aug 8, 2018
@AndreyBelym
Copy link
Contributor

Hi @maeriens, I've reproduced the issue. Looks like a regression in the testcafe-hammerhead package.

@AndreyBelym
Copy link
Contributor

@LavrovArtem, it can be reproduced with the latest master (55c3d75) in hammerhead's playground

@miherlosev
Copy link
Collaborator

Fixed in #2743

@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
STATE: Auto-locked An issue has been automatically locked by the Lock bot. SYSTEM: hammerhead TYPE: bug The described behavior is considered as wrong (bug).
Projects
None yet
Development

No branches or pull requests

4 participants