test(studyset): every empty material tab is opened, as each has one

Since paths moved out of the Study plan, every empty section the test
looks at is a tab of Material, so the check for one without a tab is
always true, which the analyser refuses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
Tizian 「ティツィアーン」 2026-10-14 08:04:41 +02:00
commit f8336ada90
Signed by: raisondetredev
GPG key ID: 07F6FCF405488B64

View file

@ -690,10 +690,8 @@ void main() {
), ),
]) { ]) {
await openPart(tester, part); await openPart(tester, part);
if (tab != null) {
await tester.tap(find.widgetWithText(Tab, tab)); await tester.tap(find.widgetWithText(Tab, tab));
await tester.pumpAndSettle(); await tester.pumpAndSettle();
}
// The box that says so, around its icon, title and hint. // The box that says so, around its icon, title and hint.
final box = find.ancestor( final box = find.ancestor(
of: find.text(title), of: find.text(title),