Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
04f4dd8e
Unverified
Commit
04f4dd8e
authored
Aug 18, 2022
by
hellohuanlin
Committed by
GitHub
Aug 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[platform_view]terminate the app in tear down for platform view xcuitest (#109720)
parent
61a54b07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
PlatformViewUITests.m
..._view_tests/ios/PlatformViewUITests/PlatformViewUITests.m
+12
-0
No files found.
dev/integration_tests/ios_platform_view_tests/ios/PlatformViewUITests/PlatformViewUITests.m
View file @
04f4dd8e
...
...
@@ -23,11 +23,23 @@ static const CGFloat kStandardTimeOut = 60.0;
@implementation
PlatformViewUITests
-
(
void
)
setUp
{
[
super
setup
];
self
.
continueAfterFailure
=
NO
;
self
.
app
=
[[
XCUIApplication
alloc
]
init
];
[
self
.
app
launch
];
}
-
(
void
)
tearDown
{
// This is trying to fix a "failed to terminate" failure, which is likely a bug in Xcode.
// In theory the terminate call is not necessary, but many has encountered this similar
// issue, and fixed it by terminating the app and relaunching it if needed for each test.
// Here we simply try terminating the app in tearDown, but if it does not work,
// then alternative solution is to terminate and relaunch the app.
[
self
.
app
terminate
];
[
super
tearDown
];
}
-
(
void
)
testPlatformViewFocus
{
XCUIElement
*
entranceButton
=
self
.
app
.
buttons
[
@"platform view focus test"
];
XCTAssertTrue
([
entranceButton
waitForExistenceWithTimeout
:
kStandardTimeOut
],
@"The element tree is %@"
,
self
.
app
.
debugDescription
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment