Skip to content

Commit

Permalink
fix: temporarly deactivate test agents
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierJp committed Jun 26, 2024
1 parent 0a21766 commit d79e7a2
Showing 1 changed file with 30 additions and 28 deletions.
58 changes: 30 additions & 28 deletions cypress/e2e/espace-agent.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,37 +28,39 @@ describe(
cy.contains('button', 'AgentConnect');
});

it('Connexion', () => {
cy.visit(`/lp/agent-public`);
cy.contains('button', 'AgentConnect').click();
cy.origin('fca.integ01.dev-agentconnect.fr', () => {
cy.get('input[type="email"]').clear().type('[email protected]');
cy.contains('button', 'Se connecter').click();
});
// it('Connexion', () => {
// cy.visit(`/lp/agent-public`);
// cy.contains('button', 'AgentConnect').click();
// cy.origin('fca.integ01.dev-agentconnect.fr', () => {
// cy.get('input[type="email"]').clear().type('[email protected]');
// cy.contains('button', 'Se connecter').click();
// });

cy.origin('app-sandbox.moncomptepro.beta.gouv.fr', () => {
cy.contains('Renseignez votre mot de passe');
cy.get('input[type="password"]').type('[email protected]');
cy.contains('button', 'S’identifier').click();
cy.contains('DINUM').click();
});
// cy.origin('app-sandbox.moncomptepro.beta.gouv.fr', () => {
// cy.contains('Renseignez votre mot de passe');
// cy.get('input[type="password"]').type('[email protected]');
// cy.contains('button', 'S’identifier').click();
// cy.contains('DINUM').click();
// });

cy.visit('/');
cy.contains('[email protected]');
});
// cy.location().should((loc) => {
// expect(loc.pathname).to.eq('/');
// });
// cy.contains('[email protected]');
// });

it('Actes et statuts accessibles', () => {
cy.visit('/documents/487444697');
cy.contains('Actes et statuts');
cy.contains(/Cette entreprise possède [\d]+ document\(s\) au RNE/);
});
// it('Actes et statuts accessibles', () => {
// cy.visit('/documents/487444697');
// cy.contains('Actes et statuts');
// cy.contains(/Cette entreprise possède [\d]+ document\(s\) au RNE/);
// });

it('Bilans accessibles', () => {
cy.visit('/donnees-financieres/487444697');
cy.contains('Bilans');
cy.contains(
/Cette entreprise possède [\d]+ bilan\(s\) déposé\(s\) au RNE/
);
});
// it('Bilans accessibles', () => {
// cy.visit('/donnees-financieres/487444697');
// cy.contains('Bilans');
// cy.contains(
// /Cette entreprise possède [\d]+ bilan\(s\) déposé\(s\) au RNE/
// );
// });
}
);

0 comments on commit d79e7a2

Please sign in to comment.