Skip to content

QA: Improve Playwright locators and add extra assertions#98

Open
Tetiana-TC-QA wants to merge 1 commit intoidncod:masterfrom
Tetiana-TC-QA:master
Open

QA: Improve Playwright locators and add extra assertions#98
Tetiana-TC-QA wants to merge 1 commit intoidncod:masterfrom
Tetiana-TC-QA:master

Conversation

@Tetiana-TC-QA
Copy link
Copy Markdown
Contributor

@Tetiana-TC-QA Tetiana-TC-QA commented Apr 20, 2026

Changes

  • Updated locators in:
    • cart-add-item.spec.ts
    • cart-icon-badge.spec.ts
  • Replaced some previous CSS selectors with more stable data-testid locators.
  • Added additional assertions to better validate cart behavior and reduce test flakiness.

Why this is needed

Using data-testid improves test reliability and reduces the risk of breakage when UI structure or styling changes.
The added assertions increase confidence in cart interactions and ensure consistent behavior.

Testing

All Playwright tests pass locally.

##Issue #97

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
snappycart Ready Ready Preview, Comment Apr 20, 2026 4:45pm

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 20, 2026

@Tetiana-TC-QA is attempting to deploy a commit to the idncod's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant