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

improve instructions for running behind a login #2123

Merged
merged 1 commit into from
May 2, 2017

Conversation

jimthedev
Copy link
Contributor

As a user it isn't immediately clear that debug-chrome needs to be run and remain open when running lighthouse cli to access an area of a site that requires a login.

As a user it isn't immediately clear that debug-chrome needs to be run and remain open when running lighthouse cli to access an area of a site that requires a login.
@paulirish
Copy link
Member

Fair. Good call.

@paulirish paulirish merged commit 7c1c1c5 into GoogleChrome:master May 2, 2017
@jimthedev
Copy link
Contributor Author

<3

paulirish pushed a commit to paulirish/lighthouse that referenced this pull request May 5, 2017
@hrvojegolcic
Copy link

So if I understand correctly:

  • I have 2 tabs opened in the browser
  • In each tab the same page and I'm logged-in in both tabs
  • I have devtools opened for each tab
  • In one of the tabs I run audit for accessibility

But anways it constantly clears the session and logs me out before the audit is started. Then only audit is done for the login page. What shall I do?

Thanks a lot!

@patrickhulce
Copy link
Collaborator

@hrvojegolcic if you're not storing auth state in a cookie, then there's nothing that can be done from within DevTools at the moment

These instructions are for the CLI where you can also add the --disable-storage-reset flag to avoid clearing out localStorage and other caches.

@esoyke
Copy link

esoyke commented May 3, 2018

Does the --disable-storage-reset flag work? My app was using local storage to maintain the session and this flag wasn't preventing a reset. I refactored my site to use cookies instead to store the authentication, but Lighthouse is clearing out the cookies as well and login still fails.

EDIT: Never mind, I tried the instructions for "Testing on a site with authentication" and it worked, no need for the flag.

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

Successfully merging this pull request may close these issues.

None yet

5 participants