test today's dashboard work
This commit is contained in:
parent
483ca6fc1d
commit
1c83eb1b84
5 changed files with 184 additions and 3 deletions
|
|
@ -17,6 +17,12 @@ describe('sets dashboard', () => {
|
|||
statusCode: 200,
|
||||
body: { schedules: [] },
|
||||
})
|
||||
cy.intercept('GET', '**/api/assignments?date=*', (request) => {
|
||||
request.reply({
|
||||
statusCode: 200,
|
||||
body: { date: request.query.date, assignments: [] },
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
it('shows every available set as a detail link', () => {
|
||||
|
|
@ -38,7 +44,7 @@ describe('sets dashboard', () => {
|
|||
cy.wait('@me')
|
||||
cy.wait('@sets')
|
||||
|
||||
cy.get('h1').should('have.text', 'Available sets')
|
||||
cy.get('#sets-heading').should('have.text', 'Available sets')
|
||||
cy.get('ul[aria-label="Available sets"] h2').then(($headings) => {
|
||||
expect([...$headings].map((heading) => heading.textContent)).to.deep.equal([
|
||||
'Bible',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue