Slide 111
Slide 111 text
it('can fetch an album', function () {
const album = this.albums[0]
cy.request({
url: buildApiUrl(`/albums/${album.id}`),
headers: {
'Content-Type': 'application/json',
},
auth: { bearer: this.token },
})
.its('body')
.should('containSubset', {
id: album.id,
title: album.title,
artists: album.artists,
rating: 'NOT_RATED',
userReviews: [],
})
})