fix: mount StringsScope, keep list inline text, show FOB until scroll down
This commit is contained in:
parent
9a11194f77
commit
65e693b9c6
6 changed files with 281 additions and 27 deletions
|
|
@ -20,16 +20,16 @@ Future<MewsApp> _app() async {
|
|||
}
|
||||
|
||||
void main() {
|
||||
testWidgets('starts with the address bar and no FOB', (tester) async {
|
||||
testWidgets('starts with the address bar and the FOB on screen', (tester) async {
|
||||
await tester.pumpWidget(await _app());
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(find.byType(TextField), findsOneWidget);
|
||||
expect(find.text('Enter a web address'), findsOneWidget);
|
||||
// The FOB only appears once the reader scrolls a page; without a page it
|
||||
// stays invisible and untouchable.
|
||||
// The FOB is on screen from the beginning and hides only while the
|
||||
// reader scrolls down.
|
||||
final fob = tester.widget<Fob>(find.byType(Fob));
|
||||
expect(fob.visible, isFalse);
|
||||
expect(fob.visible, isTrue);
|
||||
});
|
||||
|
||||
testWidgets('renders a page and follows links', (tester) async {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue