test set layout browsing
This commit is contained in:
parent
936855efab
commit
eb7ac7d261
8 changed files with 619 additions and 3 deletions
|
|
@ -15,7 +15,7 @@ describe('sets dashboard', () => {
|
|||
interceptAuthenticatedUser()
|
||||
})
|
||||
|
||||
it('shows every available set by name', () => {
|
||||
it('shows every available set as a detail link', () => {
|
||||
cy.intercept('GET', '**/api/sets', (request) => {
|
||||
expect(request.headers.accept).to.equal('application/json')
|
||||
request.reply({
|
||||
|
|
@ -46,8 +46,13 @@ describe('sets dashboard', () => {
|
|||
.should('not.contain.text', '41')
|
||||
.and('not.contain.text', '58')
|
||||
.and('not.contain.text', '92')
|
||||
.find('a, button')
|
||||
.should('not.exist')
|
||||
cy.contains('a', 'Bible').should('have.attr', 'href', '/sets/41')
|
||||
cy.contains('a', 'Course').should('have.attr', 'href', '/sets/58')
|
||||
cy.contains('a', 'Fitness Program').should(
|
||||
'have.attr',
|
||||
'href',
|
||||
'/sets/92',
|
||||
)
|
||||
})
|
||||
|
||||
it('shows loading and empty catalog states', () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue