Remove repeated demo notes from product screens (#28)
This commit is contained in:
1 parent
2ae8086d40
commit
54f50ad6b7
16 files changed
+87
-307
No files matched your search
@@ -129,7 +129,7 @@ void main() {
|
||||
same(router),
|
||||
);
|
||||
expect(find.byKey(const ValueKey('verification-verified')), findsOneWidget);
|
||||
expect(find.text('Демоподтверждение\nзавершено.'), findsOneWidget);
|
||||
expect(find.text('Ваша почта\nподтверждена.'), findsOneWidget);
|
||||
});
|
||||
|
||||
testWidgets(
|
||||
|
||||
@@ -111,7 +111,7 @@ void main() {
|
||||
);
|
||||
|
||||
testWidgets(
|
||||
'signup to demo verification is correlated and never claims a business success',
|
||||
'signup verification keeps simulated analytics with ordinary product copy',
|
||||
(tester) async {
|
||||
final sink = DummyAnalyticsService();
|
||||
await open(tester, '/', sink);
|
||||
@@ -130,10 +130,10 @@ void main() {
|
||||
'example-password',
|
||||
);
|
||||
await tap(tester, find.byKey(const ValueKey('submit')));
|
||||
expect(find.text('Demo email prepared.'), findsOneWidget);
|
||||
expect(find.textContaining('We’ve sent you'), findsNothing);
|
||||
expect(find.text('Check your inbox.'), findsOneWidget);
|
||||
expect(find.textContaining('We’ve sent you'), findsOneWidget);
|
||||
await tap(tester, find.byKey(const ValueKey('demo-confirmation')));
|
||||
expect(find.text('Demo verification\ncomplete.'), findsOneWidget);
|
||||
expect(find.text('Your email\nis verified.'), findsOneWidget);
|
||||
expect(sink.events.map((e) => e.journeyId).toSet().length, 1);
|
||||
expect(sink.events.where((e) => e.terminal).length, 1);
|
||||
expect(
|
||||
|
||||
@@ -57,7 +57,7 @@ void main() {
|
||||
find.byKey(ValueKey('verification-${scenario.value}')),
|
||||
findsOneWidget,
|
||||
);
|
||||
expect(find.textContaining('DEMO'), findsOneWidget);
|
||||
expect(find.textContaining('DEMO'), findsNothing);
|
||||
expect(tester.takeException(), isNull);
|
||||
},
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user