Skip to content

Commit

Permalink
fix: ExitApp should have appId as an object (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdivya153 authored Feb 4, 2025
1 parent 33ad5b1 commit f658c25
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cypress/support/step_definitions/testSetup.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,19 +162,21 @@ function destroyAppInstance(testType) {
testType
);
const appId = UTILS.getEnvVariable(CONSTANTS.THIRD_PARTY_APP_ID);
const params = {};
params.appId = appId;

// If the current test type is present inside the closeAppTestTypes array then close the app.
if (isCloseTestType) {
fireLog.info(
'Closing app since either Test Type is specified in closeAppTestTypes or is different from previous Test Type.'
);
cy.exitAppSession('closeApp', appId);
cy.exitAppSession('closeApp', params);
}

// If the current test type is present inside the unloadAppTestTypes array then unload the app.
if (isUnloadTestType) {
fireLog.info('Unloading app since Test Type is specified in unloadAppTestTypes.');
cy.exitAppSession('unloadApp', appId);
cy.exitAppSession('unloadApp', params);
}
}

Expand Down

0 comments on commit f658c25

Please sign in to comment.