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.
This commit is contained in:
StylusFrost
2025-10-29 16:00:04 +01:00
parent f457653a8d
commit fb59998447
+2 -1
View File
@@ -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");
}