diff --git a/frontend/cypress/e2e/recipe-detail.cy.js b/frontend/cypress/e2e/recipe-detail.cy.js index bdda469..d3f474c 100644 --- a/frontend/cypress/e2e/recipe-detail.cy.js +++ b/frontend/cypress/e2e/recipe-detail.cy.js @@ -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', () => {