Verify transcript clears the header while scrolling
This commit is contained in:
@@ -77,6 +77,10 @@ void main() {
|
||||
Rect list() =>
|
||||
tester.getRect(find.byKey(const ValueKey('chat-thread-s')));
|
||||
Rect composer() => tester.getRect(find.byKey(const Key('chat-composer')));
|
||||
Rect header() =>
|
||||
tester.getRect(find.byKey(const Key('chat-thread-header')));
|
||||
// The transcript has its own viewport below the complete header.
|
||||
expect(list().top, greaterThanOrEqualTo(header().bottom));
|
||||
// Nothing renders behind the composer: the viewport stops at its top.
|
||||
expect(list().bottom, composer().top);
|
||||
expect(composer().bottom, lessThanOrEqualTo(800));
|
||||
@@ -109,6 +113,7 @@ void main() {
|
||||
expect(tester.getRect(last).top, greaterThan(rested));
|
||||
}
|
||||
expect(list().bottom, composer().top);
|
||||
expect(list().top, greaterThanOrEqualTo(header().bottom));
|
||||
expect(tester.takeException(), isNull);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user