Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Commit

Permalink
ISAICP-4618: Implement QA remarks.
Browse files Browse the repository at this point in the history
  • Loading branch information
idimopoulos committed Jul 2, 2018
1 parent 988ab19 commit 16246b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions tests/features/communities/tallinn/last_update.feature
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,19 @@ Feature:
| karma | moderator |

Scenario: Tallinn reports that have never been updated should not show last update date.
# Timestamp 1530529671 translates to 02-07-2018.
Given tallinn_report content:
| title | collection | created | changed |
| Romania Report | Tallinn Ministerial Declaration | 1530529671 | 1530529671 |
| Romania Report | Tallinn Ministerial Declaration | 02-07-2018 | 02-07-2018 |
When I am logged in as "karma"
And I go to the "Tallinn Ministerial Declaration" collection
And I click "Tallinn initiative" in the "Left sidebar" region
Then I should see the text "Last update: -" in the "Romania Report" tile
And I should not see the text "02/07/2018" in the "Romania Report" tile

Scenario: Tallinn reports that have been updated should show last update date.
# Timestamp 1530443270 translates to 01-07-2018, timestamp 1530529671 translates to 02-07-2018.
Given tallinn_report content:
| title | collection | created | changed |
| Romania Report | Tallinn Ministerial Declaration | 1530443270 | 1530529671 |
| Romania Report | Tallinn Ministerial Declaration | 01-07-2018 | 02-07-2018 |
When I am logged in as "karma"
And I go to the "Tallinn Ministerial Declaration" collection
And I click "Tallinn initiative" in the "Left sidebar" region
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
<h2 class="listing__title"><a href="{{ url }}">{{ label }}</a></h2>
{{ title_suffix }}
<h5 class="listing__subtitle listing__author">{{ author_name|striptags }}</h5>
<h5 class="listing__subtitle listing__date">Last update: {{ last_update }}</h5>
<h5 class="listing__subtitle listing__date">{{ "Last update"|t }}: {{ last_update }}</h5>
</div>
<div class="listing__field">
<p class="listing__teaser">{{ content.body|render|striptags('<a>')|raw }}</p>
Expand Down

0 comments on commit 16246b0

Please sign in to comment.