Reland eliminate timeouts from integration tests (#85141)

This commit is contained in:
Dan Field
2021-06-23 13:08:51 -07:00
committed by GitHub
parent 568f135a13
commit 9c0bd18c40
46 changed files with 101 additions and 90 deletions

View File

@@ -161,7 +161,7 @@ void main() {
],
),
);
});
}, timeout: Timeout.none);
test('password TextField has correct Android semantics', () async {
final SerializableFinder passwordTextField = find.descendant(
@@ -229,7 +229,7 @@ void main() {
],
),
);
});
}, timeout: Timeout.none);
tearDownAll(() async {
await driver.tap(find.byValueKey('back'));
@@ -287,7 +287,7 @@ void main() {
],
),
);
});
}, timeout: Timeout.none);
test('Radio has correct Android semantics', () async {
Future<AndroidSemanticsNode> getRadioSemantics(String key) async {
return getSemantics(find.byValueKey(key));
@@ -323,7 +323,7 @@ void main() {
],
),
);
});
}, timeout: Timeout.none);
test('Switch has correct Android semantics', () async {
Future<AndroidSemanticsNode> getSwitchSemantics(String key) async {
return getSemantics(find.byValueKey(key));
@@ -359,7 +359,7 @@ void main() {
],
),
);
});
}, timeout: Timeout.none);
// Regression test for https://github.com/flutter/flutter/issues/20820.
test('Switch can be labeled', () async {
@@ -381,7 +381,7 @@ void main() {
],
),
);
});
}, timeout: Timeout.none);
tearDownAll(() async {
await driver.tap(find.byValueKey('back'));
@@ -461,7 +461,7 @@ void main() {
} finally {
await driver.tap(find.byValueKey('$popupKeyValue.${popupItems.first}'));
}
});
}, timeout: Timeout.none);
test('Dropdown Menu has correct Android semantics', () async {
expect(
@@ -551,7 +551,7 @@ void main() {
),
);
}
});
}, timeout: Timeout.none);
test('Modal alert dialog has correct Android semantics', () async {
expect(
@@ -647,7 +647,7 @@ void main() {
} finally {
await driver.tap(find.byValueKey('$alertKeyValue.OK'));
}
});
}, timeout: Timeout.none);
tearDownAll(() async {
await Future<void>.delayed(const Duration(milliseconds: 500));
@@ -665,14 +665,14 @@ void main() {
await getSemantics(find.byValueKey(appBarTitleKeyValue)),
hasAndroidSemantics(isHeading: true),
);
});
}, timeout: Timeout.none);
test('body text does not have Android heading semantics', () async {
expect(
await getSemantics(find.byValueKey(bodyTextKeyValue)),
hasAndroidSemantics(isHeading: false),
);
});
}, timeout: Timeout.none);
tearDownAll(() async {
await driver.tap(find.byValueKey('back'));