Skip to content

Commit

Permalink
refacto: create folders pages, fonctionnalites, recherche
Browse files Browse the repository at this point in the history
  • Loading branch information
rmonnier9 committed Jan 2, 2025
1 parent 00b20db commit ac69a5d
Show file tree
Hide file tree
Showing 25 changed files with 66 additions and 42 deletions.
14 changes: 0 additions & 14 deletions cypress/e2e/etablissement-scolaire.cy.js

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import routes from '#clients/routes';

describe('Annonces BODACC', () => {
describe('Annonces et observations', () => {
beforeEach(() => {
cy.intercept('GET', `${routes.bodacc.ods.search}*`, {
fixture: '../fixtures/bodacc.json',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
describe('Conventions supprimées', () => {
describe('Conventions collectives', () => {
it('Should work for valid companies', () => {
cy.visit('/divers/356000000');
cy.contains("Convention d'entreprise La Poste - France Télécom");
Expand Down
6 changes: 6 additions & 0 deletions cypress/e2e/pages/dirigeants.cy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
describe('Dirigeants', () => {
it('No dirigeant in partial diffusible (protected)', () => {
cy.visit(`/dirigeants/908595879`);
cy.contains('Données privées').should('have.length', 1);
});
});
7 changes: 7 additions & 0 deletions cypress/e2e/pages/documents.cy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
describe('Documents', () => {
it('Bouton agent connect sur les données protégées', () => {
cy.visit('/documents/487444697');
cy.contains('Réservé aux agents publics');
cy.contains('button', 'ProConnect');
});
});
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import routes from '#clients/routes';

describe('Bilans financiers', () => {
describe('Données financières', () => {
it('Should display Données financières section', () => {
cy.visit('/entreprise/487444697');
cy.contains('Données financières');
Expand Down
13 changes: 13 additions & 0 deletions cypress/e2e/pages/etablissement-scolaire.cy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
describe('Établissement scolaire', () => {
it('Should display service public and Établissement scolaire section', () => {
cy.visit('/entreprise/198100125');
cy.contains('Service public');
cy.contains('Établissements scolaires');
});
it("Should display info from annuaire de l'éducation nationale", () => {
cy.visit('/etablissements-scolaires/198100125');
cy.contains('Annuaire de l’Education Nationale');
cy.contains('N° UAI');
cy.contains('0810012Y'); // UAI
});
});
36 changes: 36 additions & 0 deletions cypress/e2e/pages/fiche-resume.cy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
describe('Non-diffusible', () => {
it('Should be non diffusible', () => {
cy.visit(`/entreprise/300025764`);
cy.contains('ne sont pas publiquement').should('have.length', 1);
});

it('Should be diffusible', () => {
cy.visit(`/entreprise/880878145`);
cy.contains('ne sont pas publiquement').should('have.length', 0);
});

describe('TVA validation', () => {
it(`should display the TVA number`, () => {
cy.visit(`/entreprise/842019051`);
cy.contains('FR43 842 019 051').should('have.length', 1);
});
it('TVA Non-assujettie', () => {
cy.visit(`/entreprise/883010316`).then(() => {
cy.contains('n° TVA valide');
});
cy.visit(`/entreprise/423208180`).then(() => {
cy.contains('n° TVA valide');
});
});
it('TVA link', () => {
cy.visit(`/entreprise/383657467`).then(() => {
cy.contains('n° TVA valide').click();
cy.url().should('include', '/definitions/tva-intracommunautaire');
0;
});
cy.visit(`/entreprise/217500016`).then(() => {
cy.contains('FR72 217 500 016').should('have.length', 1);
});
});
});
});
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
describe('Certifications', () => {
describe('Label et certificats', () => {
describe('QUALIBAT-RGE', () => {
it('Should display QUALIBAT-RGE', () => {
cy.visit(`/labels-certificats/843701079`);
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
24 changes: 0 additions & 24 deletions cypress/e2e/tva.cy.js

This file was deleted.

0 comments on commit ac69a5d

Please sign in to comment.