Unverified Commit 89442b49 authored by Yegor's avatar Yegor Committed by GitHub

disable semantics in text_editing_integration.dart (#82582)

parent e7a816ea
......@@ -41,7 +41,7 @@ void main() {
textFormField.controller?.text = 'New Value';
// DOM element's value also changes.
expect(input.value, 'New Value');
});
}, semanticsEnabled: false);
testWidgets('Input field with no initial value works',
(WidgetTester tester) async {
......@@ -69,7 +69,7 @@ void main() {
textFormField.controller?.text = 'New Value';
// DOM element's value also changes.
expect(input.value, 'New Value');
});
}, semanticsEnabled: false);
testWidgets('Pressing enter on the text field triggers submit',
(WidgetTester tester) async {
......@@ -105,7 +105,7 @@ void main() {
expect(textFinder2, findsOneWidget);
final Text text2 = tester.widget(textFinder2);
expect(text2.data, 'enter pressed');
});
}, semanticsEnabled: false);
testWidgets('Jump between TextFormFields with tab key',
(WidgetTester tester) async {
......@@ -141,7 +141,7 @@ void main() {
final InputElement input2 =
document.getElementsByTagName('input')[0] as InputElement;
expect(input2.value, 'Text2');
});
}, semanticsEnabled: false);
testWidgets('Jump between TextFormFields with tab key after CapsLock is activated', (WidgetTester tester) async {
app.main();
......@@ -190,7 +190,7 @@ void main() {
final InputElement input2 =
document.getElementsByTagName('input')[0] as InputElement;
expect(input2.value, 'Text2');
});
}, semanticsEnabled: false);
testWidgets('Read-only fields work', (WidgetTester tester) async {
const String text = 'Lorem ipsum dolor sit amet';
......@@ -253,7 +253,7 @@ void main() {
await gesture.up();
range = TextRange(start: input.selectionStart!, end: input.selectionEnd!);
expect(range.textInside(text), 'amet');
});
}, semanticsEnabled: false);
}
KeyboardEvent dispatchKeyboardEvent(
......
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