Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions htdocs/robots.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
12 changes: 12 additions & 0 deletions tests/behat/features/PublicSite/Robots.feature
Original file line number Diff line number Diff line change
@@ -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 "<sitemapindex"
Loading