fix(app): pipeline row items on the right end flush with the row edge
This commit is contained in:
@@ -151,4 +151,21 @@ void main() {
|
||||
expect(updated.right, greaterThan(row.center.dx));
|
||||
expect(updated.top, greaterThan(what.top));
|
||||
});
|
||||
|
||||
testWidgets('right-hand row items end flush with the same edge', (
|
||||
tester,
|
||||
) async {
|
||||
final fixture = PipelineFixture();
|
||||
await pumpWide(tester, gatewayFor(fixture));
|
||||
final version = tester.getRect(find.textContaining('v2 · #1'));
|
||||
final updated = tester.getRect(find.text('updated 17 Oct 21:26'));
|
||||
expect(updated.right, moreOrLessEquals(version.right, epsilon: 1));
|
||||
final mini = find.byKey(const Key('pipeline-mini-1'));
|
||||
if (mini.evaluate().isNotEmpty) {
|
||||
expect(
|
||||
tester.getRect(mini).right,
|
||||
moreOrLessEquals(version.right, epsilon: 1),
|
||||
);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user