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