Skip to content

Commit

Permalink
Merge pull request #156 from rdkcentral/FIRECERT-2083
Browse files Browse the repository at this point in the history
Unload App Changes
  • Loading branch information
Swati-Chand authored Jul 23, 2024
2 parents c0140ae + 576924a commit f4f1d05
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions cypress/support/constants/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ module.exports = {
FETCH_EVENT_RESPONSE: 'fcs.fetchEventResponse',
PERFORMANCE_THRESHOLD_VALIDATOR: 'performance.fetchPerformanceThreshold',
CREATE_MARKER: 'performance.createMarker',
UNLOADAPP: 'fcs.unloadApp',
},
PERFORMANCE_METRICS: 'performanceMetrics',
RESPONSE: 'Response: ',
Expand Down
9 changes: 8 additions & 1 deletion cypress/support/step_definitions/testSetup.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,14 @@ function destroyAppInstance(testType) {
try {
cy.sendMessagetoApp(requestTopic, responseTopic, intentMessage).then((response) => {
if (response != CONSTANTS.NO_RESPONSE) {
fireLog.assert(false, 'App failed to unload, Reason: ' + closeReason);
fireLog.log(false, 'App failed to unload, Reason: ' + closeReason);
const requestMap = {
method: CONSTANTS.REQUEST_OVERRIDE_CALLS.UNLOADAPP,
};
cy.sendMessagetoPlatforms(requestMap).then(() => {
// Config modules needs override for validation of app unload
cy.log('Platforms unload app execution complete');
});
} else {
cy.log('App unloaded', 'destroyAppInstance');
}
Expand Down

0 comments on commit f4f1d05

Please sign in to comment.