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
ad612b59
Unverified
Commit
ad612b59
authored
Feb 14, 2022
by
LongCatIsLooong
Committed by
GitHub
Feb 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dump app on keyboard_textfield_test timeout (#98305)
parent
5515400a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
4 deletions
+20
-4
keyboard_textfield.dart
dev/integration_tests/ui/lib/keyboard_textfield.dart
+4
-3
keyboard_textfield_test.dart
...gration_tests/ui/test_driver/keyboard_textfield_test.dart
+16
-1
No files found.
dev/integration_tests/ui/lib/keyboard_textfield.dart
View file @
ad612b59
...
...
@@ -62,10 +62,11 @@ class _MyHomePageState extends State<MyHomePage> {
Text
(
'
$offset
'
,
key:
const
ValueKey
<
String
>(
keys
.
kOffsetText
),
),
if
(
isSoftKeyboardVisible
)
const
Text
(
'keyboard visible
'
,
key:
ValueKey
<
String
>(
keys
.
kKeyboardVisibleView
),
Text
(
isSoftKeyboardVisible
?
'keyboard visible'
:
'keyboard hidden
'
,
key:
const
ValueKey
<
String
>(
keys
.
kKeyboardVisibleView
),
),
const
ElevatedButton
(
onPressed:
debugDumpApp
,
child:
Text
(
'dump app'
)),
Expanded
(
child:
ListView
(
key:
const
ValueKey
<
String
>(
keys
.
kListView
),
...
...
dev/integration_tests/ui/test_driver/keyboard_textfield_test.dart
View file @
ad612b59
...
...
@@ -40,8 +40,23 @@ void main() {
// Bring up keyboard
await
driver
.
tap
(
textFieldFinder
);
const
int
keyboardTimeout
=
3
;
bool
keyboardVisible
=
false
;
for
(
int
i
=
0
;
i
<
keyboardTimeout
;
i
++)
{
await
Future
<
void
>.
delayed
(
const
Duration
(
seconds:
1
));
final
String
keyboardVisibilityText
=
await
driver
.
getText
(
keyboardVisibilityIndicatorFinder
);
keyboardVisible
=
keyboardVisibilityText
==
'keyboard visible'
;
if
(
keyboardVisible
)
{
break
;
}
}
if
(!
keyboardVisible
)
{
await
driver
.
tap
(
find
.
text
(
'dump app'
));
}
// TODO(jmagman): Remove timeout once flake has been diagnosed. https://github.com/flutter/flutter/issues/96787
await
driver
.
waitFor
(
keyboardVisibilityIndicatorFinder
,
timeout:
const
Duration
(
seconds:
5
)
);
expect
(
keyboardVisible
,
isTrue
);
// Ensure that TextField is visible again
await
driver
.
waitFor
(
textFieldFinder
);
...
...
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