diff --git a/test/integration/courses.test.js b/test/integration/courses.test.js index 060c3c2..3a80a8b 100644 --- a/test/integration/courses.test.js +++ b/test/integration/courses.test.js @@ -11,7 +11,7 @@ describe('courses', () => { }) }) test('it should render a course', () => { - return request(app).get('/courses/hello-world') + return request(app).get('/courses/hello-contentful') .expect(200) .then((response) => { expect(response.text.match(/class="course__title"/)).toBeTruthy() @@ -22,7 +22,7 @@ describe('courses', () => { }) test('it should render a lesson', () => { - return request(app).get('/courses/hello-world/lessons/architecture') + return request(app).get('/courses/hello-contentful/lessons/architecture') .expect(200) .then((response) => { expect(response.text.match(/class="lesson__title"/)).toBeTruthy() diff --git a/test/integration/settings.test.js b/test/integration/settings.test.js index e55b7d2..f14c56c 100644 --- a/test/integration/settings.test.js +++ b/test/integration/settings.test.js @@ -27,7 +27,7 @@ describe('settings', () => { expect(title.text()).toBe('Settings') const status = $('main .status-block.status-block--info') - expect(status.text()).toMatch(/Connected to space “.+”/) + expect(status.text()).toMatch(/Connected space:/) const inputSpaceId = $('#input-space-id') expect(inputSpaceId.val()).toBe(process.env.CONTENTFUL_SPACE_ID)