Skip to content

Commit

Permalink
fix(INJI-536): refactor the Check Status FAILED
Browse files Browse the repository at this point in the history
Signed-off-by: Sri Kanth Kola <[email protected]>
  • Loading branch information
srikanth716 committed Nov 23, 2023
1 parent e268330 commit 488d364
Show file tree
Hide file tree
Showing 43 changed files with 155 additions and 416 deletions.
13 changes: 11 additions & 2 deletions injitest/target/classes/TestData.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
{
"externalemail": "[email protected]",
"passcode": "111111",
"otp":"111111",
"invalidOtp":"666666",
"newuin":"7059849273",
"revokevid":"6205860394830280",
"newaid":"10001100400008120231110021527",
"invalidpasscode": "123456",
"invaliduin": "1234567891",
"fullName": "TEST_FULLNAMEeng",
"idType": "National Card",
"gender": "MLEeng",
Expand All @@ -12,8 +18,11 @@
"aid": "10001100660000620230714065538",
"setExcludedGroups":"AVT,PVT",
"androidAppPath":"/Users/kamalsingh/TestAutomation/Inji/inji/injitest/apps/android/Inji.apk",
"androidDevice": "nightwatch-android-11",
"androidDevice": "emulator-5554",
"uin": "6920386351",
"uin2": "5740943928",
"uin2FullName": "fbgfhgfhghd"
"uin2FullName": "fbgfhgfhghd",
"newEnv":"https://api.qa-trinity.mosip.net",
"injiEnv":"https://api.qa-inji.mosip.net",
"invalidenv":"https://api.dev3.mosip"
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified injitest/target/classes/io/mosip/test/mob/inji/pages/BasePage.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified injitest/target/classes/io/mosip/test/mob/inji/pages/HelpPage.class
Binary file not shown.
Binary file not shown.
Binary file modified injitest/target/classes/io/mosip/test/mob/inji/pages/HomePage.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,9 @@ export const ExistingMosipVCItemMachine =
DOWNLOAD_READY: {
target: 'downloadingCredential',
},
FAILED: [
{
actions: ['incrementDownloadCounter'],
target: 'verifyingDownloadLimitExpiry',
},
],
FAILED: {
actions: 'sendDownloadLimitExpire',
},
},
},
downloadingCredential: {
Expand Down Expand Up @@ -1090,14 +1087,6 @@ export const ExistingMosipVCItemMachine =
Number((event.data as DownloadProps).downloadInterval),
}),

storeTag: send(
context => {
const {serviceRefs, ...data} = context;
return StoreEvents.SET(context.vcMetadata.getVcKey(), data);
},
{to: context => context.serviceRefs.store},
),

setCredential: model.assign((context, event) => {
switch (event.type) {
case 'STORE_RESPONSE':
Expand Down Expand Up @@ -1395,10 +1384,12 @@ export const ExistingMosipVCItemMachine =
case 'FAILED':
default:
callback(model.events.FAILED());
clearInterval(pollInterval);
break;
}
} catch (error) {
callback(model.events.FAILED());
clearInterval(pollInterval);
}
}
});
Expand Down
Loading

0 comments on commit 488d364

Please sign in to comment.