TF-4141 Add widget tests for displaying of virtual folder: action required
This commit is contained in:
Vendored
+50
@@ -12,6 +12,8 @@ import 'package:jmap_dart_client/jmap/core/sort/collation_identifier.dart';
|
||||
import 'package:jmap_dart_client/jmap/core/state.dart';
|
||||
import 'package:jmap_dart_client/jmap/core/unsigned_int.dart';
|
||||
import 'package:jmap_dart_client/jmap/core/user_name.dart';
|
||||
import 'package:scribe/scribe/ai/presentation/model/ai_capability.dart';
|
||||
import 'package:scribe/scribe/ai/presentation/utils/ai_scribe_constants.dart';
|
||||
|
||||
import 'account_fixtures.dart';
|
||||
|
||||
@@ -202,4 +204,52 @@ class SessionFixtures {
|
||||
'http://domain.com/eventSource?types={types}&closeAfter={closeafter}&ping={ping}'),
|
||||
State('2c9f1b12-b35a-43e6-9af2-0106fb53a943'),
|
||||
);
|
||||
|
||||
static final aliceSessionWithAICapability = Session(
|
||||
{
|
||||
AiScribeConstants.aiCapability: AICapability(),
|
||||
},
|
||||
{
|
||||
AccountFixtures.aliceAccountId: Account(
|
||||
AccountName('alice@domain.tld'),
|
||||
true,
|
||||
false,
|
||||
{
|
||||
AiScribeConstants.aiCapability: AICapability(),
|
||||
},
|
||||
)
|
||||
},
|
||||
{
|
||||
AiScribeConstants.aiCapability: AccountFixtures.aliceAccountId,
|
||||
},
|
||||
UserName('alice@domain.tld'),
|
||||
Uri.parse('http://domain.com/jmap'),
|
||||
Uri.parse(
|
||||
'http://domain.com/download/{accountId}/{blobId}/?type={type}&name={name}'),
|
||||
Uri.parse('http://domain.com/upload/{accountId}'),
|
||||
Uri.parse(
|
||||
'http://domain.com/eventSource?types={types}&closeAfter={closeafter}&ping={ping}'),
|
||||
State('2c9f1b12-b35a-43e6-9af2-0106fb53a943'),
|
||||
);
|
||||
|
||||
static final aliceSessionWithoutAICapability = Session(
|
||||
{},
|
||||
{
|
||||
AccountFixtures.aliceAccountId: Account(
|
||||
AccountName('alice@domain.tld'),
|
||||
true,
|
||||
false,
|
||||
{},
|
||||
)
|
||||
},
|
||||
{},
|
||||
UserName('alice@domain.tld'),
|
||||
Uri.parse('http://domain.com/jmap'),
|
||||
Uri.parse(
|
||||
'http://domain.com/download/{accountId}/{blobId}/?type={type}&name={name}'),
|
||||
Uri.parse('http://domain.com/upload/{accountId}'),
|
||||
Uri.parse(
|
||||
'http://domain.com/eventSource?types={types}&closeAfter={closeafter}&ping={ping}'),
|
||||
State('2c9f1b12-b35a-43e6-9af2-0106fb53a943'),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user