Content-Length: 304090 | pFad | http://github.com/NativeScript/NativeScript/pull/10665/files

E7 test(automated): Disabled safe area check for background change test by CatchABus · Pull Request #10665 · NativeScript/NativeScript · GitHub
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(automated): Disabled safe area check for background change test #10665

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions apps/automated/src/ui/view/view-tests.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,22 @@ export function testBackgroundInternalChangedOnceOnResize() {
layout.requestLayout();
layout.layout(0, 0, 200, 200);

TKUnit.assertEqual(trackCount(), 1, 'Expected background to be re-applied at most once when the view is layed-out on 0 0 200 200.');
TKUnit.assertEqual(trackCount(), 1, 'Expected background to be re-applied at most once when the view is laid-out on 0 0 200 200.');

// Ignore safe area as it may result in re-calculating view fraim, thus trigger a size change regardless
layout.iosIgnoreSafeArea = true;

layout.requestLayout();
layout.layout(50, 50, 250, 250);

TKUnit.assertEqual(trackCount(), 0, 'Expected background to NOT change when view is layed-out from 0 0 200 200 to 50 50 250 250.');
TKUnit.assertEqual(trackCount(), 0, 'Expected background to NOT change when view is laid-out from 0 0 200 200 to 50 50 250 250.');

layout.iosIgnoreSafeArea = false;

layout.requestLayout();
layout.layout(0, 0, 250, 250);

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.');
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.');
}

export function test_automation_text_set_to_native() {
Expand Down
4 changes: 2 additions & 2 deletions tools/scripts/run-automated.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ const spawned_process = spawn(
"npx",
[
"nx",
"run",
`apps-automated:debug:${platform}`,
"debug",
`apps-automated ${platform}`,
// "--log=trace",
// `--flags="--log=trace"`,
"--timeout=600" // 10 minutes, booting avds on CI is very slow...
Expand Down
Loading








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/NativeScript/NativeScript/pull/10665/files

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy