Skip to content

Commit 25e6c12

Browse files
authored
Merge pull request #1455 from AppQuality/UN-1754
fix: add data-qa attributes for improved testing and accessibility
2 parents 4f1e79c + b99a0bf commit 25e6c12

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

src/pages/Campaign/pageHeader/Meta/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,10 @@ export const Metas = ({
183183
{' '}
184184
{t('__INSIGHTS_PAGE_NAVIGATION_LABEL')}
185185
</MD>
186-
<Link to={videoDashboardRoute}>
186+
<Link
187+
data-qa="playlis_video_header_button_navigation"
188+
to={videoDashboardRoute}
189+
>
187190
<Tooltip
188191
content={t(
189192
'__UX_CAMPAIGN_PAGE_NAVIGATION_VIDEO_LIST_TOOLTIP'

src/pages/Video/Actions.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const Actions = () => {
106106
<Divider />
107107
<SentimentOverview />
108108
<div style={{ padding: `${appTheme.space.md} 0` }}>
109-
<LG isBold>
109+
<LG isBold data-qa="tagging_tool_page_title_observations">
110110
{t('__OBSERVATIONS_DRAWER_TOTAL')}: {observations.length}
111111
</LG>
112112
{observations && severities && severities.length > 0 && (

src/pages/Video/components/SentimentOverview/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export const SentimentOverview = () => {
5858
<AccordionNew.Section>
5959
<StyledHeader icon={<AiIcon />}>
6060
<AccordionNew.Label
61+
data-qa="tagging_tool_page_accordions_header_summary"
6162
label={t('__SENTIMENT_OVERVIEW_TITLE')}
6263
subtitle={t('__SENTIMENT_OVERVIEW_SUBTITLE')}
6364
/>

src/pages/Video/components/Transcript/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const TranscriptWrapper = ({
3636
marginBottom: appTheme.space.xl,
3737
}}
3838
>
39-
<ContainerCard>
39+
<ContainerCard data-qa="tagging_tool_page_transcript_card">
4040
<Header editor={isEmpty ? undefined : editor} isEmpty={isEmpty} />
4141
{video?.transcript ? children : <EmptyState />}
4242
</ContainerCard>

0 commit comments

Comments
 (0)