|
Current situation or problem: Users want to use an existing list as a starting place to create a new list. This will allowing for quick list creations/variations without having to build the query from scratch.
In scope
- Duplicate a canned list
- Duplicate a user created list
- New list is prepopulated with select fields from source list
- New list query is prepopulated with query from source list
- Duplicated list can be saved without edits
- Duplicated list can be saved with edits
Out of scope
- Duplicating more than one list at a time
Mockups: attached
Scenario: Duplicate appears in actions menu
Given a user on the detail page for list 1
When the user selects the actions button
Then an option for 'Duplicate' exits
Scenario: Duplicate action takes you to new list screen with some fields prepopulated
Given a user clicked 'Duplicate' from the detail page for list 1
When the 'new list' screen loads
Then the new list is prepopulated with the following values from list 1:
List name, List description, List query, Visibility
But the following fields come from the new list, and are not prepopulated:
Source, created timestamp
Scenario: New list from duplicate has query prepopulated
Given a user clicked 'Duplicate' from the detail page for list 1
And the 'new list' screen loads
When the user clicks on the 'Edit query' button
Then the query builder is prepopulated with the query from list 1
Scenario: Query can be edited
Given a user clicked 'Duplicate' from the detail page for list 1
And the 'new list' screen loads
And the user clicks on the 'Edit query' button
When the query builder is prepopulated with the query from list 1
Then the user can take the following actions with the following results:
| Action |
Results |
| Modify query - Test query - Run query & save |
List is saved with modified query |
| Modify query - Test query - Cancel |
User is returned to new list screen with query from list 1 |
| Modify query - Cancel |
User is returned to new list screen with query from list 1 |
Scenario: Duplicate list is saved with no edits
Given a user duplicates list 1
And no edits are made on the New list page
When the user clicks save
Then a new list is created
And it has the same name, description, query and Visibility as list 1
And the source is the user who duplicated the list
And the created timestamp is when the new list was created
Scenario: Duplicate list is saved with edits
Given a user duplicates list 1
And edits are made on the New list page
When the user clicks save
Then a new list is created
And it has the edited name, description, query and Visibility
And the source is the user who duplicated the list
And the created timestamp is when the new list was created
And list 1 is not modified
|