diff --git a/assets/src/utils/functions.js b/assets/src/utils/functions.js --- a/assets/src/utils/functions.js +++ b/assets/src/utils/functions.js @@ -139,7 +139,7 @@ // extract {owner}/{repo} const ownerRepo = originUrlLower.replace(ghUrlRegex, ''); // fetch canonical URL from github Web API - const url = getCanonicalGithubOriginURL(ownerRepo); + const url = await getCanonicalGithubOriginURL(ownerRepo); if (url) { return url; } @@ -150,7 +150,7 @@ if (parsedUrl) { const ownerRepo = `${parsedUrl.groups.owner}/${parsedUrl.groups.repo}`; // fetch canonical URL from github Web API - const url = getCanonicalGithubOriginURL(ownerRepo); + const url = await getCanonicalGithubOriginURL(ownerRepo); if (url) { return url; } diff --git a/cypress/e2e/origin-save.cy.js b/cypress/e2e/origin-save.cy.js --- a/cypress/e2e/origin-save.cy.js +++ b/cypress/e2e/origin-save.cy.js @@ -562,9 +562,9 @@ }); it('should be allowed to submit \'archives\' save request when connected as ambassador', function() { - const originUrl = 'https://ftp.gnu.org/pub/pub/gnu/3dldf'; - const artifactUrl = 'https://ftp.gnu.org/pub/pub/gnu/3dldf/3DLDF-1.1.4.tar.gz'; - const artifactVersion = '1.1.4'; + const originUrl = 'https://github.com/chromium/chromium/tags'; + const artifactUrl = 'https://github.com/chromium/chromium/archive/refs/tags/104.0.5106.1.tar.gz'; + const artifactVersion = '104.0.5106.1'; stubSaveRequest({ requestUrl: this.Urls.api_1_save_origin('archives', originUrl), saveRequestStatus: 'accepted',