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

userDataDir causes bug with multiple scenarios. #107

Open
alucardu opened this issue Mar 9, 2018 · 0 comments
Open

userDataDir causes bug with multiple scenarios. #107

alucardu opened this issue Mar 9, 2018 · 0 comments

Comments

@alucardu
Copy link

alucardu commented Mar 9, 2018

I use BackstopJS to run my test scenarios and use Chrome as the engine so I can use Chromy. When I run my BackstopJS reference with 3 scenarios I get 3 separate Chrome instances with the correct URL's and things work as intended.

If I add a userDataDir value to my onBefore.js script and run the same BackstopJS reference I get 1 Chrome instance with 3 tabs. But only the last tab will open the URL. The one Chrome instance does have my user profile, but I would expect 3 separate Chrome instances with my profile logged in.

module.exports = function (chromy, scenario, vp) {
  require('./loadCookies')(chromy, scenario);

  // IGNORE ANY CERT WARNINGS
  chromy.ignoreCertificateErrors();
  chromy.options.userDataDir = "C:/Users/Peter/AppData/Local/Google/Chrome/User Data/Default";

  return chromy
    .wait(150)      
};

This bug (if it's a bug) only happens when you have debugWindow enabled. Otherwise it works fine.

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

No branches or pull requests

1 participant