Skip to content

Browser test on Travis #5660

Closed
Closed

Description

@saschanaz

Not really familiar yet with the browser test set but probably Firefox headless mode can help here.

Activity

  1. juj commented on Oct 12, 2017

    @juj
    Collaborator

    Chatted with Alon yesterday about the browser tests on Travis, and the thinking here was that we should probably focus on using the test time that Travis gives on the default and other suites, and then keep the browser runs on the bots.

  2. saschanaz commented on Oct 13, 2017

    @saschanaz
    CollaboratorAuthor

    Travis time limit is for each job, not each build.

    https://docs.travis-ci.com/user/customizing-the-build/#Build-Timeouts

    There is no timeout for a build; a build will run as long as all the jobs do as long as each job does not timeout.

    So I think it won't really matter.

  3. kripken commented on Nov 24, 2017

    @kripken
    Member
  4. saschanaz commented on Nov 29, 2017

    @saschanaz
    CollaboratorAuthor

    The post mentions PhantomJS which is expected to die since the launch of Headless Chrome. https://groups.google.com/forum/#!topic/phantomjs/9aI5d-LDuNE

    And we have #5668, which is a Chrome side bug. Maybe we should skip some tests...

    (Firefox is not usable here because it doesn't support disabling popup via CLI)

  5. kripken commented on Dec 5, 2017

    @kripken
    Member

    There may be a browser pref for firefox that allows popups. And maybe there's a way to set prefs from the firefox CLI?

  6. saschanaz commented on Dec 5, 2017

    @saschanaz
    CollaboratorAuthor
  7. saschanaz commented on Dec 5, 2017

    @saschanaz
    CollaboratorAuthor

    We may do iframe way, which would be comfortable with popup blockers.

  8. kripken commented on Dec 5, 2017

    @kripken
    Member

    I like the iframe idea, that's worth trying. If it works it might be better anyhow for other reasons (no extra tabs left open, etc.). But it would take some work in the test runner.

    If that doesn't work out, then looks like Firefox has

      --profile <path>   Start with profile at <path>.
    

    And there are options that control popups. So we could create a firefox profile file once with the right options, and add that file in the repo (tests/firefox.profile perhaps), then on the bot, use that profile.

  9. saschanaz commented on Dec 5, 2017

    @saschanaz
    CollaboratorAuthor

    https://github.com/saadtazi/firefox-profile-js/blob/master/lib/firefox_profile.js

    This code shows how we can create a custom profile, so we may try same thing to disable the blocker.

  10. saschanaz commented on Dec 5, 2017

    @saschanaz
    CollaboratorAuthor

    Managing a Firefox profile is more complicated in my understanding, not sure what the package does yet.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions