Skip to content

Commit

Permalink
Merge pull request #1295 from culturecreates/task/issue-931
Browse files Browse the repository at this point in the history
chore: added data-cy attributes for tabs
  • Loading branch information
AbhishekPAnil authored Sep 2, 2024
2 parents e89e7ad + 5727652 commit 2f27efc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
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

0 comments on commit 2f27efc

Please sign in to comment.