serenity-bdd / serenity-core

Serenity BDD is a test automation library designed to make writing automated acceptance tests easier, and more fun.
http://serenity-bdd.info
Other
719 stars 516 forks source link

User Data Dir is not retaining the logged in user for authentication on profile #3538

Open salmjacks opened 1 week ago

salmjacks commented 1 week ago

What happened?

I am attempting to use Edge profiles for testing different user account types. When I am testing an SSO application like Salesforce or Microsoft, appropriate authentication will work when I right click the browser and run as the specific user. However, when I get the user data folders from appdata and run with Serenity, I can see the profile is being used, but the authentication is being dropped and using the logged in user instead of the profile.

Why is the user-data-dir not being treated the same as run as?

What did you expect to happen?

I expect the profile and the run as to produce the same result and login to the browser as the user profile.

Serenity BDD version

3.7.1

JDK version

17

Execution environment

Windows 10 Edge v128

How to reproduce the bug.

How can we make it happen?

Work on this myself and propose a PR (with Serenity BDD team guidance)