From 5c5bc87bf620a88b3bf8fe664f009b8605673fac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B3nio=20Regadas?= Date: Tue, 3 Sep 2024 09:18:37 +0100 Subject: [PATCH] chore: urls update for MMI support page (#26839) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## **Description** Updates MMI support links to the new page. ## **Related issues** Fixes: ## **Manual testing steps** 1. Go to this page... 2. 3. ## **Screenshots/Recordings** ### **Before** ### **After** ## **Pre-merge author checklist** - [ ] I've followed [MetaMask Contributor Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Extension Coding Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md). - [ ] I've completed the PR template to the best of my ability - [ ] I’ve included tests if applicable - [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [ ] I’ve applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. ## **Pre-merge reviewer checklist** - [ ] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed). - [ ] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots. --- builds.yml | 4 +-- .../playwright/mmi/specs/navigation.spec.ts | 27 ++----------------- 2 files changed, 4 insertions(+), 27 deletions(-) diff --git a/builds.yml b/builds.yml index ff12b626a44f..836970631315 100644 --- a/builds.yml +++ b/builds.yml @@ -92,8 +92,8 @@ buildTypes: - REQUIRE_SNAPS_ALLOWLIST: true - IFRAME_EXECUTION_ENVIRONMENT_URL: https://execution.metamask.io/iframe/6.6.2/index.html - MMI_CONFIGURATION_SERVICE_URL: https://configuration.metamask-institutional.io/v2/configuration/default - - SUPPORT_LINK: https://mmi-support.metamask.io/hc/en-us - - SUPPORT_REQUEST_LINK: https://mmi-support.metamask.io/hc/en-us/requests/new + - SUPPORT_LINK: https://support.metamask-institutional.io + - SUPPORT_REQUEST_LINK: https://support.metamask-institutional.io - SENTRY_DSN: SENTRY_MMI_DSN # For some reason, MMI uses this type of versioning # Leaving it on for backwards compatibility diff --git a/test/e2e/playwright/mmi/specs/navigation.spec.ts b/test/e2e/playwright/mmi/specs/navigation.spec.ts index 7aca00aba1c4..92fbde612b4d 100644 --- a/test/e2e/playwright/mmi/specs/navigation.spec.ts +++ b/test/e2e/playwright/mmi/specs/navigation.spec.ts @@ -9,11 +9,8 @@ import { import { MMIMainMenuPage } from '../pageObjects/mmi-mainMenu-page'; import { MMIMainPage } from '../pageObjects/mmi-main-page'; -const portfolio = `${process.env.MMI_E2E_MMI_DASHBOARD_URL}`; -const stake = `${process.env.MMI_E2E_MMI_DASHBOARD_URL}`; -const support = 'https://mmi-support.metamask.io/hc/en-us'; -const supportContactUs = - 'https://mmi-support.metamask.io/hc/en-us/requests/new'; +const support = 'https://support.metamask-institutional.io'; +const supportContactUs = 'https://support.metamask-institutional.io'; const mmiHomePage = 'https://metamask.io/institutions/'; const privacyAndNotice = 'https://consensys.io/privacy-notice'; const openSeaTermsOfUse = 'https://opensea.io/securityproviderterms'; @@ -56,17 +53,6 @@ test.describe('MMI Navigation', () => { await getPageAndCloseRepeated(context, 'home.html'), ); - // Check main page links - await checkLinkURL( - context, - mainPage.page, - 'Portfolio', - portfolio, - 'button', - ); - - await checkLinkURL(context, mainPage.page, 'Stake', stake, 'button'); - await checkLinkURL( context, mainPage.page, @@ -100,15 +86,6 @@ test.describe('MMI Navigation', () => { 'button', ); - await mainMenuPage.openMenu(); - await checkLinkURL( - context, - mainMenuPage.page, - 'Portfolio Dashboard', - portfolio, - 'button', - ); - // Check settings links await mainMenuPage.selectMenuOption('settings');