Allow Developers to enable Accessibility testing on WebFlutterDriver and get the underlying webDriver (#65051)

This commit is contained in:
Angjie Li
2020-09-08 13:15:06 -07:00
committed by GitHub
parent 46eacc5462
commit d2fa384c31
6 changed files with 82 additions and 10 deletions

View File

@@ -768,6 +768,16 @@ void main() {
expect(driver.waitFor(find.byTooltip('foo')), throwsDriverError);
});
});
group('VMServiceFlutterDriver Unsupported error', () {
test('enableAccessibility', () async {
expect(driver.enableAccessibility(), throwsA(isA<UnsupportedError>()));
});
test('webDriver', () async {
expect(() => driver.webDriver, throwsA(isA<UnsupportedError>()));
});
});
});
group('VMServiceFlutterDriver with custom timeout', () {
@@ -1117,7 +1127,7 @@ void main() {
await driver.checkHealth();
});
group('WebFlutterDriver Unimplemented error', () {
group('WebFlutterDriver Unimplemented/Unsupported error', () {
test('forceGC', () async {
expect(driver.forceGC(),
throwsA(isA<UnimplementedError>()));