test(integration): adjust for new content and settings

This commit is contained in:
Benedikt Rötsch
2017-12-14 15:04:49 +01:00
committed by Khaled Garbaya
parent e5a8828aa1
commit 60a94f0b1e
2 changed files with 3 additions and 3 deletions

View File

@@ -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()

View File

@@ -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)