Skip to content

Commit 9c8a0f0

Browse files
attempt to improve test
1 parent 657184a commit 9c8a0f0

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

packages/app/tests/e2e/components/FilterComponent.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,19 @@ export class FilterComponent {
8989
}
9090

9191
/**
92-
* Pin a filter value to persist it
92+
* Pin a filter value personally (localStorage).
93+
* Opens the PinShareMenu dropdown and clicks "Pin for me".
9394
*/
9495
async pinFilter(columnName: string, valueName: string) {
9596
const filterCheckbox = this.getFilterCheckbox(columnName, valueName);
9697
await this.scrollAndClick(
9798
filterCheckbox,
9899
`filter-checkbox-${columnName}-${valueName}-pin`,
99100
);
101+
// PinShareMenu opens a dropdown — click "Pin for me"
102+
await this.page
103+
.getByRole('menuitem', { name: 'Pin for me' })
104+
.click({ timeout: 10000 });
100105
}
101106

102107
/**

0 commit comments

Comments
 (0)