diff --git a/tests/e2e/env/utils/get-plugin-zip.js b/tests/e2e/env/utils/get-plugin-zip.js index 856478719db..3c99a69304f 100644 --- a/tests/e2e/env/utils/get-plugin-zip.js +++ b/tests/e2e/env/utils/get-plugin-zip.js @@ -64,11 +64,11 @@ const getLatestReleaseZipUrl = async ( owner, repository, getPrerelease = false, // Loop until we find the first pre-release, then return it. body.forEach(release => { if ( release.prerelease ) { - resolve( release.zipball_url ); + resolve( release.assets[0].browser_download_url ); } }); } else { - resolve( body.zipball_url ); + resolve( body.assets[0].browser_download_url ); } } }) diff --git a/tests/e2e/specs/smoke-tests/update-woocommerce.js b/tests/e2e/specs/smoke-tests/update-woocommerce.js index 1aef2383a4e..2e0a4a4c94f 100644 --- a/tests/e2e/specs/smoke-tests/update-woocommerce.js +++ b/tests/e2e/specs/smoke-tests/update-woocommerce.js @@ -24,7 +24,7 @@ utils.describeIf( UPDATE_WC )( 'WooCommerce plugin can be uploaded and activated beforeAll( async () => { if ( TEST_RELEASE ) { - zipUrl = await getLatestReleaseZipUrl('woocommerce', 'woocommerce'); + zipUrl = await getLatestReleaseZipUrl( 'woocommerce', 'woocommerce' ); } else { zipUrl = 'https://github.com/woocommerce/woocommerce/releases/download/nightly/woocommerce-trunk-nightly.zip'; }