Commit 568bf06c authored by Chris Bracken's avatar Chris Bracken Committed by GitHub

Test that view padding is applied on show keyboard (#10190)

Ensure that showing the keyboard applies padding, reducing the view
height.
parent fdbb1fbb
......@@ -30,6 +30,10 @@ void main() {
await driver.tap(defaultTextField);
await new Future<Null>.delayed(const Duration(seconds: 1));
// Measure the height with keyboard displayed.
final String heightWithKeyboardShown = await driver.getText(heightText);
expect(double.parse(heightWithKeyboardShown) < double.parse(startHeight), isTrue);
// Unfocus the text field to dismiss the keyboard.
final SerializableFinder unfocusButton = find.byValueKey(keys.kUnfocusButton);
await driver.waitFor(unfocusButton);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment