-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(PC-33502)[PRO] style: Adjust collective offer creation form styles
- Loading branch information
1 parent
4021a2e
commit fde68bc
Showing
26 changed files
with
274 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,17 +55,19 @@ describe('Create collective offers', () => { | |
|
||
cy.findByLabelText('Lieu *').select(venueName) | ||
|
||
cy.findByLabelText('Domaine artistique et culturel *').click() | ||
cy.findByLabelText('Ajoutez un ou plusieurs domaines artistiques *').click() | ||
|
||
cy.get('#list-domains').find('#option-display-2').click() | ||
cy.findByText('Type d’offre').click() | ||
cy.findByText('Quel est le type de votre offre ?').click() | ||
|
||
cy.findByLabelText('Format *').click() | ||
cy.findByLabelText('Ajoutez un ou plusieurs formats *').click() | ||
cy.get('#list-formats').find('#option-display-Concert').click() | ||
cy.findByText('Type d’offre').click() | ||
cy.findByText('Quel est le type de votre offre ?').click() | ||
|
||
cy.findByLabelText('Titre de l’offre *').type(newOfferName) | ||
cy.findByLabelText('Description *').type('Bookable draft offer') | ||
cy.findByLabelText( | ||
'Décrivez ici votre projet et son interêt pédagogique *' | ||
).type('Bookable draft offer') | ||
cy.findByText('Collège - 6e').click() | ||
cy.findByLabelText('Email *').type('[email protected]') | ||
cy.findByLabelText('Email auquel envoyer les notifications *').type( | ||
|
@@ -89,9 +91,9 @@ describe('Create collective offers', () => { | |
cy.get('#list-institution') | ||
.findByText(/COLLEGE 123/) | ||
.click() | ||
cy.findByText('Établissement scolaire et enseignant').click() | ||
cy.findByText("Renseignez l'établissement scolaire et l’enseignant").click() | ||
|
||
cy.findByText('Établissement scolaire et enseignant').click() | ||
cy.findByText("Renseignez l'établissement scolaire et l’enseignant").click() | ||
|
||
cy.findByText('Enregistrer et continuer').click() | ||
cy.findByText('Enregistrer et continuer').click() | ||
|
@@ -111,9 +113,36 @@ describe('Create collective offers', () => { | |
cy.wait('@collectiveOffers') | ||
|
||
const expectedResults = [ | ||
['', '', '', 'Titre', 'Date de l’évènement', 'Lieu', 'Établissement', 'Statut'], | ||
['', '', '', newOfferName, '10/05/202518h30', venueName, 'COLLEGE 123', 'brouillon'], | ||
['', '', '', offerDraft.name, 'Toute l’année scolaire', offerDraft.venueName, 'DE LA TOUR', 'brouillon'], | ||
[ | ||
'', | ||
'', | ||
'', | ||
'Titre', | ||
'Date de l’évènement', | ||
'Lieu', | ||
'Établissement', | ||
'Statut', | ||
], | ||
[ | ||
'', | ||
'', | ||
'', | ||
newOfferName, | ||
'10/05/202518h30', | ||
venueName, | ||
'COLLEGE 123', | ||
'brouillon', | ||
], | ||
[ | ||
'', | ||
'', | ||
'', | ||
offerDraft.name, | ||
'Toute l’année scolaire', | ||
offerDraft.venueName, | ||
'DE LA TOUR', | ||
'brouillon', | ||
], | ||
] | ||
|
||
expectOffersOrBookingsAreFound(expectedResults) | ||
|
@@ -138,8 +167,26 @@ describe('Create collective offers', () => { | |
cy.findByText('Rechercher').click() | ||
|
||
const expectedNewResults = [ | ||
['', '', '', 'Titre', 'Date de l’évènement', 'Lieu', 'Établissement', 'Statut'], | ||
['', '', '', newOfferName, '10/05/202518h30', venueName, 'COLLEGE 123', 'publiée'], | ||
[ | ||
'', | ||
'', | ||
'', | ||
'Titre', | ||
'Date de l’évènement', | ||
'Lieu', | ||
'Établissement', | ||
'Statut', | ||
], | ||
[ | ||
'', | ||
'', | ||
'', | ||
newOfferName, | ||
'10/05/202518h30', | ||
venueName, | ||
'COLLEGE 123', | ||
'publiée', | ||
], | ||
] | ||
|
||
expectOffersOrBookingsAreFound(expectedNewResults) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 12 additions & 1 deletion
13
...iveOffer/components/OfferEducational/OfferEducationalForm/FormDates/FormDates.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.