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

Refactor Phantomas to run using headless Chrome #726

Merged
merged 158 commits into from
Feb 2, 2019
Merged

Conversation

macbre
Copy link
Owner

@macbre macbre commented Jan 9, 2019

Resolves #707

Tests do fail as the code is refactored.

Found 11 options covered by integration-spec.yaml: --allow-domain, --analyze-css, --cookie, --no-externals, --page-source, --post-load-delay, --spy-eval, --timeout, --wait-for-event, --wait-for-network-idle, --wait-for-selector
  image-scaling.html (with --screenshot)
    ✓ should be generated
    ✓ PNG file should be saved
…before analyzing CSS and closing the browser session
@macbre
Copy link
Owner Author

macbre commented Jan 27, 2019

Extensions TODO

  • cookies
  • devices
  • filmStrip
  • har
  • httpAuth
  • pageSource
  • postLoadDelay
  • screenshot
  • scroll
  • waitForEvent
  • waitForSelector

✓ OK » 402 honored (27.456s)
✓ OK » 416 honored (29.654s)
  /https-fonts.html
    ✓ should be generated
    ✓ should have "requests" metric properly set
    ✓ should have "httpsRequests" metric properly set
    ✓ should have "webfontCount" metric properly set
    ✓ should have "domains" offender(s) properly set

✓ OK » 421 honored (35.782s)

Metrics tests coverage: from 54.65% to 55.81%
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding#Directives

Add an assert for "assetsNotGzipped" metric.

Metrics tests coverage: from 55.81% to 56.40%
  /assets.html
    ✓ should be generated
    ✓ should have "assetsWithQueryString" offender(s) properly set
    ✓ should have "smallImages" offender(s) properly set
    ✓ should have "smallCssFiles" offender(s) properly set

Metrics tests coverage: 58.14%
  httpbin's /basic-auth
    ✓ should reject a promise
  httpbin's /basic-auth (with --auth-user and --auth-pass)
    ✓ should be generated
    ✓ should have "requests" metric properly set
    ✓ should have "httpsRequests" offender(s) properly set

✓ OK » 432 honored (47.745s)
@macbre macbre merged commit 33e42c0 into phantomas-v2 Feb 2, 2019
@macbre macbre deleted the v2-headless branch February 2, 2019 17:20
@macbre macbre added this to the v2.0 - headless Chromium milestone Feb 2, 2019
@macbre macbre added internals Chrome-headless Tasks related with migration from PhantomJS to Puppeteer's headless Chrome and removed internals labels Feb 2, 2019
@macbre macbre restored the v2-headless branch February 3, 2019 11:16
@macbre macbre deleted the v2-headless branch June 10, 2019 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Chrome-headless Tasks related with migration from PhantomJS to Puppeteer's headless Chrome
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants