Skip to content

Commit

Permalink
fix cypress test
Browse files Browse the repository at this point in the history
  • Loading branch information
callemand committed Sep 27, 2023
1 parent 020d22e commit 6012c3d
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions front/cypress/e2e/routes/scene/Scene.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,25 @@ describe('Scene view', () => {

cy.url().should('eq', `${Cypress.config().baseUrl}/dashboard/scene/my-scene`);
});
it('Should edit the scene description', () => {
it('Should edit the scene settings', () => {
cy.visit('/dashboard/scene/my-scene');

cy.contains('editScene.settings')
cy.get('div[class*="card-header"]')
.contains('editScene.settings')
.should('have.class', 'card-title')
.click();

cy.contains('editScene.editDescriptionPlaceholder').click();
cy.get('input[class*="form-control"]').then(inputs => {
cy.wrap(inputs[0])
.clear()
.type('My scene name');
cy.wrap(inputs[1]).type('My scene description');
});

cy.get('input:visible').then(inputs => {
// Zone name
cy.wrap(inputs[0]).type('My scene description');
cy.get('input[class*="rti--input"]').then(inputs => {
cy.wrap(inputs[0])
.type('My tag 1')
.type('{enter}');
});

// I don't know why, but I'm unable to get this button with
Expand Down

0 comments on commit 6012c3d

Please sign in to comment.