From 483c2ae567f5fc8595b2362a1abbcea8f70078e7 Mon Sep 17 00:00:00 2001 From: ALC Consulting Date: Wed, 22 Mar 2023 13:02:15 +0100 Subject: [PATCH] =?UTF-8?q?fixup!=20=E2=9C=A8(website)=20creates=20lives?= =?UTF-8?q?=20on=20the=20website?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Create/LiveCreate.spec.tsx | 10 ++++----- .../Live/components/Create/LiveCreate.tsx | 22 +++++++++---------- .../components/Create/LiveCreateForm.spec.tsx | 8 +++---- .../Live/components/Create/LiveCreateForm.tsx | 12 +++++----- 4 files changed, 26 insertions(+), 26 deletions(-) diff --git a/src/frontend/apps/standalone_site/src/features/Contents/features/Live/components/Create/LiveCreate.spec.tsx b/src/frontend/apps/standalone_site/src/features/Contents/features/Live/components/Create/LiveCreate.spec.tsx index 69d3d2e2d0..a98b08d69e 100644 --- a/src/frontend/apps/standalone_site/src/features/Contents/features/Live/components/Create/LiveCreate.spec.tsx +++ b/src/frontend/apps/standalone_site/src/features/Contents/features/Live/components/Create/LiveCreate.spec.tsx @@ -6,24 +6,24 @@ import LiveCreate from './LiveCreate'; jest.mock('./LiveCreateForm', () => ({ __esModule: true, - default: () =>
My LiveCreate Form
, + default: () =>
My WebinarCreate Form
, })); describe('', () => { test('renders LiveCreate', () => { render(); - const button = screen.getByRole('button', { name: /Create Live/i }); + const button = screen.getByRole('button', { name: /Create Webinar/i }); expect(button).toBeInTheDocument(); expect( - screen.queryByRole('heading', { name: /Create Live/i }), + screen.queryByRole('heading', { name: /Create Webinar/i }), ).not.toBeInTheDocument(); userEvent.click(button); expect( - screen.getByRole('heading', { name: /Create Live/i }), + screen.getByRole('heading', { name: /Create Webinar/i }), ).toBeInTheDocument(); - expect(screen.getByText('My LiveCreate Form')).toBeInTheDocument(); + expect(screen.getByText('My WebinarCreate Form')).toBeInTheDocument(); }); }); diff --git a/src/frontend/apps/standalone_site/src/features/Contents/features/Live/components/Create/LiveCreate.tsx b/src/frontend/apps/standalone_site/src/features/Contents/features/Live/components/Create/LiveCreate.tsx index 4190fd5284..bb484beebc 100644 --- a/src/frontend/apps/standalone_site/src/features/Contents/features/Live/components/Create/LiveCreate.tsx +++ b/src/frontend/apps/standalone_site/src/features/Contents/features/Live/components/Create/LiveCreate.tsx @@ -11,15 +11,15 @@ import { routes } from 'routes'; import LiveCreateForm from './LiveCreateForm'; const messages = defineMessages({ - LiveTitle: { - defaultMessage: 'Lives', - description: 'Lives title', - id: 'features.Contents.features.Live.Create.LiveTitle', + WebinarTitle: { + defaultMessage: 'Webinars', + description: 'Webinars title', + id: 'features.Contents.features.Webinar.Create.WebinarTitle', }, - CreateLiveLabel: { - defaultMessage: 'Create Live', - description: 'Text heading create live.', - id: 'features.Contents.features.Live.Create.CreateLiveLabel', + CreateWebinarLabel: { + defaultMessage: 'Create Webinar', + description: 'Text heading create webinar.', + id: 'features.Contents.features.Webinar.Create.CreateWebinarLabel', }, }); @@ -44,12 +44,12 @@ const LiveCreate = () => { margin={{ bottom: 'medium' }} > - {intl.formatMessage(messages.LiveTitle)} + {intl.formatMessage(messages.WebinarTitle)}