Skip to content

Wait for the licenses search filter before clicking a row - #1535

Merged
adamtheturtle merged 2 commits into
mainfrom
adamtheturtle/vws-web-tools-issue-1493
Aug 27, 2026
Merged

Wait for the licenses search filter before clicking a row#1535
adamtheturtle merged 2 commits into
mainfrom
adamtheturtle/vws-web-tools-issue-1493

Conversation

@adamtheturtle

@adamtheturtle adamtheturtle commented Aug 26, 2026

Copy link
Copy Markdown
Member

Closes #1493.

delete_license waits for table_row_0_app_name to be clickable — the unfiltered table — then types the license name into the search, presses ENTER, and immediately starts polling for an exactly-matching row. The filter is applied asynchronously, so the first poll can match a row in the table that is about to be replaced. On a delete, clicking the wrong thing matters more than elsewhere.

_click_license_row now looks at all the license-name rows and requires every one of them to contain the search text before clicking the exact match, which is only true once the filter has been applied. That replaces the single find_element with an exact-match XPath, so this function no longer needs _xpath_literal.

I measured this against the real portal. The licenses table filters quickly — it was down to the single matching row within 5 seconds, unlike the databases table in #1492, which took 10–15 seconds. So the window here is narrower, and the guard is correspondingly cheap: it is satisfied on an early poll rather than adding waiting.

Same change as #1492, for the licenses table.

🤖 Generated with Claude Code

https://claude.ai/code/session_01YJDy3qA1LyNTh11zS98ukM

adamtheturtle and others added 2 commits August 27, 2026 09:03
Closes #1493

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YJDy3qA1LyNTh11zS98ukM
The empty-table guard, the non-matching-row loop arc and the trailing
``return False`` were all unreachable in a live run, leaving the suite
below the 100% coverage gate.

Fold the empty check into the same condition as the match check, and
look the row up by index rather than looping, so the only remaining
defensive path is a single pragma.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Tz9oY7GG92jssXJFUBDr5B
@adamtheturtle
adamtheturtle force-pushed the adamtheturtle/vws-web-tools-issue-1493 branch from 7eaa133 to cc4cf0f Compare August 27, 2026 08:05
@adamtheturtle
adamtheturtle merged commit d9f0d5f into main Aug 27, 2026
29 checks passed
@adamtheturtle
adamtheturtle deleted the adamtheturtle/vws-web-tools-issue-1493 branch August 27, 2026 08:50
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.

delete_license clicks first table row before search filters

1 participant