TF-3894 Fix blank email content when opening email

This commit is contained in:
dab246
2025-09-03 10:37:01 +07:00
committed by Dat H. Pham
parent 949c1a698c
commit 5a64ff7e8f
41 changed files with 309 additions and 169 deletions
@@ -196,6 +196,7 @@ void main() {
{},
{accountId: account},
{}, UserName('value'), Uri(), Uri(), Uri(), Uri(), State('value'));
String ownEmailAddress = 'user@example.com';
test(
'should call deletePublicAssetsInteractor.execute() '
@@ -213,7 +214,11 @@ void main() {
{},
{accountId: account},
{}, UserName('value'), Uri(), Uri(), Uri(), Uri(), State('value'));
identityCreatorController.arguments = IdentityCreatorArguments(accountId, session);
identityCreatorController.arguments = IdentityCreatorArguments(
accountId,
session,
ownEmailAddress,
);
// act
identityCreatorController.onReady();
@@ -242,7 +247,11 @@ void main() {
'and user has not picked any image',
() {
// arrange
identityCreatorController.arguments = IdentityCreatorArguments(accountId, session);
identityCreatorController.arguments = IdentityCreatorArguments(
accountId,
session,
ownEmailAddress,
);
// act
identityCreatorController.onReady();
@@ -272,7 +281,11 @@ void main() {
PlatformInfo.isTestingForWeb = true;
const htmlContent = '<p>test</p>';
const identityName = 'test';
identityCreatorController.arguments = IdentityCreatorArguments(accountId, session);
identityCreatorController.arguments = IdentityCreatorArguments(
accountId,
session,
ownEmailAddress,
);
when(mockVerifyNameInteractor.execute(any, any)).thenAnswer((_) => Right(VerifyNameViewState()));
// act
@@ -322,7 +335,11 @@ void main() {
PlatformInfo.isTestingForWeb = true;
const htmlContent = '<p>test</p>';
const identityName = 'test';
identityCreatorController.arguments = IdentityCreatorArguments(accountId, session);
identityCreatorController.arguments = IdentityCreatorArguments(
accountId,
session,
ownEmailAddress,
);
when(mockVerifyNameInteractor.execute(any, any)).thenAnswer((_) => Right(VerifyNameViewState()));
// act