Skip to content

Commit

Permalink
[QOLSVC-6875] parameterise 'frequency' in resource freshness scenario…
Browse files Browse the repository at this point in the history
… test
  • Loading branch information
ThrawnCA committed Sep 19, 2024
1 parent c445aed commit 6cb6859
Showing 1 changed file with 7 additions and 33 deletions.
40 changes: 7 additions & 33 deletions test/features/resource_freshness.feature
Original file line number Diff line number Diff line change
Expand Up @@ -14,44 +14,18 @@ Feature: Resource freshness
| TestOrgAdmin |
| TestOrgEditor |

Scenario Outline: An editor, admin or sysadmin user, when I go to the dataset new page and select 'monthly' update frequency, then the text 'Next update due' should be visible
Scenario Outline: An editor, admin or sysadmin user, when I go to the dataset new page and select an update frequency, then the text 'Next update due' should be visible
Given "<User>" as the persona
When I log in
And I go to "/dataset/new"
And I select "monthly" from "update_frequency"
Then I should see "Next update due"

Examples: Users
| User |
| SysAdmin |
| TestOrgAdmin |
| TestOrgEditor |

Scenario Outline: An editor, admin or sysadmin user, when I go to the dataset new page and select 'biennially' update frequency, then the text 'Next update due' should be visible
Given "<User>" as the persona
When I log in
And I go to "/dataset/new"
And I select "biennially" from "update_frequency"
Then I should see "Next update due"

Examples: Users
| User |
| SysAdmin |
| TestOrgAdmin |
| TestOrgEditor |

Scenario Outline: An editor, admin or sysadmin user, when I go to the dataset new page and select 'quadrennially' update frequency, then the text 'Next update due' should be visible
Given "<User>" as the persona
When I log in
And I go to "/dataset/new"
And I select "quadrennially" from "update_frequency"
And I select "<Frequency>" from "update_frequency"
Then I should see "Next update due"

Examples: Users
| User |
| SysAdmin |
| TestOrgAdmin |
| TestOrgEditor |
Examples: Frequencies
| User | Frequency |
| SysAdmin | monthly |
| TestOrgAdmin | biennially |
| TestOrgEditor | quadrennially |

Scenario Outline: As a user with editing privileges, when I set a 'monthly' update frequently, I should still be able to update the dataset via the API
Given "<User>" as the persona
Expand Down

0 comments on commit 6cb6859

Please sign in to comment.