Skip to content

Migrate 4 Selenium tests to Playwright - #1

Draft
shiftwright-dev[bot] wants to merge 1 commit into
mainfrom
shiftwright/ghpr-verify-1
Draft

shiftwright-dev[bot] wants to merge 1 commit into
mainfrom
shiftwright/ghpr-verify-1

Conversation

@shiftwright-dev

Copy link
Copy Markdown

Selenium → Playwright migration

This pull request successfully migrates 4 total tests from Selenium to Playwright, resulting in 4 passed and 2 healed tests. The migration reduced the execution runtime from 33.4 seconds to 19.4 seconds, delivering a speedup factor of 1.7. Additionally, test suite reliability was enhanced through the elimination of flake sources, specifically removing 2 sleep calls and 1 raw xpath.

Results

Metric Before (Selenium) After (Playwright)
Suite runtime 33.4s 19.4s (1.7× faster)
time.sleep() calls 2 0
Raw XPath locators 1 0
Tests 4 4 passed (2 self-healed), 0 need attention

What the agent learned

Legacy Modern
page.get_by_test_id("add-to-cart-sauce-labs-backpack") page.locator('[data-test="add-to-cart-sauce-labs-backpack"]')
page.get_by_test_id("add-to-cart-sauce-labs-backpack") page.locator('[data-test="add-to-cart-sauce-labs-backpack"]')

Per-file status

  • tests/test_login.py
  • tests/test_logout.py
  • tests/test_cart.py — self-healed
  • tests/test_checkout.py — self-healed

Traces: gs://playwrightshift-traces/runs/ghpr-verify-1/ · Dashboard: /runs/ghpr-verify-1

Migrated by Shiftwright, run ghpr-verify-1.
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.

0 participants