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:
Roland Geider
2026-07-28 17:04:44 +02:00
parent dcfe231110
commit 0cf4111c8d
2 changed files with 9 additions and 0 deletions

View File

@@ -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),

View File

@@ -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'));