Skip to content

BeforeAll Wrong! #1250

@LeohsPaixao

Description

@LeohsPaixao

Current behavior

image
image

'BeforeAll' of all other specs is running on a specific spec, where it contains only one 'BeforeAll'.

Desired behavior

Only the 'BeforeAll' of the specified spec runs in the tests.

Test code to reproduce

BeforeAll(() => {
  cy.login('######@####.com.br', '######');
  createProject().then((data) => {
    projectIdentifier = data.identificador;
  });
});

Given('[atividade] entrar na rota {string}', (route: string) => {
  cy.visitAndwait(`${route}/${projectIdentifier}`);
  cy.checkDomLoaded();
  atividades.validateVisibleAtividades();
});

Versions

  • Cypress version: 13.10.0
  • Preprocessor version: 20.0.5
  • Node version: 20.14

Checklist

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions