dev #2
@@ -59,16 +59,18 @@ describe('Recipe Detail - Editor (Admin)', () => {
|
||||
cy.get('.recipe-card', { timeout: 10000 }).should('have.length.gte', 1)
|
||||
})
|
||||
|
||||
it('shows editable ingredients table directly', () => {
|
||||
it('shows editable ingredients table in editor tab', () => {
|
||||
cy.get('.recipe-card').first().click()
|
||||
cy.wait(500)
|
||||
cy.get('.oil-select, .drops-input').should('exist')
|
||||
cy.contains('编辑').click()
|
||||
cy.get('.editor-select, .editor-drops').should('exist')
|
||||
})
|
||||
|
||||
it('shows add ingredient button', () => {
|
||||
it('shows add ingredient button in editor tab', () => {
|
||||
cy.get('.recipe-card').first().click()
|
||||
cy.wait(500)
|
||||
cy.contains('加精油').should('exist')
|
||||
cy.contains('编辑').click()
|
||||
cy.contains('添加精油').should('exist')
|
||||
})
|
||||
|
||||
it('shows export image button', () => {
|
||||
|
||||
Reference in New Issue
Block a user