Skip to content

Commit accf841

Browse files
authored
test: disabled safe area check for background change test (NativeScript#10665)
1 parent 5506e67 commit accf841

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

apps/automated/src/ui/view/view-tests.ios.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,17 +75,22 @@ export function testBackgroundInternalChangedOnceOnResize() {
7575
layout.requestLayout();
7676
layout.layout(0, 0, 200, 200);
7777

78-
TKUnit.assertEqual(trackCount(), 1, 'Expected background to be re-applied at most once when the view is layed-out on 0 0 200 200.');
78+
TKUnit.assertEqual(trackCount(), 1, 'Expected background to be re-applied at most once when the view is laid-out on 0 0 200 200.');
79+
80+
// Ignore safe area as it may result in re-calculating view frame, thus trigger a size change regardless
81+
layout.iosIgnoreSafeArea = true;
7982

8083
layout.requestLayout();
8184
layout.layout(50, 50, 250, 250);
8285

83-
TKUnit.assertEqual(trackCount(), 0, 'Expected background to NOT change when view is layed-out from 0 0 200 200 to 50 50 250 250.');
86+
TKUnit.assertEqual(trackCount(), 0, 'Expected background to NOT change when view is laid-out from 0 0 200 200 to 50 50 250 250.');
87+
88+
layout.iosIgnoreSafeArea = false;
8489

8590
layout.requestLayout();
8691
layout.layout(0, 0, 250, 250);
8792

88-
TKUnit.assertEqual(trackCount(), 1, 'Expected background to be re-applied at most once when the view is layed-out from 50 50 250 250 to 0 0 250 250.');
93+
TKUnit.assertEqual(trackCount(), 1, 'Expected background to be re-applied at most once when the view is laid-out from 50 50 250 250 to 0 0 250 250.');
8994
}
9095

9196
export function test_automation_text_set_to_native() {

tools/scripts/run-automated.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ const spawned_process = spawn(
1515
"npx",
1616
[
1717
"nx",
18-
"run",
19-
`apps-automated:debug:${platform}`,
18+
"debug",
19+
`apps-automated ${platform}`,
2020
// "--log=trace",
2121
// `--flags="--log=trace"`,
2222
"--timeout=600" // 10 minutes, booting avds on CI is very slow...

0 commit comments

Comments
 (0)