display user kinds verbatim

This commit is contained in:
Yisroel Baum 2026-08-14 09:54:43 +03:00
parent 2101ab50d2
commit 74feb38300
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
5 changed files with 28 additions and 50 deletions

View file

@ -139,7 +139,7 @@ describe('set scheduling', () => {
cy.get('h1').should('have.text', 'Schedule Bible')
cy.get('#schedule-level option').then(($options) => {
expect([...$options].map((option) => option.textContent?.trim())).to.deep.equal(
['Choose a level', 'Book (2)', 'Portion (2)', 'Chapter_sections-v2 (2)'],
['Choose a level', 'book (2)', 'portion (2)', 'Chapter_sections-v2 (2)'],
)
})
cy.get('#schedule-level').select('3')
@ -155,6 +155,7 @@ describe('set scheduling', () => {
.should('contain.text', 'Genesis / Creation / Chapter 1')
.find('.assignment-kind')
.should('have.text', 'Chapter_sections-v2')
.and('have.css', 'text-transform', 'none')
cy.get('[data-schedule-date="2026-08-11"]')
.should('contain.text', 'Rest day')
.and('not.contain.text', 'Chapter 1')
@ -208,7 +209,10 @@ describe('set scheduling', () => {
cy.wait('@me')
cy.wait('@schedule')
cy.get('h1').should('have.text', 'Bible schedule')
cy.get('.eyebrow').should('have.text', 'Chapter_sections-v2 plan')
cy.get('.eyebrow')
.should('have.text', 'Chapter_sections-v2 plan')
.find('.schedule-kind')
.should('have.css', 'text-transform', 'none')
cy.contains('2 Chapter_sections-v2 assignments across 3 days').should('be.visible')
cy.intercept('GET', '**/api/schedules/74', {
@ -253,7 +257,9 @@ describe('set scheduling', () => {
cy.get('ul[aria-label="Your schedules"]')
.should('contain.text', 'Bible')
.and('contain.text', '2 assignments')
cy.get('.schedule-card__heading p').should('have.text', 'Chapter_sections-v2')
cy.get('.schedule-card__heading p')
.should('have.text', 'Chapter_sections-v2')
.and('have.css', 'text-transform', 'none')
cy.contains('a', 'Bible').should('have.attr', 'href', '/schedules/73')
})
})