Skip to content
This repository was archived by the owner on May 23, 2025. It is now read-only.

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

Open
backflip wants to merge 10 commits intodevelopfrom
feature/qunit-puppeteer
Open

Use Headless Chrome over PhantomJS for (QUnit) tests#89
backflip wants to merge 10 commits intodevelopfrom
feature/qunit-puppeteer

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
// 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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant