Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
126 commits
Select commit Hold shift + click to select a range
06a071d
feat: customize init
Kneesal Aug 5, 2025
8cee2e8
feat: multi step form layout (#7352)
csiyang Aug 6, 2025
7c6217e
Merge branch 'main' into feature/25-00-NC-feat-church-invites
csiyang Aug 7, 2025
b56fef0
feat: customize page set up (#7374)
csiyang Aug 7, 2025
448fd5d
Merge branch 'main' into feature/25-00-NC-feat-church-invites
Kneesal Aug 10, 2025
89d048c
feat: template customize create (#7389)
csiyang Aug 10, 2025
af5e58c
feat: create customise fields consume pattern (#7404)
Kneesal Aug 11, 2025
ca3f955
fix: retain text outside of variables intact
Kneesal Aug 11, 2025
fc29665
fix: syntax of variables we support
Kneesal Aug 11, 2025
caacdb7
feat: text screen (#7355)
csiyang Aug 11, 2025
b5d5f01
feat: links screen (#7419)
csiyang Aug 12, 2025
d25f421
feat: church invite team select screen (#7420)
Kneesal Aug 12, 2025
b859848
fix: done screen
Kneesal Aug 12, 2025
d07fbe3
feat: action customizable toggle (#7425)
csiyang Aug 12, 2025
c56e9ec
fix: handle null social image
Kneesal Aug 12, 2025
ae61bb4
Merge branch 'feature/25-00-NC-feat-church-invites' of https://github…
Kneesal Aug 12, 2025
8405192
fix: after user duplicates - dont show input
Kneesal Aug 13, 2025
74dc81e
fix: lint
Kneesal Aug 13, 2025
608d1ad
Merge branch 'main' into feature/25-00-NC-feat-church-invites
Kneesal Aug 13, 2025
70c0fa7
Merge branch 'feature/25-00-NC-feat-church-invites' of https://github…
Kneesal Aug 13, 2025
545d5e9
fix: script
Kneesal Aug 13, 2025
4a951f8
Merge branch 'main' into feature/25-00-NC-feat-church-invites
Kneesal Aug 13, 2025
18c334b
fix: lint
Kneesal Aug 13, 2025
cc222be
fix: breaking tests
Kneesal Aug 13, 2025
4a97503
fix: journey customize team select tests
Kneesal Aug 14, 2025
7246403
fix: comment out and lint
Kneesal Aug 14, 2025
c05ca5d
Merge branch 'main' into feature/25-00-NC-feat-church-invites
Kneesal Aug 14, 2025
305ee80
fix: more lint
Kneesal Aug 14, 2025
df71266
test: add tests (#7435)
csiyang Aug 14, 2025
14fa288
fix: add language screen card test
Kneesal Aug 14, 2025
f28cd5c
Merge branch 'feature/25-00-NC-feat-church-invites' of https://github…
Kneesal Aug 14, 2025
609701b
feat: customize template button (#7445)
csiyang Aug 14, 2025
4980798
fix: tests for language screen
Kneesal Aug 14, 2025
4a1e9d6
Merge branch 'feature/25-00-NC-feat-church-invites' of https://github…
Kneesal Aug 14, 2025
0824746
fix: comment out edit manually
Kneesal Aug 14, 2025
2b7b63f
refactor: multi step form (#7448)
csiyang Aug 14, 2025
697e881
fix: tests
Kneesal Aug 14, 2025
17ffd3c
Merge branch 'feature/25-00-NC-feat-church-invites' of https://github…
Kneesal Aug 14, 2025
5b0da5b
fix: share drawere intial tests
Kneesal Aug 14, 2025
30b6cf3
fix: tests
Kneesal Aug 14, 2025
64b591d
fix: tests
Kneesal Aug 14, 2025
14a1eb2
Merge branch 'main' into feature/25-00-NC-feat-church-invites
Kneesal Aug 14, 2025
d0e3059
Merge branch 'main' into feature/25-00-NC-feat-church-invites
Kneesal Aug 21, 2025
3f9e9d4
Merge branch 'main' into feature/25-00-NC-feat-church-invites
Kneesal Aug 21, 2025
6c710f2
Merge branch 'main' into feature/25-00-NC-feat-church-invites
Kneesal Aug 25, 2025
59e2a6d
Merge branch 'main' into feature/25-00-NC-feat-church-invites
Kneesal Aug 29, 2025
47cf5a8
Merge branch 'main' into feature/25-00-NC-feat-church-invites
Ur-imazing Sep 1, 2025
9fc52f4
Merge branch 'main' into feature/25-00-NC-feat-church-invites
Ur-imazing Sep 1, 2025
e52092b
fix: CustomizeTemplateButton unit test
Ur-imazing Sep 1, 2025
759854b
Merge branch 'main' into feature/25-00-NC-feat-church-invites
Ur-imazing Sep 2, 2025
e06061f
fix: text screen form submission (#7580)
Ur-imazing Sep 3, 2025
b0d3039
Merge branch 'main' into feature/25-00-NC-feat-church-invites
Ur-imazing Sep 3, 2025
48292ed
Merge branch 'main' into feature/25-00-NC-feat-church-invites
Ur-imazing Sep 7, 2025
6b28aef
Merge branch 'main' into feature/25-00-NC-feat-church-invites
Kneesal Sep 8, 2025
966335a
chore: multi step form styling refactor (#7585)
Ur-imazing Sep 9, 2025
1264cb6
Merge branch 'main' into feature/25-00-NC-feat-church-invites
Kneesal Sep 9, 2025
7d6c936
fix: link screen not pulling links into customize page (#7608)
Ur-imazing Sep 9, 2025
b71123b
chore: add styling to progress stepper (#7583)
Ur-imazing Sep 9, 2025
daf7551
fix: language screen language filter (#7625)
Kneesal Sep 10, 2025
37513be
feat: add styling to customize text screen (#7588)
Ur-imazing Sep 10, 2025
4e9acc9
fix: active step qol
Kneesal Sep 10, 2025
22014da
Merge branch 'feature/25-00-NC-feat-church-invites' of https://github…
Kneesal Sep 10, 2025
1595809
Merge branch 'main' into feature/25-00-NC-feat-church-invites
Kneesal Sep 10, 2025
70a3f99
fix: codegen
Kneesal Sep 10, 2025
16a6a5c
Merge branch 'feature/25-00-NC-feat-church-invites' of https://github…
Kneesal Sep 10, 2025
4fc4bbd
Merge branch 'main' into feature/25-00-NC-feat-church-invites
Kneesal Sep 10, 2025
5f5d4df
feat: add social screen image and text edit components (#7638)
Ur-imazing Sep 11, 2025
c582a38
fix: use this template button to take user to customize (#7646)
Kneesal Sep 11, 2025
40413ce
Merge remote-tracking branch 'origin/main' into feature/25-00-NC-feat…
Kneesal Sep 11, 2025
70c24b0
fix: skip screens that are not customizable (#7651)
Kneesal Sep 11, 2025
c2a04a6
feat: update share dialog style (#7652)
Ur-imazing Sep 12, 2025
d9036cb
fix: minor style changes (#7662)
Kneesal Sep 14, 2025
6ec39bc
feat: style done screen and add share functionality (#7663)
Ur-imazing Sep 15, 2025
5da3756
Merge remote-tracking branch 'origin/main' into feature/25-00-NC-feat…
Kneesal Sep 15, 2025
c774780
fix: link screen cards (#7677)
Kneesal Sep 15, 2025
832392f
fix: add customize variant (#7675)
Kneesal Sep 15, 2025
4f990ae
Merge branch 'main' into feature/25-00-NC-feat-church-invites
Kneesal Sep 15, 2025
93c9335
Merge branch 'main' into feature/25-00-NC-feat-church-invites
Kneesal Sep 16, 2025
d729b51
feat: add styling to link screen (#7668)
Ur-imazing Sep 16, 2025
686f22e
fix: default text for done screen (#7681)
Kneesal Sep 16, 2025
8c6b9ce
feat: language screen styling (#7682)
Ur-imazing Sep 16, 2025
0d454f5
Merge branch 'main' into feature/25-00-NC-feat-church-invites
Kneesal Sep 17, 2025
79649cf
feat: add special case for done screen stepper node (#7690)
Ur-imazing Sep 17, 2025
59ac4cf
feat: truncate long journey descriptions to one line on the done scre…
Ur-imazing Sep 17, 2025
339fcf6
feat: social screen open device default photo library (#7691)
Kneesal Sep 17, 2025
42e082f
fix: hide edit manually button from language screen (#7731)
Ur-imazing Sep 21, 2025
227f9ad
Merge branch 'main' into feature/25-00-NC-feat-church-invites
Ur-imazing Sep 22, 2025
5a5c9b9
fix: show resolved customizable text for response field properties in…
Ur-imazing Sep 22, 2025
7704f3e
fix: easier language variant creator for publishers (#7732)
Kneesal Sep 22, 2025
eb68dcf
Merge branch 'main' into feature/25-00-NC-feat-church-invites
Kneesal Sep 22, 2025
848907c
feat: prevent text input into title or description edit fields when c…
Ur-imazing Sep 22, 2025
08345ef
Merge branch 'main' into feature/25-00-NC-feat-church-invites
Kneesal Sep 22, 2025
4adea75
fix: remove markdown from step block nodes in journey flow for non-te…
Ur-imazing Sep 23, 2025
17bfdad
fix: curly brackets customization in editor mode (#7753)
Kneesal Sep 23, 2025
9cf7562
feat: update CTA button in template footer with UseThisTemplateButton…
Ur-imazing Sep 23, 2025
0a036bd
feat: redirect attempts to access customization flow via manual URL (…
Ur-imazing Sep 23, 2025
b9b74b4
fix: consume ld flags in page props
Kneesal Sep 23, 2025
7c06d2c
fix: page wrapper (#7754)
Kneesal Sep 23, 2025
d4df347
Merge branch 'main' into feature/25-00-NC-feat-church-invites
Kneesal Sep 23, 2025
9088855
fix: remove braces in poll and buttons (#7756)
Kneesal Sep 24, 2025
f5fc9d3
Merge branch 'main' into feature/25-00-NC-feat-church-invites
Kneesal Sep 24, 2025
4fa3f3b
fix: disable translate on publisher child templates (#7766)
Kneesal Sep 25, 2025
0ec6e2a
feat: persist customizable toggle for link and email actions (#7757)
Ur-imazing Sep 25, 2025
65e2bf2
Merge branch 'main' into feature/25-00-NC-feat-church-invites
Ur-imazing Sep 25, 2025
6f09d17
fix: unify customization flow next step button styling
Ur-imazing Sep 25, 2025
80e2581
fix: lint issues
autofix-ci[bot] Sep 25, 2025
b2381d3
Merge remote-tracking branch 'origin' into urimchae/nes-856-unify-sty…
Ur-imazing Sep 26, 2025
6f26565
chore: refactor next step button into dedicated CustomizeFlowNextButt…
Ur-imazing Sep 28, 2025
fd48e28
Merge branch 'main' into urimchae/nes-856-unify-styling-of-next-butto…
Ur-imazing Sep 28, 2025
abdda2b
chore: remove redundant code from button tests
Ur-imazing Sep 28, 2025
b080728
Merge branch 'main' into urimchae/nes-856-unify-styling-of-next-butto…
Ur-imazing Sep 28, 2025
e356c44
fix: lint issues
autofix-ci[bot] Sep 28, 2025
3423ce5
feat: change customize flow next button label
Ur-imazing Sep 28, 2025
b265a01
Merge branch 'urimchae/nes-856-unify-styling-of-next-buttons-other-mi…
Ur-imazing Sep 28, 2025
ed1be9d
Merge branch 'main' into urimchae/nes-856-unify-styling-of-next-butto…
Ur-imazing Sep 28, 2025
b2c9bd0
feat: unify mobile and desktop button style
Ur-imazing Sep 28, 2025
d63faf8
fix: lint issues
autofix-ci[bot] Sep 28, 2025
ccc82d7
chore: made label prop of customize flow next button non-nullable
Ur-imazing Sep 29, 2025
12b2a4e
Merge branch 'main' into urimchae/nes-856-unify-styling-of-next-butto…
Ur-imazing Sep 29, 2025
89c003b
feat: tweak typography variant
Ur-imazing Oct 1, 2025
4eeb32d
Merge branch 'main' into urimchae/nes-856-unify-styling-of-next-butto…
Ur-imazing Oct 1, 2025
a694adf
Merge remote-tracking branch 'origin' into urimchae/nes-856-unify-sty…
Ur-imazing Oct 1, 2025
6d6a5a1
fix: lint issues
autofix-ci[bot] Oct 1, 2025
7e24880
Merge branch 'main' into urimchae/nes-856-unify-styling-of-next-butto…
Ur-imazing Oct 1, 2025
9a9a774
Merge branch 'main' into urimchae/nes-856-unify-styling-of-next-butto…
Ur-imazing Oct 2, 2025
cfdec1c
Merge branch 'main' into urimchae/nes-856-unify-styling-of-next-butto…
Ur-imazing Oct 2, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
import { fireEvent, render, screen } from '@testing-library/react'

import { CustomizeFlowNextButton } from './CustomizeFlowNextButton'

describe('CustomizeFlowNextButton', () => {
const defaultProps = {
label: 'New Next Button'
}

beforeEach(() => {
jest.clearAllMocks()
})

it('should render the button with default props', () => {
render(<CustomizeFlowNextButton {...defaultProps} />)

const button = screen.getByTestId('CustomizeFlowNextButton')
expect(button).toBeInTheDocument()
expect(button).toHaveAttribute('type', 'button')
expect(button).not.toBeDisabled()
expect(screen.getByText('New Next Button')).toBeInTheDocument()
})

it('should render button end adornment', () => {
render(<CustomizeFlowNextButton {...defaultProps} />)

const button = screen.getByTestId('CustomizeFlowNextButton')
expect(button.querySelector('svg')).toBeInTheDocument()
})

it('should render as disabled when disabled prop is true', () => {
render(<CustomizeFlowNextButton {...defaultProps} disabled />)

const button = screen.getByTestId('CustomizeFlowNextButton')
expect(button).toBeDisabled()
})

it('should render with submit type when type is submit', () => {
render(<CustomizeFlowNextButton {...defaultProps} type="submit" />)

const button = screen.getByTestId('CustomizeFlowNextButton')
expect(button).toHaveAttribute('type', 'submit')
})

it('should render with form attribute when form prop is provided', () => {
render(<CustomizeFlowNextButton {...defaultProps} form="test-form" />)

const button = screen.getByTestId('CustomizeFlowNextButton')
expect(button).toHaveAttribute('form', 'test-form')
})

it('should handle empty string label', () => {
render(<CustomizeFlowNextButton label="" />)

const button = screen.getByTestId('CustomizeFlowNextButton')
expect(button).toBeInTheDocument()

const typography = button.querySelector('.MuiTypography-root')
expect(typography).toBeInTheDocument()
expect(typography).toHaveTextContent('')
})

it('should call onClick handler when clicked', () => {
const handleClick = jest.fn()
render(<CustomizeFlowNextButton {...defaultProps} onClick={handleClick} />)

const button = screen.getByTestId('CustomizeFlowNextButton')
fireEvent.click(button)
expect(handleClick).toHaveBeenCalledTimes(1)
})

it('should not call onClick when disabled', () => {
const handleClick = jest.fn()
render(
<CustomizeFlowNextButton
{...defaultProps}
onClick={handleClick}
disabled
/>
)

const button = screen.getByTestId('CustomizeFlowNextButton')
fireEvent.click(button)
expect(handleClick).not.toHaveBeenCalled()
})

it('should not call onClick when loading', () => {
const handleClick = jest.fn()
render(
<CustomizeFlowNextButton
{...defaultProps}
onClick={handleClick}
loading
/>
)

const button = screen.getByTestId('CustomizeFlowNextButton')
fireEvent.click(button)
expect(handleClick).not.toHaveBeenCalled()
})
})
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
import Button from '@mui/material/Button'
import Stack from '@mui/material/Stack'
import Typography from '@mui/material/Typography'
import { SxProps, Theme } from '@mui/material/styles'
import { ReactElement } from 'react'

import ArrowRightIcon from '@core/shared/ui/icons/ArrowRight'

import {
BUTTON_NEXT_STEP_WIDTH,
BUTTON_NEXT_STEP_HEIGHT
} from '../../utils/sharedStyles'

interface CustomizeFlowNextButtonProps {
label: string
loading?: boolean
disabled?: boolean
type?: 'button' | 'submit'
form?: string
ariaLabel?: string
onClick?: () => void
sx?: SxProps<Theme>
}

export const CustomizeFlowNextButton = ({
label,
loading = false,
disabled = false,
type = 'button',
form,
ariaLabel,
onClick,
sx = {}
}: CustomizeFlowNextButtonProps): ReactElement => {
return (
<Button
variant="contained"
color="secondary"
type={type}
form={form}
onClick={onClick}
loading={loading}
disabled={disabled}
aria-label={ariaLabel}
data-testid="CustomizeFlowNextButton"
sx={{
width: BUTTON_NEXT_STEP_WIDTH,
height: BUTTON_NEXT_STEP_HEIGHT,
alignSelf: 'center',
mt: { xs: 6, sm: 4 },
borderRadius: 2,
...sx
}}
>
<Stack direction="row" alignItems="center" gap={1}>
<Typography variant="body1" sx={{ fontWeight: 'bold' }}>
{label}
</Typography>
<ArrowRightIcon sx={{ fontSize: 24 }} />
</Stack>
</Button>
)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { CustomizeFlowNextButton } from './CustomizeFlowNextButton'
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,7 @@ describe('DoneScreen', () => {
</MockedProvider>
)

expect(screen.getAllByRole('heading', { level: 1 })[0]).toHaveTextContent(
"It's Ready!"
)
expect(screen.getAllByText("It's Ready!")).toHaveLength(2)
})

it('renders journey preview card with title and description', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import Box from '@mui/material/Box'
import Button from '@mui/material/Button'
import Stack from '@mui/material/Stack'
import Typography from '@mui/material/Typography'
import dynamic from 'next/dynamic'
import NextImage from 'next/image'
import { useRouter } from 'next/router'
import { useTranslation } from 'next-i18next'
Expand Down Expand Up @@ -31,9 +30,8 @@ export function DoneScreen({
}

return (
<Stack alignItems="center" sx={{ pb: 4, px: 4 }}>
<Stack alignItems="center" sx={{ pb: 4, px: { xs: 4, sm: 18 } }}>
<Typography
component="h1"
variant="h4"
gutterBottom
display={{ xs: 'none', sm: 'block' }}
Expand All @@ -42,7 +40,6 @@ export function DoneScreen({
{t("It's Ready!")}
</Typography>
<Typography
component="h1"
variant="h6"
display={{ xs: 'block', sm: 'none' }}
gutterBottom
Expand All @@ -53,7 +50,7 @@ export function DoneScreen({
<Typography
color="text.secondary"
align="center"
variant="h6"
variant="subtitle2"
display={{ xs: 'none', sm: 'block' }}
sx={{
maxWidth: { xs: '100%', sm: '90%' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ describe('LanguageScreen', () => {
'Team One'
)
)
fireEvent.click(screen.getByTestId('LanguageScreenSubmitButton'))
fireEvent.click(screen.getByTestId('CustomizeFlowNextButton'))
await waitFor(() =>
expect(mockJourneyDuplicateMockResult).toHaveBeenCalled()
)
Expand Down Expand Up @@ -274,7 +274,7 @@ describe('LanguageScreen', () => {
fireEvent.click(screen.getByRole('option', { name: 'Spanish' }))
)

fireEvent.click(screen.getByTestId('LanguageScreenSubmitButton'))
fireEvent.click(screen.getByTestId('CustomizeFlowNextButton'))
await waitFor(() =>
expect(mockJourneyDuplicateMockResult).toHaveBeenCalled()
)
Expand Down Expand Up @@ -320,7 +320,7 @@ describe('LanguageScreen', () => {
'Team One'
)
)
fireEvent.click(screen.getByTestId('LanguageScreenSubmitButton'))
fireEvent.click(screen.getByTestId('CustomizeFlowNextButton'))
await waitFor(() =>
expect(mockJourneyDuplicateMockResult).toHaveBeenCalled()
)
Expand Down Expand Up @@ -421,9 +421,9 @@ describe('LanguageScreen', () => {
expect(screen.getByRole('combobox', { name: 'Team' })).toBeInTheDocument()
})

expect(screen.getByTestId('LanguageScreenSubmitButton')).toBeInTheDocument()
expect(screen.getByTestId('LanguageScreenSubmitButton')).toHaveTextContent(
'Next Step'
expect(screen.getByTestId('CustomizeFlowNextButton')).toBeInTheDocument()
expect(screen.getByTestId('CustomizeFlowNextButton')).toHaveTextContent(
'Next'
)
})

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Button from '@mui/material/Button'
import FormControl from '@mui/material/FormControl'
import Stack from '@mui/material/Stack'
import Typography from '@mui/material/Typography'
Expand All @@ -13,18 +12,14 @@ import { object, string } from 'yup'
import { useJourney } from '@core/journeys/ui/JourneyProvider'
import { useTeam } from '@core/journeys/ui/TeamProvider'
import { useJourneyDuplicateMutation } from '@core/journeys/ui/useJourneyDuplicateMutation'
import ArrowRightIcon from '@core/shared/ui/icons/ArrowRight'

import { JourneyCustomizeTeamSelect } from './JourneyCustomizeTeamSelect'
import { useGetChildTemplateJourneyLanguages } from '../../../../../libs/useGetChildTemplateJourneyLanguages'
import { useGetParentTemplateJourneyLanguages } from '../../../../../libs/useGetParentTemplateJourneyLanguages'
import { LanguageAutocomplete } from '@core/shared/ui/LanguageAutocomplete'
import { CustomizationScreen } from '../../../utils/getCustomizeFlowConfig'
import { SocialImage } from '@core/journeys/ui/TemplateView/TemplateViewHeader/SocialImage'
import {
BUTTON_NEXT_STEP_WIDTH,
BUTTON_NEXT_STEP_HEIGHT
} from '../../../utils/sharedStyles'
import { CustomizeFlowNextButton } from '../../CustomizeFlowNextButton'

interface LanguageScreenProps {
handleNext: () => void
Expand Down Expand Up @@ -170,12 +165,21 @@ export function LanguageScreen({
>
{t("Let's get started!")}
</Typography>
<Typography variant="h6" color="text.secondary" align="center">
<Typography
variant="subtitle2"
color="text.secondary"
align="center"
display={{ xs: 'none', sm: 'block' }}
>
{t('A few quick edits and your template will be ready to share.')}
</Typography>
</Stack>
<SocialImage />
<Typography variant="h6" gutterBottom sx={{ mb: { xs: 0, sm: 2 } }}>
<Typography
variant="subtitle2"
gutterBottom
sx={{ mb: { xs: 0, sm: 2 } }}
>
{journey?.title ?? ''}
</Typography>
<Formik
Expand Down Expand Up @@ -226,34 +230,12 @@ export function LanguageScreen({
{t('Select a team')}
</Typography>
{isSignedIn && <JourneyCustomizeTeamSelect />}
<Button
variant="contained"
color="secondary"
disabled={loading}
<CustomizeFlowNextButton
label={t('Next')}
onClick={() => handleSubmit()}
data-testid="LanguageScreenSubmitButton"
sx={{
width: BUTTON_NEXT_STEP_WIDTH,
height: BUTTON_NEXT_STEP_HEIGHT,
alignSelf: 'center',
mt: { xs: 6, sm: 4 },
borderRadius: '8px'
}}
>
<Stack direction="row" alignItems="center" gap={1}>
<Typography
sx={{
fontWeight: 'bold',
display: { xs: 'none', sm: 'block' }
}}
>
{t('Next Step')}
</Typography>
<ArrowRightIcon
sx={{ fontSize: { xs: '24px', sm: '16px' } }}
/>
</Stack>
</Button>
disabled={loading}
ariaLabel={t('Next')}
/>
</Stack>
</FormControl>
</Form>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ describe('LinksScreen', () => {
// const chatInput = within(chatGroup).getByRole('textbox') as HTMLInputElement
// fireEvent.change(chatInput, { target: { value: 'wa.me/999' } })

// fireEvent.click(screen.getByRole('button', { name: 'Replace the links' }))
// fireEvent.click(screen.getByTestId('CustomizeFlowNextButton'))
// await waitFor(() =>
// expect(screen.getByText('Enter a valid URL')).toBeInTheDocument()
// )
Expand All @@ -133,7 +133,7 @@ describe('LinksScreen', () => {
)
})

fireEvent.click(screen.getByRole('button', { name: 'Replace the links' }))
fireEvent.click(screen.getByTestId('CustomizeFlowNextButton'))
await waitFor(() => expect(handleNext).toHaveBeenCalled())
})

Expand Down Expand Up @@ -310,7 +310,7 @@ describe('LinksScreen', () => {
// const chatInput = within(chatGroup).getByRole('textbox') as HTMLInputElement
// fireEvent.change(chatInput, { target: { value: 'https://wa.me/999' } })

fireEvent.click(screen.getByRole('button', { name: 'Replace the links' }))
fireEvent.click(screen.getByTestId('CustomizeFlowNextButton'))

await waitFor(() => {
expect(linkUpdateMock.result).toHaveBeenCalled()
Expand Down
Loading
Loading