From fb599984477de4d29ab1515a27fc5100bd3b3fef Mon Sep 17 00:00:00 2001 From: StylusFrost Date: Wed, 29 Oct 2025 16:00:04 +0100 Subject: [PATCH] fix(ui): add missing spaces in InvitationsPage tests - Added missing spaces in the InvitationsPage tests to improve readability and maintain consistency in the code style. - This change enhances the overall clarity of the test code without affecting functionality. --- ui/tests/invitations/invitations-page.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/tests/invitations/invitations-page.ts b/ui/tests/invitations/invitations-page.ts index d2e7ad8783..0bddbc99b8 100644 --- a/ui/tests/invitations/invitations-page.ts +++ b/ui/tests/invitations/invitations-page.ts @@ -82,12 +82,12 @@ export class InvitationsPage extends BasePage { // Prefer ARIA role option inside listbox const option = this.page.getByRole("option", { name: new RegExp(`^${role}$`, "i") }); + if (await option.count()) { await option.first().click(); } else { throw new Error(`Role option ${role} not found`); } - // Ensure the combobox now shows the chosen value await expect(this.roleSelect).toContainText(new RegExp(role, "i")); } @@ -104,6 +104,7 @@ export class InvitationsPage extends BasePage { // Get the share url text content const text = await this.shareUrl.textContent(); + if (!text) { throw new Error("Share url not found"); }