Skip to content

Commit

Permalink
Merge branch 'dev' into luis/seed-phrase-test
Browse files Browse the repository at this point in the history
  • Loading branch information
luisecm authored Nov 4, 2024
2 parents f74ec50 + 4b557d1 commit 4303ab3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 4 additions & 1 deletion playwright/PageObjects/ChatsElements/CreateGroupModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,12 @@ export class CreateGroupModal extends MainPage {

async createGroupChat(name: string, users: string[]) {
await this.createGroupModal.waitFor({ state: "attached" });
await this.createGroupInputGroupName.clear();
await this.createGroupInputGroupName.fill(name);
await this.selectUser(users);
await this.createGroupButton.click();
if (users.length > 0 && name.length > 0) {
await this.createGroupButton.click();
}
}

async exitCreateGroup(): Promise<void> {
Expand Down
7 changes: 2 additions & 5 deletions playwright/specs/03-friends-two-instances.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2186,11 +2186,8 @@ test.describe("Two instances tests - Friends and Chats", () => {
});

await test.step("Validate that group without members cannot be created", async () => {
await createGroupThird.createGroupChat("", []);
await expect(createGroupThird.errorUsersCreateGroupModal).toBeVisible();
await expect(createGroupThird.errorUsersCreateGroupModal).toHaveText(
"No members selected",
);
await createGroupThird.createGroupChat("test", []);
await expect(createGroupThird.createGroupButton).toBeDisabled();
});

await test.step("Validate that group without name cannot be created", async () => {
Expand Down

0 comments on commit 4303ab3

Please sign in to comment.