Playwright

Log in and save storage state

Medium70 pts~25 min
  • Document Vault
Practice app · Document Vault

File upload and download, cookies, localStorage, sessionStorage and JavaScript execution.

Test URL
/lab/qa-automation-log-in-and-save-storage-state

Your starter code already declares TEST_URL — never hardcode a host.

Objective

Log in and save storage state. Practise it against the Document Vault practice application (File upload and download, cookies, localStorage, sessionStorage and JavaScript execution.).

Your task

  1. 1Open the practice application at the test URL shown above and wait for it to finish loading.
  2. 2Inspect the page to find the elements you need — key elements include #file-upload, #multi-upload, #upload-button.
  3. 3Write and run a test that demonstrates: log in and save storage state.
  4. 4Finish with at least one assertion on a user-visible outcome, not an internal detail.

Acceptance criteria

  • The test runs to completion without errors.
  • The test contains at least one passing assertion on a user-visible outcome.

Playwright · QA Automation · Authentication & storage state