Skip to content

Commit 9a855d6

Browse files
committed
content test [nfc]: Add a how-to comment for widget tests
1 parent 152554f commit 9a855d6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/widgets/content_test.dart

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,17 @@ import 'message_list_checks.dart';
2323
import 'page_checks.dart';
2424

2525
void main() {
26+
// For testing a new content feature:
27+
//
28+
// * Start by writing parsing tests using [ContentExample].
29+
// Then use [testContentSmoke] here to smoke-test the widgets.
30+
//
31+
// * If the widgets have any interactive behavior, test that here too.
32+
// Those tests might not use [ContentExample], because they're often
33+
// clearest if the HTML text is visible directly in the test source code
34+
// to compare with the other details of the test.
35+
// For examples, see the "LinkNode interactions" group below.
36+
2637
TestZulipBinding.ensureInitialized();
2738

2839
Future<void> prepareContentBare(WidgetTester tester, String html) async {

0 commit comments

Comments
 (0)