Skip to content

fix: complete-flow spec flaky test#1597

Open
dluffy56 wants to merge 1 commit intoantiwork:mainfrom
dluffy56:fix/complete-flow
Open

fix: complete-flow spec flaky test#1597
dluffy56 wants to merge 1 commit intoantiwork:mainfrom
dluffy56:fix/complete-flow

Conversation

@dluffy56
Copy link

@dluffy56 dluffy56 commented Feb 5, 2026

Issue: #1531

Description

Problem

The test complete-flow spec was flaky because it used broad page.locator("tbody") selectors to check table content. When multiple invoice rows were present, the date Dec 1, 2024 was being truncated to Dec 1, 202 due to CSS text overflow in table cells, causing the assertion to fail

Solution

Changed from broad tbody selectors to row-specific selectors using page.locator("tbody tr").filter({ hasText: "CUSTOM-X" }). This ensures assertions are targeted to the specific invoice row, avoiding issues with text truncation across the entire table body.


Test Results

Tested with --repeat-each=20 --workers=1 - all 20 test runs passed

Screenshot from 2026-02-06 09-41-05

Checklist


AI Disclosure

Used Claude Opus 4.5 to understand the issue and implement the fix. Code was reviewed and tested manually

@dluffy56 dluffy56 marked this pull request as ready for review February 5, 2026 14:00
@dluffy56 dluffy56 changed the title fix: flaky test fix: complete-flow spec flaky test Feb 5, 2026
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