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
28fdb645
Unverified
Commit
28fdb645
authored
Aug 04, 2022
by
hellohuanlin
Committed by
GitHub
Aug 04, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[platform_view]longer wait time for element (#108907)
parent
f1b42bb0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
PlatformViewUITests.m
..._view_tests/ios/PlatformViewUITests/PlatformViewUITests.m
+6
-5
No files found.
dev/integration_tests/ios_platform_view_tests/ios/PlatformViewUITests/PlatformViewUITests.m
View file @
28fdb645
...
@@ -4,6 +4,8 @@
...
@@ -4,6 +4,8 @@
@import
XCTest
;
@import
XCTest
;
static
const
CGFloat
kStandardTimeOut
=
60
.
0
;
@interface
XCUIElement
(
KeyboardFocus
)
@interface
XCUIElement
(
KeyboardFocus
)
@property
(
nonatomic
,
readonly
)
BOOL
flt_hasKeyboardFocus
;
@property
(
nonatomic
,
readonly
)
BOOL
flt_hasKeyboardFocus
;
@end
@end
...
@@ -27,18 +29,17 @@
...
@@ -27,18 +29,17 @@
[
self
.
app
launch
];
[
self
.
app
launch
];
}
}
-
(
void
)
testPlatformViewFocus
{
-
(
void
)
testPlatformViewFocus
{
XCUIElement
*
entranceButton
=
self
.
app
.
buttons
[
@"platform view focus test"
];
XCUIElement
*
entranceButton
=
self
.
app
.
buttons
[
@"platform view focus test"
];
XCTAssertTrue
([
entranceButton
waitForExistenceWithTimeout
:
1
]
);
XCTAssertTrue
([
entranceButton
waitForExistenceWithTimeout
:
kStandardTimeOut
],
@"The element tree is %@"
,
self
.
app
.
debugDescription
);
[
entranceButton
tap
];
[
entranceButton
tap
];
XCUIElement
*
platformView
=
self
.
app
.
textFields
[
@"platform_view[0]"
];
XCUIElement
*
platformView
=
self
.
app
.
textFields
[
@"platform_view[0]"
];
XCTAssertTrue
([
platformView
waitForExistenceWithTimeout
:
1
]);
XCTAssertTrue
([
platformView
waitForExistenceWithTimeout
:
kStandardTimeOut
]);
XCUIElement
*
flutterTextField
=
self
.
app
.
textFields
[
@"Flutter Text Field"
];
XCUIElement
*
flutterTextField
=
self
.
app
.
textFields
[
@"Flutter Text Field"
];
XCTAssertTrue
([
flutterTextField
waitForExistenceWithTimeout
:
1
]);
XCTAssertTrue
([
flutterTextField
waitForExistenceWithTimeout
:
kStandardTimeOut
]);
[
flutterTextField
tap
];
[
flutterTextField
tap
];
XCTAssertTrue
([
self
.
app
.
windows
.
element
waitForExistenceWithTimeout
:
1
]);
XCTAssertTrue
([
self
.
app
.
windows
.
element
waitForExistenceWithTimeout
:
kStandardTimeOut
]);
XCTAssertFalse
(
platformView
.
flt_hasKeyboardFocus
);
XCTAssertFalse
(
platformView
.
flt_hasKeyboardFocus
);
XCTAssertTrue
(
flutterTextField
.
flt_hasKeyboardFocus
);
XCTAssertTrue
(
flutterTextField
.
flt_hasKeyboardFocus
);
...
...
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