diff --git a/htdocs/robots.txt b/htdocs/robots.txt index 63f086d2b..33c06ffa1 100644 --- a/htdocs/robots.txt +++ b/htdocs/robots.txt @@ -1,3 +1,5 @@ +Sitemap: https://afup.org/sitemap.xml + # OpenAI’s web crawler: GPT3.5, GPT4, ChatGPT # https://platform.openai.com/docs/bots User-agent: GPTBot diff --git a/tests/behat/features/PublicSite/Robots.feature b/tests/behat/features/PublicSite/Robots.feature new file mode 100644 index 000000000..b7eb6e5ec --- /dev/null +++ b/tests/behat/features/PublicSite/Robots.feature @@ -0,0 +1,12 @@ +Feature: Site Public - robots.txt + + Scenario: Le robots.txt déclare le sitemap + Given I am on "/robots.txt" + Then the response status code should be 200 + And the response should contain "Sitemap: https://afup.org/sitemap.xml" + + @reloadDbWithTestData + Scenario: Le sitemap déclaré dans le robots.txt est un index de sitemaps + Given I am on "/sitemap.xml" + Then the response status code should be 200 + And the response should contain "