test preserved schedule start
This commit is contained in:
parent
db6b41ee42
commit
bcbc2e6ba3
3 changed files with 20 additions and 15 deletions
|
|
@ -249,10 +249,14 @@ const rescheduleSourceDetail = {
|
|||
const rescheduledDetail = {
|
||||
schedule: {
|
||||
...rescheduleSourceDetail.schedule,
|
||||
startDate: '2026-08-15',
|
||||
startDate: '2026-08-10',
|
||||
targetDate: '2026-08-16',
|
||||
days: [
|
||||
rescheduleSourceDetail.schedule.days[0],
|
||||
{ date: '2026-08-11', assignments: [] },
|
||||
{ date: '2026-08-12', assignments: [] },
|
||||
{ date: '2026-08-13', assignments: [] },
|
||||
{ date: '2026-08-14', assignments: [] },
|
||||
{
|
||||
date: '2026-08-15',
|
||||
assignments: [rescheduleSourceDetail.schedule.days[1]?.assignments[0]],
|
||||
|
|
@ -599,8 +603,8 @@ describe('set scheduling', () => {
|
|||
'have.text',
|
||||
'3 remaining assignments rescheduled.',
|
||||
)
|
||||
cy.contains('4 Chapter_sections-v2 assignments across 2 days').should('be.visible')
|
||||
cy.get('.schedule-range').should('contain.text', 'Aug 15, 2026 to Aug 16, 2026')
|
||||
cy.contains('4 Chapter_sections-v2 assignments across 7 days').should('be.visible')
|
||||
cy.get('.schedule-range').should('contain.text', 'Aug 10, 2026 to Aug 16, 2026')
|
||||
cy.get('[data-assignment-section="remaining"] [data-schedule-day]').then(($days) => {
|
||||
expect([...$days].map((day) => day.getAttribute('data-schedule-date'))).to.deep.equal([
|
||||
'2026-08-15',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue