diff --git a/.github/workflows/cypress-matrix.yml b/.github/workflows/cypress-matrix.yml index 8f8c3d62..eb9c386c 100644 --- a/.github/workflows/cypress-matrix.yml +++ b/.github/workflows/cypress-matrix.yml @@ -110,7 +110,11 @@ jobs: echo '{"wpVersion": "${{ matrix.wpVersion }}","phpVersion": "${{ matrix.phpVersion }}"}' > cypress.env.json - name: Install WordPress - run: npx wp-env start --debug + uses: nick-fields/retry@v3 + with: + timeout_minutes: 4 + max_attempts: 3 + command: npx wp-env start --debug - name: Run Cypress Tests if: ${{ github.repository != 'newfold-labs/wp-plugin-hostgator' || github.actor == 'dependabot[bot]' }} diff --git a/.github/workflows/cypress-tests.yml b/.github/workflows/cypress-tests.yml index ea117088..d5c5e190 100644 --- a/.github/workflows/cypress-tests.yml +++ b/.github/workflows/cypress-tests.yml @@ -109,7 +109,11 @@ jobs: run: echo '{"config":{"WP_DEBUG_DISPLAY":false},"plugins":["${{ steps.workflow.outputs.DIST }}/${{ steps.workflow.outputs.PACKAGE }}"]}' > .wp-env.override.json - name: Install WordPress - run: npx wp-env start --debug + uses: nick-fields/retry@v3 + with: + timeout_minutes: 4 + max_attempts: 3 + command: npx wp-env start --debug - name: Run Cypress Tests if: ${{ github.repository != 'newfold-labs/wp-plugin-hostgator' || github.actor == 'dependabot[bot]' }} diff --git a/composer.json b/composer.json index 281739b9..fc28e1d9 100644 --- a/composer.json +++ b/composer.json @@ -74,20 +74,20 @@ "doctrine/inflector": "1.4.4 as 1.3.1", "newfold-labs/wp-module-activation": "^1.0.5", "newfold-labs/wp-module-atomic": "^1.3", - "newfold-labs/wp-module-coming-soon": "^1.3.1", + "newfold-labs/wp-module-coming-soon": "^1.3.2", "newfold-labs/wp-module-context": "^1.0.1", - "newfold-labs/wp-module-data": "^2.6.7", + "newfold-labs/wp-module-data": "^2.6.8", "newfold-labs/wp-module-deactivation": "^1.2.3", "newfold-labs/wp-module-ecommerce": "^1.4.5", "newfold-labs/wp-module-features": "^1.4.2", "newfold-labs/wp-module-global-ctb": "^1.0.13", - "newfold-labs/wp-module-help-center": "^2.2.1", + "newfold-labs/wp-module-help-center": "^2.2.2", "newfold-labs/wp-module-loader": "^1.0.10", "newfold-labs/wp-module-marketplace": "^2.4.0", "newfold-labs/wp-module-migration": "^1.0.12", "newfold-labs/wp-module-notifications": "^1.6.6", "newfold-labs/wp-module-onboarding": "^2.5.5", - "newfold-labs/wp-module-patterns": "^2.8.0", + "newfold-labs/wp-module-patterns": "^2.8.1", "newfold-labs/wp-module-performance": "2.0.1 as 1.9.9", "newfold-labs/wp-module-runtime": "^1.0.12", "newfold-labs/wp-module-secure-passwords": "^1.1.1", diff --git a/cypress.config.js b/cypress.config.js index 78c528af..4b801e95 100644 --- a/cypress.config.js +++ b/cypress.config.js @@ -31,8 +31,6 @@ module.exports = defineConfig({ // You may want to clean this up later by importing these. setupNodeEvents(on, config) { - const semver = require('semver'); - // Ensure that the base URL is always properly set. if (config.env && config.env.baseUrl) { config.baseUrl = config.env.baseUrl; @@ -56,17 +54,27 @@ module.exports = defineConfig({ } } - // Exclude tests for WordPress lower than 6.5 (6.4 or 6.3) or PHP lower than 7.4 (7.1, 7.2 and 7.3) - if ( - semver.satisfies( config.env.wpSemverVersion, '<6.5.0' ) || - semver.satisfies( config.env.phpSemverVersion, '<7.4.0' ) - ) { + // Tests require Wondor Theme, exclude if not supported due to WP or PHP versions + if ( ! supportsWonderTheme( config.env ) ) { + config.excludeSpecPattern = config.excludeSpecPattern.concat( [ + 'vendor/newfold-labs/wp-module-onboarding/tests/cypress/integration/**', // Onboarding requires Wonder Theme + 'vendor/newfold-labs/wp-module-ecommerce/tests/cypress/integration/Home/ecommerce-next-steps.cy.js', // Requires Onboarding + ] ); + } + + // Tests requires Woo, so exclude if not supported due to WP or PHP versions + if ( ! supportsWoo( config.env ) ) { config.excludeSpecPattern = config.excludeSpecPattern.concat( [ 'vendor/newfold-labs/wp-module-ecommerce/tests/cypress/integration/Site-Capabilities/**', 'vendor/newfold-labs/wp-module-ecommerce/tests/cypress/integration/Home/homePageWithWoo.cy.js', - 'vendor/newfold-labs/wp-module-ecommerce/tests/cypress/integration/Home/ecommerce-next-steps.cy.js', // Skip this since Onboarding does not support this version - 'vendor/newfold-labs/wp-module-onboarding/tests/cypress/integration/**', // Onboarding requires WP 6.5 or greater, as it uses the Wonder Theme which has the same requirement - 'vendor/newfold-labs/wp-module-coming-soon/tests/cypress/integration/coming-soon-woo.cy.js', // woo is required and is not supported in older WP or PHP + 'vendor/newfold-labs/wp-module-coming-soon/tests/cypress/integration/coming-soon-woo.cy.js', + ] ); + } + + // Test requires Jetpack, so exclude if not supported due to WP or PHP versions + if ( ! supportsJetpack( config.env ) ) { + config.excludeSpecPattern = config.excludeSpecPattern.concat( [ + 'vendor/newfold-labs/wp-module-solutions/tests/cypress/integration/wp-plugins-installation-check.cy.js', ] ); } @@ -88,3 +96,37 @@ module.exports = defineConfig({ retries: 1, experimentalMemoryManagement: true, }) + +// Check against plugin support at https://wordpress.org/plugins/woocommerce/ +const supportsWoo = ( env ) => { + const semver = require( 'semver' ); + if ( + semver.satisfies( env.wpSemverVersion, '>=6.5.0' ) && + semver.satisfies( env.phpSemverVersion, '>=7.4.0' ) + ) { + return true; + } + return false; +}; +// Check against plugin support at https://wordpress.org/plugins/jetpack/ +const supportsJetpack = ( env ) => { + const semver = require( 'semver' ); + if ( + semver.satisfies( env.wpSemverVersion, '>=6.6.0' ) && + semver.satisfies( env.phpSemverVersion, '>=7.2.0' ) + ) { + return true; + } + return false; +}; +// Check against theme support at https://github.com/newfold-labs/yith-wonder/blob/master/style.css +const supportsWonderTheme = ( env ) => { + const semver = require( 'semver' ); + if ( + semver.satisfies( env.wpSemverVersion, '>=6.5.0' ) && + semver.satisfies( env.phpSemverVersion, '>=7.0.0' ) + ) { + return true; + } + return false; +}; diff --git a/package-lock.json b/package-lock.json index d94b0f4a..7fe9a710 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,12 +13,12 @@ "@newfold-labs/wp-module-ecommerce": "^1.4.5", "@newfold-labs/wp-module-runtime": "^1.0.12", "@newfold/ui-component-library": "^1.1.0", - "@reduxjs/toolkit": "^2.3.0", - "@wordpress/compose": "^7.12.0", + "@reduxjs/toolkit": "^2.5.0", + "@wordpress/compose": "^7.14.0", "@wordpress/dom-ready": "^4.13.0", "@wordpress/element": "^6.13.0", - "@wordpress/i18n": "^5.12.0", - "@wordpress/icons": "^10.12.0", + "@wordpress/i18n": "^5.14.0", + "@wordpress/icons": "^10.14.0", "ajv": "^8.17.1", "classnames": "^2.5.1", "jquery": "^3.7.1", @@ -32,7 +32,7 @@ "@automattic/babel-plugin-preserve-i18n": "^1.0.0", "@tailwindcss/forms": "^0.5.7", "@testing-library/cypress": "^10.0.2", - "@wordpress/env": "^10.12.0", + "@wordpress/env": "^10.14.0", "@wordpress/scripts": "^30.6.0", "cypress": "^13.16.0", "cypress-axe": "1.5.0", @@ -3777,9 +3777,10 @@ } }, "node_modules/@reduxjs/toolkit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@reduxjs/toolkit/-/toolkit-2.3.0.tgz", - "integrity": "sha512-WC7Yd6cNGfHx8zf+iu+Q1UPTfEcXhQ+ATi7CV1hlrSAaQBdlPzg7Ww/wJHNQem7qG9rxmWoFCDCPubSvFObGzA==", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@reduxjs/toolkit/-/toolkit-2.5.0.tgz", + "integrity": "sha512-awNe2oTodsZ6LmRqmkFhtb/KH03hUhxOamEQy411m3Njj3BbFvoBovxo4Q1cBWnV1ErprVj9MlF0UPXkng0eyg==", + "license": "MIT", "dependencies": { "immer": "^10.0.3", "redux": "^5.0.1", @@ -3787,7 +3788,7 @@ "reselect": "^5.1.0" }, "peerDependencies": { - "react": "^16.9.0 || ^17.0.0 || ^18", + "react": "^16.9.0 || ^17.0.0 || ^18 || ^19", "react-redux": "^7.2.1 || ^8.1.3 || ^9.0.0" }, "peerDependenciesMeta": { @@ -5680,9 +5681,10 @@ } }, "node_modules/@wordpress/compose": { - "version": "7.12.0", - "resolved": "https://registry.npmjs.org/@wordpress/compose/-/compose-7.12.0.tgz", - "integrity": "sha512-ffSN6eaghI33hSswGuYBq7T0/+Ffx9zM/qkgstYG5IjXuT7moP+GxagvzEkAfhZNJJo0Btk5PuIRMDcyCg5F8g==", + "version": "7.14.0", + "resolved": "https://registry.npmjs.org/@wordpress/compose/-/compose-7.14.0.tgz", + "integrity": "sha512-V8llRKmEWfrHWdZVnZFeyM5VAB40MyjVxm+bCwgBO65Tv8yeVi+ZipQ+Nk5abIeQWp3G0BDYybG1gmVwuCik2g==", + "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "7.25.7", "@types/mousetrap": "^1.6.8", @@ -6020,10 +6022,11 @@ } }, "node_modules/@wordpress/env": { - "version": "10.12.0", - "resolved": "https://registry.npmjs.org/@wordpress/env/-/env-10.12.0.tgz", - "integrity": "sha512-+tsdVfngQYcysxdVonXRSwuJjqoqTSv7wwrcThCYXR1OBCMQ/xT2Ywfvf9a/yItJs5uicO9Vx8B5aIuvXiGVqg==", + "version": "10.14.0", + "resolved": "https://registry.npmjs.org/@wordpress/env/-/env-10.14.0.tgz", + "integrity": "sha512-tDJyW6KaaEs9jz2XMTjY0RpGWdsjEfOCx5jeCMWtzkgrDY5N9iZr1BFjNzmFzY1BcXQshnFsrecsnYdyIfvsTA==", "dev": true, + "license": "GPL-2.0-or-later", "dependencies": { "chalk": "^4.0.0", "copy-dir": "^1.3.0", @@ -6033,7 +6036,7 @@ "inquirer": "^7.1.0", "js-yaml": "^3.13.1", "ora": "^4.0.2", - "rimraf": "^3.0.2", + "rimraf": "^5.0.10", "simple-git": "^3.5.0", "terminal-link": "^2.0.0", "yargs": "^17.3.0" @@ -6046,6 +6049,59 @@ "npm": ">=8.19.2" } }, + "node_modules/@wordpress/env/node_modules/glob": { + "version": "10.4.5", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", + "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", + "dev": true, + "license": "ISC", + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^3.1.2", + "minimatch": "^9.0.4", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^1.11.1" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@wordpress/env/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@wordpress/env/node_modules/rimraf": { + "version": "5.0.10", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.10.tgz", + "integrity": "sha512-l0OE8wL34P4nJH/H2ffoaniAokM2qSmrtXHmlpvYr5AVVX8msAyW0l8NVJFDxlSK4u3Uh/f41cQheDVdnYijwQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "glob": "^10.3.7" + }, + "bin": { + "rimraf": "dist/esm/bin.mjs" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/@wordpress/escape-html": { "version": "2.58.0", "resolved": "https://registry.npmjs.org/@wordpress/escape-html/-/escape-html-2.58.0.tgz", @@ -6183,9 +6239,10 @@ } }, "node_modules/@wordpress/i18n": { - "version": "5.12.0", - "resolved": "https://registry.npmjs.org/@wordpress/i18n/-/i18n-5.12.0.tgz", - "integrity": "sha512-+fAhdRqbTmzTUe46VVMfpFbDJCV1/prB7TccPvUCYf84kM5yLkMa2oqkEwniD7gB97HK1tH9bVD+jJDZL22l9A==", + "version": "5.14.0", + "resolved": "https://registry.npmjs.org/@wordpress/i18n/-/i18n-5.14.0.tgz", + "integrity": "sha512-2KHyQ+zoyQggokmoTqfVhl2DOM4E11pF/M1+5Q0kUDAHLIAVDhKCzHNPZreHjJld4Tm7hl2HUOutfPmCVudj7g==", + "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "7.25.7", "@wordpress/hooks": "*", @@ -6215,9 +6272,10 @@ } }, "node_modules/@wordpress/icons": { - "version": "10.12.0", - "resolved": "https://registry.npmjs.org/@wordpress/icons/-/icons-10.12.0.tgz", - "integrity": "sha512-d2D/XfDfrP1MPj4unfQ58DSgNas+PT/nuxw4R8RZpNL0XfarjZ/ff3VPJvsLhB+3ikXqnwJ4zFVs9pFewRkvHA==", + "version": "10.14.0", + "resolved": "https://registry.npmjs.org/@wordpress/icons/-/icons-10.14.0.tgz", + "integrity": "sha512-4S1AaBeqvTpsTC23y0+4WPiSyz7j+b7vJ4vQ4nqnPeBF7ZeC8J/UXWQnEuKY38n8TiutXljgagkEqGNC9pF2Mw==", + "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "7.25.7", "@wordpress/element": "*", diff --git a/package.json b/package.json index 34d17a68..301ce422 100644 --- a/package.json +++ b/package.json @@ -20,12 +20,12 @@ "@newfold-labs/wp-module-ecommerce": "^1.4.5", "@newfold-labs/wp-module-runtime": "^1.0.12", "@newfold/ui-component-library": "^1.1.0", - "@reduxjs/toolkit": "^2.3.0", - "@wordpress/compose": "^7.12.0", + "@reduxjs/toolkit": "^2.5.0", + "@wordpress/compose": "^7.14.0", "@wordpress/dom-ready": "^4.13.0", "@wordpress/element": "^6.13.0", - "@wordpress/i18n": "^5.12.0", - "@wordpress/icons": "^10.12.0", + "@wordpress/i18n": "^5.14.0", + "@wordpress/icons": "^10.14.0", "ajv": "^8.17.1", "classnames": "^2.5.1", "jquery": "^3.7.1", @@ -39,7 +39,7 @@ "@automattic/babel-plugin-preserve-i18n": "^1.0.0", "@tailwindcss/forms": "^0.5.7", "@testing-library/cypress": "^10.0.2", - "@wordpress/env": "^10.12.0", + "@wordpress/env": "^10.14.0", "@wordpress/scripts": "^30.6.0", "cypress": "^13.16.0", "cypress-axe": "1.5.0", @@ -71,6 +71,7 @@ "php-deps": "composer install --no-dev --optimize-autoloader", "postprepare": "npm run set-wp-version", "prebuild:cleanup": "rm -rf ./build ./wp-plugin-hostgator ./wp-plugin-hostgator.zip ./vendor", + "set-version-bump": "node ./set-version-bump.js && npm i && rm -rf ./build && npm run build && composer run i18n", "set-wp-version": "node ./set-latest-wp-version.js", "srb": "npm run simulate-runner-build", "simulate-runner-build": "npm run prebuild:cleanup && npm i && npm run php-deps && npm run build && npm run create:dist && npm run create:zip", diff --git a/set-version-bump.js b/set-version-bump.js new file mode 100644 index 00000000..9d2e8131 --- /dev/null +++ b/set-version-bump.js @@ -0,0 +1,32 @@ +const fs = require( 'fs' ); +const semver = require( 'semver' ); +const packagefile = './package.json'; +const pluginfile = './wp-plugin-hostgator.php'; + +if ( fs.existsSync( packagefile ) && fs.existsSync( pluginfile ) ) { + const packageData = require( packagefile ); + const currentVersion = packageData.version; + let type = process.argv[ 2 ]; + if ( ! [ 'major', 'minor', 'patch' ].includes( type ) ) { + type = 'patch'; + } + + const newVersion = semver.inc( packageData.version, type ); + packageData.version = newVersion; + fs.writeFileSync( packagefile, JSON.stringify( packageData, null, 4 ) ); + + fs.readFile( pluginfile, 'utf8', function ( err, data ) { + if ( err ) { + return console.log( err ); + } + const result = data.replaceAll( currentVersion, newVersion ); + + fs.writeFile( pluginfile, result, 'utf8', function ( err ) { + if ( err ) { + return console.log( err ); + } + } ); + } ); + + console.log( 'Version updated', currentVersion, '=>', newVersion ); +} diff --git a/src/app/data/region.js b/src/app/data/region.js index 551ca9a8..4e05357f 100644 --- a/src/app/data/region.js +++ b/src/app/data/region.js @@ -39,42 +39,42 @@ const region = { }, site_info_portal: { // site info portal link in plugin info section - big button with snappy icon. default: 'https://www.hostgator.com/my-account/login', - AR: 'https://billing.hostgator.ar', - BO: 'https://billing.hostgator.bo', + AR: 'https://cliente.hostgator.ar', + BO: 'https://cliente.hostgator.bo', BR: 'https://financeiro.hostgator.com.br', - CL: 'https://billing.hostgator.cl', - CO: 'https://billing.hostgator.co', - DO: 'https://billing.hostgator.do', - EC: 'https://billing.hostgator.net.ec', - MX: 'https://billing.hostgator.mx', - PE: 'https://billing.hostgator.pe', - UY: 'https://billing.hostgator.uy', + CL: 'https://cliente.hostgator.cl', + CO: 'https://cliente.hostgator.co', + DO: 'https://cliente.hostgator.do', + EC: 'https://cliente.hostgator.net.ec', + MX: 'https://cliente.hostgator.mx', + PE: 'https://cliente.hostgator.pe', + UY: 'https://cliente.hostgator.uy', }, home_manage_sites: { // Manage Sites button to manage sites within control panel. default: 'https://www.hostgator.com/my-account/hosting/details/sites', - AR: 'https://billing.hostgator.ar', - BO: 'https://billing.hostgator.bo', + AR: 'https://cliente.hostgator.ar/sitios-web', + BO: 'https://cliente.hostgator.bo/sitios-web', BR: 'https://cliente.hostgator.com.br', - CL: 'https://billing.hostgator.cl', - CO: 'https://billing.hostgator.co', - DO: 'https://billing.hostgator.do', - EC: 'https://billing.hostgator.net.ec', - MX: 'https://billing.hostgator.mx', - PE: 'https://billing.hostgator.pe', - UY: 'https://billing.hostgator.uy', + CL: 'https://cliente.hostgator.cl/sitios-web', + CO: 'https://cliente.hostgator.co/sitios-web', + DO: 'https://cliente.hostgator.do/sitios-web', + EC: 'https://cliente.hostgator.net.ec/sitios-web', + MX: 'https://cliente.hostgator.mx/sitios-web', + PE: 'https://cliente.hostgator.pe/sitios-web', + UY: 'https://cliente.hostgator.uy/sitios-web', }, home_manage_email: { // Manage email button to manage email in control panel. default: 'https://www.hostgator.com/my-account/google-workspace/google-workspace-list', - AR: 'https://cliente.hostgator.ar/emails-list', - BO: 'https://cliente.hostgator.bo/emails-list', + AR: 'https://cliente.hostgator.ar/e-mails', + BO: 'https://cliente.hostgator.bo/e-mails', BR: 'https://cliente.hostgator.com.br/emails-list', CL: 'https://cliente.hostgator.cl/emails-list', CO: 'https://cliente.hostgator.co/emails-list', - DO: 'https://cliente.hostgator.do/emails-list', - EC: 'https://cliente.hostgator.net.ec/emails-list', - MX: 'https://cliente.hostgator.mx/emails-list', - PE: 'https://cliente.hostgator.pe/emails-list', - UY: 'https://cliente.hostgator.uy/emails-list', + DO: 'https://cliente.hostgator.do/e-mails', + EC: 'https://cliente.hostgator.net.ec/e-mails', + MX: 'https://cliente.hostgator.mx/e-mails', + PE: 'https://cliente.hostgator.pe/e-mails', + UY: 'https://cliente.hostgator.uy/e-mails', }, home_find_domain: { // Manage Domain button to manage domains in control panel. default: 'https://www.hostgator.com/my-account/domain-center/domain-list', @@ -104,16 +104,16 @@ const region = { }, help_chat: { // Support live chat link. default: 'https://helpchat.hostgator.com', - AR: 'https://cliente.hostgator.ar', - BO: 'https://cliente.hostgator.bo', - BR: 'https://suporte.hostgator.com.br', - CL: 'https://cliente.hostgator.cl', - CO: 'https://cliente.hostgator.co', - DO: 'https://cliente.hostgator.do', - EC: 'https://cliente.hostgator.net.ec', - MX: 'https://cliente.hostgator.mx', - PE: 'https://cliente.hostgator.pe', - UY: 'https://cliente.hostgator.uy', + AR: 'https://soporte.hostgator.mx/hc/es-419/articles/28439167280915-C%C3%B3mo-entrar-en-contacto-con-Soporte', + BO: 'https://soporte.hostgator.mx/hc/es-419/articles/28439167280915-C%C3%B3mo-entrar-en-contacto-con-Soporte', + BR: 'https://soporte.hostgator.mx/hc/es-419/articles/28439167280915-C%C3%B3mo-entrar-en-contacto-con-Soporte', + CL: 'https://soporte.hostgator.mx/hc/es-419/articles/28439167280915-C%C3%B3mo-entrar-en-contacto-con-Soporte', + CO: 'https://soporte.hostgator.mx/hc/es-419/articles/28439167280915-C%C3%B3mo-entrar-en-contacto-con-Soporte', + DO: 'https://soporte.hostgator.mx/hc/es-419/articles/28439167280915-C%C3%B3mo-entrar-en-contacto-con-Soporte', + EC: 'https://soporte.hostgator.mx/hc/es-419/articles/28439167280915-C%C3%B3mo-entrar-en-contacto-con-Soporte', + MX: 'https://soporte.hostgator.mx/hc/es-419/articles/28439167280915-C%C3%B3mo-entrar-en-contacto-con-Soporte', + PE: 'https://soporte.hostgator.mx/hc/es-419/articles/28439167280915-C%C3%B3mo-entrar-en-contacto-con-Soporte', + UY: 'https://soporte.hostgator.mx/hc/es-419/articles/28439167280915-C%C3%B3mo-entrar-en-contacto-con-Soporte', }, help_twitter: { // Region-specific Twitter/X url for support. A string 'false' value will remove this section if it is not applicable to the region. default: 'https://twitter.com/hgsupport', diff --git a/tests/cypress/integration/region.cy.js b/tests/cypress/integration/region.cy.js index df2f36c3..63ce2a05 100644 --- a/tests/cypress/integration/region.cy.js +++ b/tests/cypress/integration/region.cy.js @@ -62,7 +62,7 @@ describe('Regional Adjustments', { testIsolation: true }, () => { cy.get('.card-help-chat').should('exist').contains('.nfd-button', 'Chat ao Vivo'); cy.get('.card-help-chat .nfd-button').should('have.attr', 'href') .then(href => { - expect(href).to.contain('suporte.hostgator.com.br') + expect(href).to.contain('soporte.hostgator.mx') }); });