Skip to content

Commit 5b470de

Browse files
committed
chore: decrease settings tolerance from 97 to 96
1 parent ba8eaa7 commit 5b470de

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

run/test/specs/utils/utilities.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,11 @@ export async function assertUrlIsReachable(url: string): Promise<void> {
8686
export async function setConsistentStatusBar(device: DeviceWrapper): Promise<void> {
8787
if (device.isIOS()) {
8888
// Time: 4:20, 100% battery, full wifi signal
89+
device.log(`[DEBUG]: Attempting to set fake status bar`);
8990
await runScriptAndLog(
90-
`xcrun simctl status_bar ${device.udid} override --time "04:20" --batteryLevel 100 --batteryState charged --wifiBars 3`
91+
`xcrun simctl status_bar ${device.udid} override --time "04:20" --batteryLevel 100 --batteryState charged --wifiBars 3`, true
9192
);
93+
device.log(`[DEBUG]: Fake status bar command has been sent`);
9294
} else if (device.isAndroid()) {
9395
// Enable demo mode to set consistent status bar elements
9496
await runScriptAndLog(`adb -s ${device.udid} shell settings put global sysui_demo_allowed 1`);

run/test/specs/visual_settings.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ for (const { screenName, screenshotFile, navigation } of testCases) {
8484
});
8585

8686
await test.step(TestSteps.VERIFY.SCREENSHOT(screenName), async () => {
87-
await verifyPageScreenshot(device, platform, screenshotFile, testInfo);
87+
await verifyPageScreenshot(device, platform, screenshotFile, testInfo, 0.96);
8888
});
8989

9090
await test.step(TestSteps.SETUP.CLOSE_APP, async () => {

0 commit comments

Comments
 (0)