Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Šimon Macek committed Dec 11, 2024
1 parent 34ab991 commit fc36bd6
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions test/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,7 @@ Cypress.Commands.add(
i18n,
);
const urlApiThisCampaignLocalized = `${apiBaseUrl}${urlApiThisCampaign}`;

cy.fixture('apiGetThisCampaign').then((thisCampaignResponse) => {
cy.intercept('GET', urlApiThisCampaignLocalized, {
statusCode: responseStatusCode
Expand Down Expand Up @@ -1060,12 +1061,12 @@ Cypress.Commands.add('waitForTeamsGetApi', () => {
});

/*
* Intercept subsidiary POST API call
* Provides `@postSubsidiary` alias
* @param {object} config - App global config
* @param {object} i18n - i18n instance
* @param {number} organizationId - Organization ID
*/
* Intercept subsidiary POST API call
* Provides `@postSubsidiary` alias
* @param {object} config - App global config
* @param {object} i18n - i18n instance
* @param {number} organizationId - Organization ID
*/
Cypress.Commands.add(
'interceptSubsidiaryPostApi',
(config, i18n, organizationId) => {
Expand All @@ -1084,7 +1085,7 @@ Cypress.Commands.add(
body: subsidiaryResponse,
}).as('postSubsidiary');
});
}
},
);

/*
Expand Down

0 comments on commit fc36bd6

Please sign in to comment.