diff --git a/.env.dist b/.env.dist index f155dc16e..f490d0c18 100644 --- a/.env.dist +++ b/.env.dist @@ -43,7 +43,7 @@ MEETUP_API_CONSUMER_SECRET= TECHNO_WATCH_CALENDAR_URL=https://docs.google.com/spreadsheets/d/2cUeAk86Ov7BLYyn0Ad9ge3ecbsdboeQH64wIU9a9Zzp/export?format=csv TECHNO_WATCH_CALENDAR_KEY=9Yt0feebMyMrUWx -SUPER_APERO_CSV_URL= +SUPER_APERO_CSV_URL=../tests/behat/files/super_apero.csv GOOGLE_ANALYTICS_ENABLED=false GOOGLE_ANALYTICS_ID=G-CHPWDR3C1M diff --git a/tests/behat/features/Admin/Site/AdminSiteArticles.feature b/tests/behat/features/Admin/Site/AdminSiteArticles.feature index 3a0b7b695..82f997d9e 100644 --- a/tests/behat/features/Admin/Site/AdminSiteArticles.feature +++ b/tests/behat/features/Admin/Site/AdminSiteArticles.feature @@ -69,3 +69,16 @@ Feature: Administration - Partie Site And I fill in "raccourci" with "un mauvais raccourci" And I press "Ajouter" Then I should see "Ne doit pas contenir d'espace" + + Scenario: Ajout d'un article avec des émojis + Given I am logged in as admin and on the Administration + And I follow "Articles" + When I follow "Ajouter" + And I fill in "titre" with "Le titre qui envoi 🚀" + And I fill in "contenu" with "Pour un contenu rigolo 🤣" + And I fill in "raccourci" with "url-article-emojis" + And I select "Actualités" from "id_site_rubrique" + And I select "9" from "position" + And I press "Ajouter" + When I should see "Liste des articles" + Then the ".content table" element should contain "Le titre qui envoi 🚀" diff --git a/tests/behat/features/PublicSite/SuperApero.feature b/tests/behat/features/PublicSite/SuperApero.feature new file mode 100644 index 000000000..87dc22d34 --- /dev/null +++ b/tests/behat/features/PublicSite/SuperApero.feature @@ -0,0 +1,9 @@ +Feature: Site Public - Super Apéro PHP + + @reloadDbWithTestData + Scenario: On accède à la page Super Apéro PHP + Given I am on "/super-apero" + Then the current URL should match "#/association/super-apero$#" + And the "#main h1" element should contain "Super-apéro PHP" + And the response should contain "Super Apéro PHP – Édition Spéciale" + And the response should contain "Super Apéro PHP chez WanadevDigital" diff --git a/tests/behat/files/super_apero.csv b/tests/behat/files/super_apero.csv new file mode 100644 index 000000000..818c82af4 --- /dev/null +++ b/tests/behat/files/super_apero.csv @@ -0,0 +1,2 @@ +poitiers,306320685,"🍻Super Apéro PHP – Édition Spéciale : ""Comment j’ai survécu dans l’écosystème tech"" ! 🎉" +lyon,306104038,🍻 Super Apéro PHP chez WanadevDigital 🥤 \ No newline at end of file