Skip to content

Commit b6c29df

Browse files
authored
chore: add identifiers to some upgrade links/buttons (#1686)
1 parent 2ce8333 commit b6c29df

File tree

6 files changed

+7
-6
lines changed

6 files changed

+7
-6
lines changed

src/course-home/outline-tab/widgets/CourseDates.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const CourseDates = () => {
3939
/>
4040
))}
4141
</ol>
42-
<a className="font-weight-bold ml-4 pl-1 small" href={datesTabLink}>
42+
<a id="dates-tab-link" className="font-weight-bold ml-4 pl-1 small" href={datesTabLink}>
4343
{intl.formatMessage(messages.allDates)}
4444
</a>
4545
</div>

src/course-home/progress-tab/grades/course-grade/CourseGradeHeader.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const CourseGradeHeader = () => {
4848
previewText = intl.formatMessage(messages.courseGradePreviewUpgradeDeadlinePassedBody);
4949
}
5050
return (
51-
<div className="row w-100 m-0 p-4 rounded-top bg-primary-500 text-white">
51+
<div id="grade-course-header" className="row w-100 m-0 p-4 rounded-top bg-primary-500 text-white">
5252
<div className={`col-12 ${verifiedMode ? 'col-md-9' : ''} p-0`}>
5353
<div className="row w-100 m-0 p-0">
5454
<div className="col-1 p-0">
@@ -71,7 +71,7 @@ const CourseGradeHeader = () => {
7171
</div>
7272
{verifiedMode && (
7373
<div className="col-12 col-md-3 mt-3 mt-md-0 p-0 align-self-center text-right">
74-
<Button variant="brand" size="sm" href={verifiedMode.upgradeUrl} onClick={logUpgradeButtonClick}>
74+
<Button id="upgrade-button" variant="brand" size="sm" href={verifiedMode.upgradeUrl} onClick={logUpgradeButtonClick}>
7575
{intl.formatMessage(messages.courseGradePreviewUpgradeButton)}
7676
</Button>
7777
</div>

src/course-home/suggested-schedule-messaging/UpgradeToCompleteAlert.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const UpgradeToCompleteAlert = ({ logUpgradeLinkClick }) => {
3434
}
3535

3636
return (
37-
<Alert className="bg-light-200">
37+
<Alert id="upgrade-complete-alert" className="bg-light-200">
3838
<Row className="w-100 m-0">
3939
<Col xs={12} md={9} className="small p-0 pr-md-2">
4040
<Alert.Heading>{intl.formatMessage(messages.upgradeToCompleteHeader)}</Alert.Heading>

src/course-home/suggested-schedule-messaging/UpgradeToShiftDatesAlert.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const UpgradeToShiftDatesAlert = ({ logUpgradeLinkClick, model }) => {
3636
}
3737

3838
return (
39-
<Alert className="bg-light-200">
39+
<Alert id="upgrade-shift-dates-alert" className="bg-light-200">
4040
<Row className="w-100 m-0">
4141
<Col xs={12} md={9} className="small p-0 pr-md-2">
4242
<strong>{intl.formatMessage(messages.missedDeadlines)}</strong>

src/courseware/course/course-exit/Footnote.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
33
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
44

55
const Footnote = ({ icon, text }) => (
6-
<div className="row w-100 mx-0 my-4 justify-content-center">
6+
<div id="celebration-footnote-wrapper" className="row w-100 mx-0 my-4 justify-content-center">
77
<p className="text-gray-700">
88
<FontAwesomeIcon icon={icon} style={{ width: '20px' }} />&nbsp;
99
{text}

src/courseware/course/course-exit/UpgradeFootnote.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const UpgradeFootnote = ({ deadline, href }) => {
2020

2121
const upgradeLink = (
2222
<Hyperlink
23+
id="upgrade-link"
2324
style={{ textDecoration: 'underline' }}
2425
destination={href}
2526
className="text-reset"

0 commit comments

Comments
 (0)