fix(ci): update timeline toolbar assertions and generated provider
Gitea CI / Check code and tests (pull_request) Successful in 8m39s
Gitea CI / Audit and package Windows x64 (pull_request) Canceled after 0s
Gitea CI / Assemble and validate CI artifacts (pull_request) Canceled after 0s
Gitea CI / Build Windows x64 app (pull_request) Canceled after 2m40s
Gitea CI / Build Android APK (pull_request) Canceled after 2m40s
Gitea CI / Gitea CI passed (pull_request) Failing after 17s

This commit is contained in:
lingjhf committed 2026-10-07 16:34:01 +08:00
1 parent 4f746be301
commit e345c81af7
2 files changed
+14 -3

No files matched your search

+13 -2
View File
@@ -3608,7 +3608,12 @@ void main() {
of: find.byKey(const Key('timeline-toolbar')),
matching: find.byType(IconButton),
);
expect(toolbarButtons, findsNWidgets(6));
expect(toolbarButtons, findsNWidgets(7));
final fitButton = find.byKey(const ValueKey('timeline-fit'));
expect(
tester.widget<IconButton>(fitButton).tooltip,
localized.fitTimeline,
);
final toolbarBounds = tester.getRect(
find.byKey(const Key('timeline-toolbar')),
);
@@ -3620,7 +3625,9 @@ void main() {
final bounds = tester.getRect(
find.byElementPredicate((e) => e == button),
);
buttonBounds.add(bounds);
if (button.widget.key != const ValueKey('timeline-fit')) {
buttonBounds.add(bounds);
}
expect(
bounds.size,
const Size(AppControlSize.headerButton, AppControlSize.headerButton),
@@ -3628,6 +3635,10 @@ void main() {
expect((button.widget as IconButton).iconSize, AppIconSize.header);
}
expect(buttonBounds.first.left - panelBounds.left, AppSpacing.gap);
expect(
panelBounds.right - tester.getRect(fitButton).right,
AppSpacing.gap,
);
for (var i = 1; i < buttonBounds.length; i++) {
expect(
buttonBounds[i].left - buttonBounds[i - 1].right,