← Back to Discord Forum

UI tests with non-interactive user account a.k.a. service account?

I will run some UI tests but facing issues with which user account to use for authorize/authentication. Playwright can run in headless mode so would this be the same flow using a non-interactive user account a.k.a. service account? A service account can only run in headless (non-interactive mode), it cannot run in headed mode.

Steps I want to follow:

  1. write the playwright tests to run in headless mode
  2. use the service account credentials to login (to the UI in headless mode) with username and password
  3. run the remaining tests in headless mode which will fill out some forms in the UI and submit

Is this do-able? Will this work?

This thread is trying to answer question "Can UI tests be run in headless mode using a service account with Playwright?"

1 reply

@.graff I re-posted it. Thanks.

AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email luc@ray.run.