Skip to content

Commit db29b26

Browse files
committed
Update course and track progress display
The commit message summarizes the changes made in the code. In this case, the changes involve updating the progress display for courses and tracks in the acceptance tests. The progress text and progress bar style have been modified to reflect the correct number of stages.
1 parent 625de27 commit db29b26

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

tests/acceptance/course-page/view-screencasts-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module('Acceptance | course-page | view-screencasts-test', function (hooks) {
2929

3030
assert.strictEqual(
3131
windowMock.location.href,
32-
`${windowMock.location.origin}/login?next=http%3A%2F%2Flocalhost%3A${window.location.port}%2Fcourses%2Fredis%2Fstages%2F2%2Fscreencasts`,
32+
`${windowMock.location.origin}/login?next=http%3A%2F%2Flocalhost%3A${window.location.port}%2Fcourses%2Fredis%2Fstages%2Frg2%2Fscreencasts`,
3333
'should redirect to login URL',
3434
);
3535
});

tests/acceptance/view-courses-test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ module('Acceptance | view-courses', function (hooks) {
6969

7070
assert.true(catalogPage.courseCards[0].hasProgressBar);
7171
assert.false(catalogPage.courseCards[0].hasDifficultyLabel);
72-
assert.strictEqual(catalogPage.courseCards[0].progressText, '1/31 stages');
73-
assert.strictEqual(catalogPage.courseCards[0].progressBarStyle, 'width:3%');
72+
assert.strictEqual(catalogPage.courseCards[0].progressText, '1/44 stages');
73+
assert.strictEqual(catalogPage.courseCards[0].progressBarStyle, 'width:2%');
7474
});
7575

7676
test('it renders with progress if user has created a repository', async function (assert) {
@@ -91,7 +91,7 @@ module('Acceptance | view-courses', function (hooks) {
9191

9292
assert.strictEqual(catalogPage.courseCards[0].actionText, 'Resume');
9393
assert.true(catalogPage.courseCards[0].hasProgressBar);
94-
assert.strictEqual(catalogPage.courseCards[0].progressText, '0/31 stages');
94+
assert.strictEqual(catalogPage.courseCards[0].progressText, '0/44 stages');
9595
});
9696

9797
test('it sorts course cards based on last push', async function (assert) {

tests/acceptance/view-tracks-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ module('Acceptance | view-tracks', function (hooks) {
4747
assert.strictEqual(catalogPage.trackCards[3].actionText, 'Start', 'expected fourth track to have start action');
4848

4949
assert.true(catalogPage.trackCards[0].hasProgressBar, 'expected first track to have progress bar');
50-
assert.strictEqual(catalogPage.trackCards[0].progressText, '1/68 stages');
50+
assert.strictEqual(catalogPage.trackCards[0].progressText, '1/81 stages');
5151
assert.strictEqual(catalogPage.trackCards[0].progressBarStyle, 'width:1%');
5252
});
5353

0 commit comments

Comments
 (0)