Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test on techletter history #1114

Merged
merged 1 commit into from
Nov 16, 2021
Merged
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
21 changes: 21 additions & 0 deletions tests/behat/features/Admin/AdminVeilleHistorique.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Feature: Administration - Veille - Historique

@reloadDbWithTestData @test
Scenario: Accès à l'historique de la veille
Given I am logged in as admin and on the Administration
And I follow "Historique"
Then the ".content h2" element should contain "Historique"
And I should see 1 "thead > tr" elements
And I should see 16 "tbody > tr" elements
And I should see 9 "tbody > tr > td:contains('04/04/2018')" elements
And I should see 7 "tbody > tr > td:contains('18/04/2018')" elements
And I should see 9 "tbody > tr > td:contains('article')" elements
And I should see 7 "tbody > tr > td:contains('project')" elements
And I should see "04/04/2018" in the "tbody > tr:first-child > td:nth-child(1)" element
And I should see "article" in the "tbody > tr:first-child > td:nth-child(2)" element
And I should see "https://kevinsmith.io/modern-php-without-a-framework" in the "tbody > tr:first-child > td:nth-child(3) > a" element
And I should see "Modern PHP Without a Framework | Kevin Smith" in the "tbody > tr:first-child > td:nth-child(4)" element
And I should see "18/04/2018" in the "tbody > tr:last-child > td:nth-child(1)" element
And I should see "project" in the "tbody > tr:last-child > td:nth-child(2)" element
And I should see "https://github.com/tpunt/phactor" in the "tbody > tr:last-child > td:nth-child(3) > a" element
And I should see "tpunt/phactor" in the "tbody > tr:last-child > td:nth-child(4)" element