Skip to content

Commit f52b8b4

Browse files
committed
fix: upm test compares trimmed values
1 parent a7597c4 commit f52b8b4

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

run/test/specs/community_requests_off.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { joinCommunity } from './utils/join_community';
88
import { closeApp, openAppTwoDevices, SupportedPlatformsType } from './utils/open_app';
99

1010
bothPlatformsIt({
11-
title: 'Blinded message request off',
11+
title: 'Community message requests off',
1212
risk: 'medium',
1313
testCb: blindedMessageRequests,
1414
countOfDevicesNeeded: 2,

run/test/specs/community_requests_on.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { joinCommunity } from './utils/join_community';
1313
import { closeApp, openAppTwoDevices, SupportedPlatformsType } from './utils/open_app';
1414

1515
bothPlatformsIt({
16-
title: 'Blinded message request',
16+
title: 'Community message requests on',
1717
risk: 'medium',
1818
testCb: blindedMessageRequests,
1919
countOfDevicesNeeded: 2,

run/test/specs/upm_homescreen.spec.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,11 @@ async function upmHomeScreen(platform: SupportedPlatformsType, testInfo: TestInf
4848
});
4949
const eltext = await alice1.getTextFromElement(el);
5050
const normalized = eltext.replace(/\s+/g, ''); // account id comes in two lines
51-
if (eltext !== bob.sessionId) {
52-
throw new Error(`Account ID does not match.
53-
Expected: ${bob.sessionId}
54-
Observed: ${normalized}`);
51+
const expected = bob.sessionId.trim();
52+
if (normalized !== expected) {
53+
console.log(`Expected: ${expected}
54+
Observed: ${normalized}`);
55+
throw new Error('Incorrect Account ID in the User Profile Modal');
5556
}
5657
});
5758
await test.step(TestSteps.SETUP.CLOSE_APP, async () => {

0 commit comments

Comments
 (0)