From 6e1d5cb463d82e668d1a456ec0cdd553bf5b9957 Mon Sep 17 00:00:00 2001 From: CD Cabrera Date: Mon, 22 Mar 2021 10:52:23 -0400 Subject: [PATCH] fix(build): ent-3654 change app display name (#609) --- .env | 6 ++-- .../__snapshots__/helpers.test.js.snap | 18 +++++------ .../__snapshots__/authentication.test.js.snap | 12 ++++---- .../__snapshots__/messageView.test.js.snap | 6 ++-- .../__snapshots__/openshiftView.test.js.snap | 6 ++-- .../__snapshots__/optinView.test.js.snap | 30 +++++++++---------- .../__snapshots__/pageHeader.test.js.snap | 2 +- .../__snapshots__/productView.test.js.snap | 2 +- .../__snapshots__/rhelView.test.js.snap | 6 ++-- .../__snapshots__/table.test.js.snap | 16 +++++----- tests/__snapshots__/html.test.js.snap | 2 +- 11 files changed, 53 insertions(+), 53 deletions(-) diff --git a/.env b/.env index 5b8ffa991..6b8a2bf18 100644 --- a/.env +++ b/.env @@ -1,8 +1,8 @@ REACT_APP_UI_VERSION=$npm_package_version REACT_APP_UI_NAME=subscriptions -REACT_APP_UI_DISPLAY_NAME=Subscription Watch -REACT_APP_UI_DISPLAY_CONFIG_NAME=Subscription Watch -REACT_APP_UI_DISPLAY_START_NAME=Subscription Watch +REACT_APP_UI_DISPLAY_NAME=Subscriptions +REACT_APP_UI_DISPLAY_CONFIG_NAME=Subscriptions +REACT_APP_UI_DISPLAY_START_NAME=Subscriptions REACT_APP_UI_DEPLOY_PATH_PREFIX=${UI_DEPLOY_PATH_PREFIX} PUBLIC_URL=${UI_DEPLOY_PATH_PREFIX}/apps/subscriptions/ diff --git a/src/common/__tests__/__snapshots__/helpers.test.js.snap b/src/common/__tests__/__snapshots__/helpers.test.js.snap index fbd297679..00f3bc6d7 100644 --- a/src/common/__tests__/__snapshots__/helpers.test.js.snap +++ b/src/common/__tests__/__snapshots__/helpers.test.js.snap @@ -13,9 +13,9 @@ Object { "UI_DISABLED_TABLE_HOSTS": false, "UI_DISABLED_TABLE_SUBSCRIPTIONS": false, "UI_DISABLED_TOOLBAR": false, - "UI_DISPLAY_CONFIG_NAME": "Subscription Watch", - "UI_DISPLAY_NAME": "Subscription Watch", - "UI_DISPLAY_START_NAME": "Subscription Watch", + "UI_DISPLAY_CONFIG_NAME": "Subscriptions", + "UI_DISPLAY_NAME": "Subscriptions", + "UI_DISPLAY_START_NAME": "Subscriptions", "UI_LINK_CONTACT_US": "https://access.redhat.com/account-team", "UI_LINK_LEARN_MORE": "https://access.redhat.com/documentation/en-us/subscription_central/2020-10/html/getting_started_with_subscription_watch/con-how-does-subscriptionwatch-show-data_assembly-opening-subscriptionwatch-ctxt/", "UI_LINK_REPORT_ACCURACY_RECOMMENDATIONS": "https://access.redhat.com/solutions/subscription-watch-mismatch", @@ -51,9 +51,9 @@ Object { "UI_DISABLED_TABLE_HOSTS": false, "UI_DISABLED_TABLE_SUBSCRIPTIONS": false, "UI_DISABLED_TOOLBAR": false, - "UI_DISPLAY_CONFIG_NAME": "Subscription Watch", - "UI_DISPLAY_NAME": "Subscription Watch", - "UI_DISPLAY_START_NAME": "Subscription Watch", + "UI_DISPLAY_CONFIG_NAME": "Subscriptions", + "UI_DISPLAY_NAME": "Subscriptions", + "UI_DISPLAY_START_NAME": "Subscriptions", "UI_LINK_CONTACT_US": "https://access.redhat.com/account-team", "UI_LINK_LEARN_MORE": "https://access.redhat.com/documentation/en-us/subscription_central/2020-10/html/getting_started_with_subscription_watch/con-how-does-subscriptionwatch-show-data_assembly-opening-subscriptionwatch-ctxt/", "UI_LINK_REPORT_ACCURACY_RECOMMENDATIONS": "https://access.redhat.com/solutions/subscription-watch-mismatch", @@ -89,9 +89,9 @@ Object { "UI_DISABLED_TABLE_HOSTS": false, "UI_DISABLED_TABLE_SUBSCRIPTIONS": false, "UI_DISABLED_TOOLBAR": false, - "UI_DISPLAY_CONFIG_NAME": "Subscription Watch", - "UI_DISPLAY_NAME": "Subscription Watch", - "UI_DISPLAY_START_NAME": "Subscription Watch", + "UI_DISPLAY_CONFIG_NAME": "Subscriptions", + "UI_DISPLAY_NAME": "Subscriptions", + "UI_DISPLAY_START_NAME": "Subscriptions", "UI_LINK_CONTACT_US": "https://access.redhat.com/account-team", "UI_LINK_LEARN_MORE": "https://access.redhat.com/documentation/en-us/subscription_central/2020-10/html/getting_started_with_subscription_watch/con-how-does-subscriptionwatch-show-data_assembly-opening-subscriptionwatch-ctxt/", "UI_LINK_REPORT_ACCURACY_RECOMMENDATIONS": "https://access.redhat.com/solutions/subscription-watch-mismatch", diff --git a/src/components/authentication/__tests__/__snapshots__/authentication.test.js.snap b/src/components/authentication/__tests__/__snapshots__/authentication.test.js.snap index c693ac1e9..cd6babfaa 100644 --- a/src/components/authentication/__tests__/__snapshots__/authentication.test.js.snap +++ b/src/components/authentication/__tests__/__snapshots__/authentication.test.js.snap @@ -94,7 +94,7 @@ exports[`Authentication Component should render a non-connected component error: > - Subscription Watch + Subscriptions </h1> @@ -151,7 +151,7 @@ exports[`Authentication Component should render a non-connected component error: description={} icon={[Function]} prevPageButtonText="Return to previous page" - serviceName="Subscription Watch" + serviceName="Subscriptions" showReturnButton={true} toLandingPageText="Go to landing page" > @@ -203,7 +203,7 @@ exports[`Authentication Component should render a non-connected component error:
- You do not have access to Subscription Watch + You do not have access to Subscriptions
@@ -277,7 +277,7 @@ exports[`Authentication Component should return a message on 401 error: 401 erro description={} icon={[Function]} prevPageButtonText="Return to previous page" - serviceName="Subscription Watch" + serviceName="Subscriptions" showReturnButton={true} toLandingPageText="Go to landing page" /> @@ -298,7 +298,7 @@ exports[`Authentication Component should return a redirect on a specific 403 err description={} icon={[Function]} prevPageButtonText="Return to previous page" - serviceName="Subscription Watch" + serviceName="Subscriptions" showReturnButton={true} toLandingPageText="Go to landing page" /> diff --git a/src/components/messageView/__tests__/__snapshots__/messageView.test.js.snap b/src/components/messageView/__tests__/__snapshots__/messageView.test.js.snap index 6c91ba14b..49f1ae9f2 100644 --- a/src/components/messageView/__tests__/__snapshots__/messageView.test.js.snap +++ b/src/components/messageView/__tests__/__snapshots__/messageView.test.js.snap @@ -7,7 +7,7 @@ exports[`MessageView Component should have fallback conditions for all props: fa productLabel={null} t={[Function]} > - Subscription Watch + Subscriptions - Subscription Watch + Subscriptions - Subscription Watch + Subscriptions - t(curiosity-view.title, {"appName":"Subscription Watch","context":"OpenShift"}) + t(curiosity-view.title, {"appName":"Subscriptions","context":"OpenShift"}) - t(curiosity-view.title, {"appName":"Subscription Watch","context":"OpenShift"}) + t(curiosity-view.title, {"appName":"Subscriptions","context":"OpenShift"}) - t(curiosity-view.title, {"appName":"Subscription Watch","context":"OpenShift"}) + t(curiosity-view.title, {"appName":"Subscriptions","context":"OpenShift"}) - t(curiosity-optin.cardTitle, {"appName":"Subscription Watch"}) + t(curiosity-optin.cardTitle, {"appName":"Subscriptions"}) - t(curiosity-optin.cardDescription, {"appName":"Subscription Watch"}) + t(curiosity-optin.cardDescription, {"appName":"Subscriptions"}) - t(curiosity-optin.buttonIsActive, {"appName":"Subscription Watch"}) + t(curiosity-optin.buttonIsActive, {"appName":"Subscriptions"}) @@ -150,7 +150,7 @@ exports[`OptinView Component should render an API state driven view: 4XX view 1` isDisabled={true} variant="primary" > - t(curiosity-optin.buttonIsActive, {"appName":"Subscription Watch"}) + t(curiosity-optin.buttonIsActive, {"appName":"Subscriptions"}) @@ -165,7 +165,7 @@ exports[`OptinView Component should render an API state driven view: 200 view 1` isDisabled={true} variant="primary" > - t(curiosity-optin.buttonIsActive, {"appName":"Subscription Watch"}) + t(curiosity-optin.buttonIsActive, {"appName":"Subscriptions"}) @@ -180,7 +180,7 @@ exports[`OptinView Component should render an API state driven view: 401 view 1` isDisabled={true} variant="primary" > - t(curiosity-optin.buttonIsActive, {"appName":"Subscription Watch"}) + t(curiosity-optin.buttonIsActive, {"appName":"Subscriptions"}) @@ -195,7 +195,7 @@ exports[`OptinView Component should render an API state driven view: 403 view 1` onClick={[Function]} variant="primary" > - t(curiosity-optin.buttonActivate, {"appName":"Subscription Watch"}) + t(curiosity-optin.buttonActivate, {"appName":"Subscriptions"}) @@ -210,7 +210,7 @@ exports[`OptinView Component should render an API state driven view: 500 view 1` isDisabled={true} variant="primary" > - t(curiosity-optin.buttonIsActive, {"appName":"Subscription Watch"}) + t(curiosity-optin.buttonIsActive, {"appName":"Subscriptions"}) @@ -220,7 +220,7 @@ exports[`OptinView Component should render an API state driven view: 500 view 1` exports[`OptinView Component should render an API state driven view: error view 1`] = `

- t(curiosity-optin.cardIsErrorDescription, {"appName":"Subscription Watch"}, [object Object]) + t(curiosity-optin.cardIsErrorDescription, {"appName":"Subscriptions"}, [object Object])

`; @@ -233,7 +233,7 @@ exports[`OptinView Component should render an API state driven view: fulfilled v isDisabled={true} variant="primary" > - t(curiosity-optin.buttonIsActive, {"appName":"Subscription Watch"}) + t(curiosity-optin.buttonIsActive, {"appName":"Subscriptions"})

@@ -262,13 +262,13 @@ exports[`OptinView Component should render an API state driven view: initial vie headingLevel="h1" size="2xl" > - t(curiosity-optin.cardTitle, {"appName":"Subscription Watch"}) + t(curiosity-optin.cardTitle, {"appName":"Subscriptions"}) - t(curiosity-optin.cardDescription, {"appName":"Subscription Watch"}) + t(curiosity-optin.cardDescription, {"appName":"Subscriptions"}) - t(curiosity-optin.buttonIsActive, {"appName":"Subscription Watch"}) + t(curiosity-optin.buttonIsActive, {"appName":"Subscriptions"}) @@ -393,7 +393,7 @@ exports[`OptinView Component should render an API state driven view: null or und isDisabled={true} variant="primary" > - t(curiosity-optin.buttonIsActive, {"appName":"Subscription Watch"}) + t(curiosity-optin.buttonIsActive, {"appName":"Subscriptions"}) @@ -412,7 +412,7 @@ exports[`OptinView Component should render an API state driven view: pending vie size="sm" /> - t(curiosity-optin.buttonActivate, {"appName":"Subscription Watch"}) + t(curiosity-optin.buttonActivate, {"appName":"Subscriptions"}) diff --git a/src/components/pageLayout/__tests__/__snapshots__/pageHeader.test.js.snap b/src/components/pageLayout/__tests__/__snapshots__/pageHeader.test.js.snap index d267a8419..6f53bb5d4 100644 --- a/src/components/pageLayout/__tests__/__snapshots__/pageHeader.test.js.snap +++ b/src/components/pageLayout/__tests__/__snapshots__/pageHeader.test.js.snap @@ -183,7 +183,7 @@ exports[`PageHeader Component should render the subtitle when viewId is provided

- t(curiosity-view.subtitle, {"appName":"Subscription Watch","context":"RHEL"}, [object Object]) + t(curiosity-view.subtitle, {"appName":"Subscriptions","context":"RHEL"}, [object Object])

diff --git a/src/components/productView/__tests__/__snapshots__/productView.test.js.snap b/src/components/productView/__tests__/__snapshots__/productView.test.js.snap index 951d7437d..1774783bd 100644 --- a/src/components/productView/__tests__/__snapshots__/productView.test.js.snap +++ b/src/components/productView/__tests__/__snapshots__/productView.test.js.snap @@ -7,7 +7,7 @@ exports[`ProductView Component should render a non-connected component: non-conn productLabel="lorem ipsum product label" t={[Function]} > - t(curiosity-view.title, {"appName":"Subscription Watch","context":"lorem ipsum product label"}) + t(curiosity-view.title, {"appName":"Subscriptions","context":"lorem ipsum product label"}) - t(curiosity-view.title, {"appName":"Subscription Watch","context":"RHEL"}) + t(curiosity-view.title, {"appName":"Subscriptions","context":"RHEL"}) - t(curiosity-view.title, {"appName":"Subscription Watch","context":"RHEL"}) + t(curiosity-view.title, {"appName":"Subscriptions","context":"RHEL"}) - t(curiosity-view.title, {"appName":"Subscription Watch","context":"RHEL"}) + t(curiosity-view.title, {"appName":"Subscriptions","context":"RHEL"})
-Subscription Watch +<title>Subscriptions