Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: added data-cy attributes for tabs #1295

Merged
merged 1 commit into from
Sep 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions src/components/BilingualInput/BilingualInput.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function BilingualInput(props) {

const items = [
{
label: labelFr,
label: <span data-cy="tab-french-title">{labelFr}</span>,
key: 'fr',
forceRender: true,
children: (
Expand All @@ -65,7 +65,7 @@ function BilingualInput(props) {
),
},
{
label: labelEn,
label: <span data-cy="tab-english-title">{labelEn}</span>,
key: 'en',
forceRender: true,
children: (
Expand Down
8 changes: 4 additions & 4 deletions src/pages/Dashboard/Settings/Settings.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,28 +75,28 @@ const Settings = () => {

const items = [
{
label: t('dashboard.settings.tab1'),
label: <span data-cy="tab-user-management">{t('dashboard.settings.tab1')}</span>,
key: '1',
children: <UserManagement tabKey={tabKey} />,
disabled: false,
adminOnly: false,
},
{
label: t('dashboard.settings.tab2'),
label: <span data-cy="tab-widget-settings">{t('dashboard.settings.tab2')}</span>,
key: '2',
children: <WidgetSettings tabKey={tabKey} setDirtyStatus={setIsFormDirty} />,
disabled: false,
adminOnly: true,
},
{
label: t('dashboard.settings.tab3'),
label: <span data-cy="tab-calendar-settings">{t('dashboard.settings.tab3')}</span>,
key: '3',
children: currentCalendarData && <CalendarSettings tabKey={tabKey} setDirtyStatus={setIsFormDirty} />,
disabled: false,
adminOnly: true,
},
{
label: t('dashboard.settings.tab4'),
label: <span data-cy="tab-mandatory-fields">{t('dashboard.settings.tab4')}</span>,
key: '4',
children: <MandatoryFields tabKey={tabKey} setDirtyStatus={setIsFormDirty} />,
disabled: false,
Expand Down