mirror of
https://github.com/spliit-app/spliit.git
synced 2026-03-05 20:26:11 +01:00
Add test ID to group header for E2E test reliability
Update group header component to include data-testid for improved test targeting and update Page Object Model to use the more reliable test ID selector. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -16,7 +16,9 @@ export const GroupHeader = () => {
|
|||||||
{isLoading ? (
|
{isLoading ? (
|
||||||
<Skeleton className="mt-1.5 mb-1.5 h-5 w-32" />
|
<Skeleton className="mt-1.5 mb-1.5 h-5 w-32" />
|
||||||
) : (
|
) : (
|
||||||
<div className="flex">{group.name}</div>
|
<div className="flex" data-testid="group-name">
|
||||||
|
{group.name}
|
||||||
|
</div>
|
||||||
)}
|
)}
|
||||||
</Link>
|
</Link>
|
||||||
</h1>
|
</h1>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ export class GroupPage {
|
|||||||
|
|
||||||
constructor(page: Page) {
|
constructor(page: Page) {
|
||||||
this.page = page
|
this.page = page
|
||||||
this.title = page.getByRole('main').getByRole('heading', { level: 1 })
|
this.title = page.getByTestId('group-name')
|
||||||
}
|
}
|
||||||
|
|
||||||
async createExpense() {
|
async createExpense() {
|
||||||
|
|||||||
Reference in New Issue
Block a user