generated from openedx/frontend-template-application
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: change course/class title by unique identifier
- Loading branch information
1 parent
03ec792
commit 5b61d4f
Showing
31 changed files
with
209 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,9 +29,9 @@ const mockStore = { | |
{ | ||
learnerName: 'Test User', | ||
learnerEmail: '[email protected]', | ||
courseId: 'course-v1:demo+demo1+2020', | ||
courseId: 'course-v1:XXX+YYY+2023', | ||
courseName: 'Demo Course 1', | ||
classId: 'ccx-v1:demo+demo1+2020+ccx@3', | ||
classId: 'ccx-v1:XXX+YYY+2023+ccx@111', | ||
className: 'test ccx1', | ||
created: '2024-02-13T18:31:27.399407Z', | ||
status: 'Active', | ||
|
@@ -48,8 +48,8 @@ const mockStore = { | |
describe('ClassesPage', () => { | ||
test('renders classes data and pagination', async () => { | ||
const component = renderWithProviders( | ||
<MemoryRouter initialEntries={['/courses/Demo%20Course%201/test%20ccx1?classId=ccx-v1:demo+demo1+2020+ccx@3']}> | ||
<Route path="/courses/:courseName/:className"> | ||
<MemoryRouter initialEntries={[`/courses/${encodeURIComponent('course-v1:XXX+YYY+2023')}/${encodeURIComponent('ccx-v1:XXX+YYY+2023+ccx@111')}`]}> | ||
<Route path="/courses/:courseId/:classId"> | ||
<ClassPage /> | ||
</Route> | ||
</MemoryRouter>, | ||
|
@@ -71,8 +71,8 @@ describe('ClassesPage', () => { | |
|
||
test('renders actions', async () => { | ||
const { getByText, getByTestId } = renderWithProviders( | ||
<MemoryRouter initialEntries={['/courses/Demo%20Course%201/test%20ccx1?classId=ccx-v1:demo+demo1+2020+ccx@3']}> | ||
<Route path="/courses/:courseName/:className"> | ||
<MemoryRouter initialEntries={[`/courses/${encodeURIComponent('course-v1:XXX+YYY+2023')}/${encodeURIComponent('ccx-v1:XXX+YYY+2023+ccx@111')}`]}> | ||
<Route path="/courses/:courseId/:classId"> | ||
<ClassPage /> | ||
</Route> | ||
</MemoryRouter>, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.