[MGNLTEST-407] Start selenium browser in incognito mode Created: 28/Mar/23  Updated: 06/Nov/23  Resolved: 06/Nov/23

Status: Closed
Project: Magnolia Test Framework
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Christoph Meier Assignee: Unassigned
Resolution: Obsolete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: 3.5h
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:
Epic Link: subscription-life-cycle-support-by-test-fwk

 Description   

Since we are running cloud/e2e in parallel mode - we may have an issue regarding SSO.

See 

 to me this is because multiple browsers are authenticating using the same SSO account but with different browser data (cookie), which is where pac4j stores some type of session ID for each user

(from Maxime)

Using selenium chromeWebdriver option "icognito" may resolve the issue.

See https://stackoverflow.com/questions/19026295/run-chrome-browser-in-inconginto-mode-in-selenium for how to set the icognito option for chrome-webdriver



 Comments   
Comment by Christoph Meier [ 06/Nov/23 ]

We may have already done that ... cannot remember tbh.
But as for now - no need to do it

Comment by Bertrand Renuart [ 06/Nov/23 ]

cmeier I confirm that the browser is indeed started in "incognito" mode (Chrome at least) when the Selenium driver is created and the session started.

Cfr. https://git.magnolia-cms.com/projects/PLATFORM/repos/test-framework/browse/magnolia-test-framework/src/main/java/info/magnolia/test/selenium/Selenium.java#367

 

Comment by Christoph Meier [ 06/Nov/23 ]

Merci bien!

Generated at Mon Feb 12 07:48:39 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.