Skip to content

Commit 4fdf69d

Browse files
Skip simple_items_test.dart for customer tests (#9150)
1 parent f084ba0 commit 4fdf69d

1 file changed

Lines changed: 14 additions & 7 deletions

File tree

packages/devtools_app/test/shared/primitives/simple_items_test.dart

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,25 @@
33
// found in the LICENSE file or at https://developers.google.com/open-source/licenses/bsd.
44

55
import 'package:devtools_app/src/shared/primitives/simple_items.dart';
6+
import 'package:devtools_test/helpers.dart';
67
import 'package:flutter_test/flutter_test.dart';
78

89
import '../../test_infra/utils/test_utils.dart';
910

1011
void main() {
1112
for (final link in DocLinks.values) {
12-
test('$link is not broken', () async {
13-
final content = await loadPageHtmlContent(link.value);
14-
final hash = link.hash;
15-
if (hash != null) {
16-
expect(content, contains('href="#$hash"'));
17-
}
18-
});
13+
test(
14+
'$link is not broken',
15+
() async {
16+
final content = await loadPageHtmlContent(link.value);
17+
final hash = link.hash;
18+
if (hash != null) {
19+
expect(content, contains('href="#$hash"'));
20+
}
21+
},
22+
// This test hits the network, which is a violation of Flutter customer
23+
// tests policy: https://github.com/flutter/tests?tab=readme-ov-file#adding-more-tests.
24+
tags: skipForCustomerTestsTag,
25+
);
1926
}
2027
}

0 commit comments

Comments
 (0)