split schedule progress
This commit is contained in:
parent
ea74ce545e
commit
ccc78bf38f
3 changed files with 626 additions and 236 deletions
|
|
@ -236,10 +236,8 @@ describe('set scheduling', () => {
|
|||
'contain.text',
|
||||
'Exodus / Shemot / Chapter 1',
|
||||
)
|
||||
cy.get('[data-assignment-section="completed"]')
|
||||
.should('not.have.attr', 'open')
|
||||
.find('summary')
|
||||
.click()
|
||||
cy.get('[data-assignment-section="completed"]').should('not.have.attr', 'open')
|
||||
cy.get('[data-assignment-section="completed"] summary').click()
|
||||
cy.get('[data-assignment-section="completed"]').should(
|
||||
'contain.text',
|
||||
'No assignments completed yet.',
|
||||
|
|
@ -342,26 +340,29 @@ describe('set scheduling', () => {
|
|||
cy.get('[data-schedule-date="2026-08-13"]').should('not.exist')
|
||||
})
|
||||
|
||||
cy.get('[data-assignment-section="completed"]')
|
||||
.should('have.attr', 'data-assignment-count', '2')
|
||||
.and('not.have.attr', 'open')
|
||||
.within(() => {
|
||||
cy.get('summary').should('contain.text', 'Completed').click()
|
||||
cy.get('[data-schedule-day]').then(($days) => {
|
||||
expect([...$days].map((day) => day.getAttribute('data-schedule-date'))).to.deep.equal([
|
||||
'2026-08-12',
|
||||
'2026-08-13',
|
||||
])
|
||||
})
|
||||
cy.get('[data-schedule-date="2026-08-12"]')
|
||||
.should('contain.text', 'Exodus / Shemot / Chapter 1')
|
||||
.and('not.contain.text', 'Leviticus / Vayikra / Chapter 1')
|
||||
cy.get('[data-schedule-date="2026-08-13"]').should(
|
||||
'contain.text',
|
||||
'Numbers / Bamidbar / Chapter 1',
|
||||
)
|
||||
cy.contains('Rest day').should('not.exist')
|
||||
cy.get('[data-assignment-section="completed"]').should(
|
||||
'have.attr',
|
||||
'data-assignment-count',
|
||||
'2',
|
||||
)
|
||||
cy.get('[data-assignment-section="completed"]').should('not.have.attr', 'open')
|
||||
cy.get('[data-assignment-section="completed"]').within(() => {
|
||||
cy.get('summary').should('contain.text', 'Completed').click()
|
||||
cy.get('[data-schedule-day]').then(($days) => {
|
||||
expect([...$days].map((day) => day.getAttribute('data-schedule-date'))).to.deep.equal([
|
||||
'2026-08-12',
|
||||
'2026-08-13',
|
||||
])
|
||||
})
|
||||
cy.get('[data-schedule-date="2026-08-12"]')
|
||||
.should('contain.text', 'Exodus / Shemot / Chapter 1')
|
||||
.and('not.contain.text', 'Leviticus / Vayikra / Chapter 1')
|
||||
cy.get('[data-schedule-date="2026-08-13"]').should(
|
||||
'contain.text',
|
||||
'Numbers / Bamidbar / Chapter 1',
|
||||
)
|
||||
cy.contains('Rest day').should('not.exist')
|
||||
})
|
||||
|
||||
cy.viewport(375, 667)
|
||||
cy.document().then((document) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue