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

Use Headless Chrome over PhantomJS for (QUnit) tests #89

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from

Conversation

backflip
Copy link
Collaborator

@backflip backflip commented Nov 25, 2017

Goals:

  • Replace PhantomJS with Puppeteer
  • Remove every ugly non-obvious hack we introduced to run js:qunit

TODO:

  • Add useful formatted reporter
  • Run tests in different viewports
  • Resolve test file globs
  • Test all HTML files
  • Rename to js:test since it will also check for console.error unrelated to specific QUnit tests
  • Fix failing Slideshow test

@backflip
Copy link
Collaborator Author

Basic reporter added:
image

@backflip backflip changed the title [WIP] Run QUnit tests in Puppeteer instead of PhantomJS Run QUnit tests in Puppeteer instead of PhantomJS Nov 27, 2017
@@ -57,7 +57,7 @@ class WindowEventListener {

// Save to global namespace
$.extend(true, estatico, { events: {} });
estatico.events[eventName] = debouncedEventName;
estatico.events[debouncedEventName.split('.')[0]] = debouncedEventName;
Copy link
Collaborator Author

@backflip backflip Nov 27, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is necessary if we want to have both debounced and throttled variants of scroll/resize. Otherwise the one registered later will overwrite the first one. That's what led to the slideshow tests failing.

I have updated docs/Coding_Guidelines.md accordingly.

Is this a breaking change for anyone?

@backflip backflip changed the title Run QUnit tests in Puppeteer instead of PhantomJS Use Headless Chrome over PhantomJS for (QUnit) tests Nov 27, 2017
@backflip
Copy link
Collaborator Author

Added to new implementation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant