Skip to content

Commit a4a1071

Browse files
committed
test: use alert role for edit status modal error locators
1 parent 5bea13b commit a4a1071

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/meteor/tests/e2e/page-objects/fragments/modals/edit-status-modal.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ export class EditStatusModal extends Modal {
3636
}
3737

3838
get durationError() {
39-
return this.root.getByText('Expiration must be in the future');
39+
return this.root.getByRole('alert').filter({ hasText: 'Expiration must be in the future' });
4040
}
4141

4242
get durationMissingError() {
43-
return this.root.locator('.rcx-field__error', { hasText: 'Choose date and time' });
43+
return this.root.getByRole('alert').filter({ hasText: 'Choose date and time' });
4444
}
4545

4646
async selectStatusType(status: string): Promise<void> {

0 commit comments

Comments
 (0)