feat: исключение дублирования в текстовых публикациях и вкладки зеркал (v3.3.1)
Build and Release / Build Windows x64 (push) Has been cancelled
Build and Release / Build Windows x64 (push) Has been cancelled
This commit is contained in:
@@ -55,15 +55,21 @@ void main() {
|
||||
expect(find.text('Google Drive'), findsOneWidget);
|
||||
expect(find.text('Google Drive Stream'), findsOneWidget);
|
||||
|
||||
// Verify commentary
|
||||
expect(find.text('Описание от автора'), findsOneWidget);
|
||||
expect(find.text('Special Patreon bonus animation for all patrons.'), findsOneWidget);
|
||||
|
||||
// Verify play button triggers callback
|
||||
// Verify play button triggers callback on mirrors tab
|
||||
final playBtn = find.text('Смотреть');
|
||||
expect(playBtn, findsOneWidget);
|
||||
await tester.tap(playBtn);
|
||||
expect(playedStream, 'https://drive.google.com/uc?export=download&id=123');
|
||||
|
||||
// Switch to description tab and verify commentary
|
||||
final descTab = find.text('Описание');
|
||||
expect(descTab, findsOneWidget);
|
||||
await tester.tap(descTab);
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
// Verify commentary
|
||||
expect(find.text('Описание от автора'), findsOneWidget);
|
||||
expect(find.text('Special Patreon bonus animation for all patrons.'), findsOneWidget);
|
||||
});
|
||||
|
||||
testWidgets('CloudMirrorsCard renders nothing if no links and no commentary', (tester) async {
|
||||
|
||||
Reference in New Issue
Block a user