Skip to content

Commit

Permalink
fix: remove platform from newUser and linkedDevice
Browse files Browse the repository at this point in the history
  • Loading branch information
Miki-Session committed Jan 7, 2025
1 parent 5337172 commit 0c6b567
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions run/test/specs/check_avatar_color.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ bothPlatformsIt('Avatar color', 'medium', avatarColor);
async function avatarColor(platform: SupportedPlatformsType) {
const { device1, device2 } = await openAppTwoDevices(platform);
const [userA, userB] = await Promise.all([
newUser(device1, USERNAME.ALICE, platform),
newUser(device2, USERNAME.BOB, platform),
newUser(device1, USERNAME.ALICE),
newUser(device2, USERNAME.BOB),
]);
await newContact(platform, device1, userA, device2, userB);
await device1.navigateBack();
Expand Down
2 changes: 1 addition & 1 deletion run/test/specs/linked_device_avatar_color.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ bothPlatformsIt('Avatar color linked device', 'medium', avatarColorLinkedDevice)

async function avatarColorLinkedDevice(platform: SupportedPlatformsType) {
const { device1, device2 } = await openAppTwoDevices(platform);
const userA = await linkedDevice(device1, device2, USERNAME.ALICE, platform);
const userA = await linkedDevice(device1, device2, USERNAME.ALICE);
// Get Alice's avatar color on device 1 and turn it into a hex value
const device1Avatar = await device1.waitForTextElementToBePresent(new UserSettings(device1));
const device1Base64 = await device1.getElementScreenshot(device1Avatar.ELEMENT);
Expand Down

0 comments on commit 0c6b567

Please sign in to comment.