Skip to content

Commit

Permalink
Reveal TypeScript Fundamentals v4 (#905)
Browse files Browse the repository at this point in the history
* Enable TS Fundamentals v4

* update test

* Update tests
  • Loading branch information
mike-north authored Oct 22, 2023
1 parent b0da9b9 commit fa23cc2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions packages/website/content/courses.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
courses:
- name: "TypeScript Fundamentals v3"
id: fundamentals-v3
visibleInTopNav: true
visibleInTopNav: false
visibleInCourseIndex: true
visibleInCoursePage: true
squareImage: /ts-fundamentals-v3.png
Expand All @@ -14,8 +14,8 @@ courses:
use TypeScript to build a modern JavaScript app.
- name: "TypeScript Fundamentals v4"
id: fundamentals-v4
visibleInTopNav: false
visibleInCourseIndex: false
visibleInTopNav: true
visibleInCourseIndex: true
visibleInCoursePage: true
squareImage: /ts-fundamentals-v4.png
facebookImage: /fb-ts-fundamentals-v4.png
Expand Down Expand Up @@ -102,7 +102,7 @@ course_groups:
id: typescript-fundamentals
topNavOrder: 1
courseIndexOrder: 1
currentCourse: fundamentals-v3
currentCourse: fundamentals-v4
courses: [fundamentals-v3, fundamentals-v4]
- name: "Intermediate TypeScript"
id: intermediate-typescript
Expand Down
10 changes: 5 additions & 5 deletions packages/website/cypress/e2e/course-list/course-list.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ describe('course list page', () => {
cy.get('.course-summary').should('have.length', 4);
});

it('clicking TS-fundamentals v3 course link visits the course page', () => {
cy.contains('TypeScript Fundamentals v3').click();
it('clicking TS-fundamentals v4 course link visits the course page', () => {
cy.contains('TypeScript Fundamentals v4').click();
cy.location('href').should(
'include',
'course/fundamentals-v3',
'course/fundamentals-v4',
);
cy.get('h1').should(
'have.text',
'TypeScript Fundamentals v3',
'TypeScript Fundamentals v4',
);
cy.get('.course-article__title').should(
'have.length.at.least',
Expand Down Expand Up @@ -72,6 +72,6 @@ describe('course list page', () => {
it('course top nav has the correct courses', () => {
cy.get('.course-summary:nth-child(2) header h3 a').click();
cy.get('li.course-tab a').should("have.length", 4);
cy.get('li.course-tab a').should("contain.text", "TypeScript Fundamentals v3Intermediate TypeScript v1Making TypeScript StickFull Stack TypeScript");
cy.get('li.course-tab a').should("contain.text", "TypeScript Fundamentals v4Intermediate TypeScript v1Making TypeScript StickFull Stack TypeScript");
});
});

0 comments on commit fa23cc2

Please sign in to comment.