mirror of
https://github.com/wger-project/flutter.git
synced 2026-12-04 20:52:26 +01:00
Set fixed size for logo
This was causing tests to fail due to the screen size and the sharding behaviour in CI
This commit is contained in:
@@ -53,6 +53,7 @@ class AuthScreen extends StatelessWidget {
|
||||
const Image(
|
||||
image: AssetImage('assets/images/logo-white.png'),
|
||||
width: 85,
|
||||
height: 85,
|
||||
),
|
||||
Container(
|
||||
margin: const EdgeInsets.only(bottom: 20.0),
|
||||
|
||||
@@ -334,6 +334,10 @@ void main() {
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
// Act
|
||||
// The card overflows the default 800x600 test surface and clips the
|
||||
// ADVANCED footer at the bottom, so scroll it into view before tapping.
|
||||
await tester.ensureVisible(find.byKey(const Key('advancedButton')));
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tap(find.byKey(const Key('advancedButton')));
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tap(find.text('Refresh token'));
|
||||
@@ -382,6 +386,10 @@ void main() {
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
// Act
|
||||
// The card overflows the default 800x600 test surface and clips the
|
||||
// ADVANCED footer at the bottom, so scroll it into view before tapping.
|
||||
await tester.ensureVisible(find.byKey(const Key('advancedButton')));
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tap(find.byKey(const Key('advancedButton')));
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tap(find.text('Refresh token'));
|
||||
|
||||
Reference in New Issue
Block a user