Commit acc237d
fix(tests): scope glossary-terms-table column headers to columnheader role (#27187)
validateGlossaryTerm asserted the table headers (Terms, Description,
Owners, Status) with getByTestId('glossary-terms-table').getByText(...),
which triggered a Playwright strict mode violation: getByText('Owners')
matched both the column header <div class="resizable-title">Owners</div>
and the "No Owners" placeholder cell rendered in rows without owners.
This broke the "Approve and reject glossary term from Glossary Listing"
test (and any other test going through createGlossaryTerms).
Scope the assertions to getByRole('columnheader', { name: ... }) so we
match the <th> elements directly instead of anything with matching text
inside the table body.
Co-authored-by: Siddhant <siddhant@MacBook-Pro-457.local>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
(cherry picked from commit daa2dce)1 parent 48170a6 commit acc237d
1 file changed
Lines changed: 12 additions & 4 deletions
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
706 | 706 | | |
707 | 707 | | |
708 | 708 | | |
709 | | - | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
710 | 712 | | |
711 | 713 | | |
712 | | - | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
713 | 717 | | |
714 | 718 | | |
715 | | - | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
716 | 722 | | |
717 | 723 | | |
718 | | - | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
719 | 727 | | |
720 | 728 | | |
721 | 729 | | |
| |||
0 commit comments