Skip to content

Commit 5ea9821

Browse files
authored
chore: Switch to SAP internal artifactory for continuum (#20104)
1 parent e88b535 commit 5ea9821

File tree

3 files changed

+30
-44
lines changed

3 files changed

+30
-44
lines changed

Diff for: projects/storefrontapp-e2e-cypress/.npmrc

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1-
@continuum:registry=https://npm.levelaccess.net/continuum/
2-
//npm.levelaccess.net/continuum/:_authToken=${CONTINUUM_REGISTRY_TOKEN}
1+
# TODO: Temporary solution to use continuum from SAP Artifactory
2+
# until level access updates the continuum package to the latest version with axios >1.8.2(see https://github.com/SAP/spartacus/security/dependabot/233)
3+
# @continuum:registry=https://npm.levelaccess.net/continuum/
4+
# //npm.levelaccess.net/continuum/:_authToken=${CONTINUUM_REGISTRY_TOKEN}
5+
@continuum:registry=https://common.repositories.cloud.sap/artifactory/api/npm/acservices/
6+
//common.repositories.cloud.sap/artifactory/api/npm/acservices/:_auth=${COMMON_SAP_ARTIFACTORY_TOKEN}

Diff for: projects/storefrontapp-e2e-cypress/cypress/support/continuum.commands.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ try {
1717
ModuleManagementStrategy = ContinuumImport.ModuleManagementStrategy;
1818
} catch (e) {
1919
console.warn(
20-
'Access continuum is not available. Please configure CONTINUUM_REGISTRY_TOKEN env variable, otherwise conitnuum tests will be skipped.'
20+
'Access continuum is not available. Please configure CONTINUUM_REGISTRY_TOKEN env variable, otherwise continuum tests will be skipped.'
2121
);
2222
}
2323

@@ -33,6 +33,9 @@ const LEVEL_ACCESS_API = 'https://sap.levelaccess.net/api/cont/organization';
3333
const withContinuum = <T extends (...args: any[]) => any>(fn: T): T => {
3434
return ((...args: Parameters<T>): ReturnType<T> | void => {
3535
if (!isContinuumAvailable()) {
36+
cy.log(
37+
'⚠️ Warning: Access Continuum is not available. Skipping accessibility tests.'
38+
);
3639
return;
3740
}
3841
return fn(...args);

Diff for: projects/storefrontapp-e2e-cypress/package-lock.json

+20-41
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)