Skip to content

Commit 0927a89

Browse files
author
Matthew Mulholland
committed
Merge branch 'develop' of https://github.com/ODIQueensland/data-curator into develop
2 parents fdb20eb + a4c9bbb commit 0927a89

15 files changed

+111
-78
lines changed

test/features/.nav

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,12 @@
1414
- save-as-comma-separated-file.feature
1515
- save-as-tab-separated-file.feature
1616
- save-as-semi-colon-separated-file.feature
17-
- close-tab.feature
1817
- edit:
1918
- undo.feature
2019
- redo.feature
2120
- cut.feature
2221
- copy.feature
2322
- paste.feature
24-
- select-all.feature
2523
- insert-row-above.feature
2624
- insert-row-below.feature
2725
- insert-column-before.feature
@@ -32,8 +30,12 @@
3230
- find.feature
3331
- replace-in-column.feature
3432
- replace-in-table.feature
33+
- find:
34+
- find.feature
35+
- replace.feature
3536
- tools:
3637
- freeze-header-row.feature
38+
- case-sensitive-header-row.feature
3739
- guess-column-properties.feature
3840
- set-column-properties.feature
3941
- set-table-properties.feature
@@ -82,15 +84,12 @@
8284
- close-all-tabs.feature
8385
- print.feature
8486
- read-only-mode.feature
85-
- find.feature
8687
- data-quality-information.feature
8788
- sample-data-quality-information.md
8889
- set-view-properties.feature
8990
- export-closed-datapackage.feature
9091
- drafts:
9192
- save-all.feature
92-
- replace-in-table.feature
93-
- replace-in-column.feature
9493
- sort-column.feature
9594
- filter-column.feature
9695
- validate-as-you-type.feature
File renamed without changes.

test/features/data_curator/check-for-update.feature

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@backlog
2+
13
Feature: Check for update
24
As a Data Packager or Data Consumer
35
I want to update to the lastest version of the application

test/features/data_curator/set-preferences.feature

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@backlog
2+
13
Feature: Set Preferences
24
As a Data Packager
35
I want to set default values and behaviours

test/features/edit/replace-in-column.feature

Lines changed: 0 additions & 20 deletions
This file was deleted.

test/features/edit/replace-in-table.feature

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 7 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
@backlog
2-
3-
Feature: Find
1+
Feature: Find data
42
As a User
53
I want to find data within the current column or across the current table
6-
So that I can if/where the data exists
4+
So that I can determine if the data exists and correct it if necessary
75

86
"Find" can be invoked using a toolbar, menu item or keyboard shortcut
9-
"Find" can be dismissed by pressing a close button of keyboard shortcut
107
"Find next" and "Find previous" can be invoked using a using a menu item, button or keyboard shortcut
118

129
Rules:
@@ -17,37 +14,18 @@ Feature: Find
1714
- When "Find previous" is invoked but no values are found on reaching the start of the column/table, inform the user
1815

1916
Notes:
20-
- https://docs.handsontable.com/0.34.4/demo-searching.html
21-
22-
Scenario: Open Find
23-
Given I have opened Data Curator
24-
And the cursor is in a column
25-
When I invoke "Find"
26-
Then Show the Find panel
27-
And prompt for a value to find and search constraints
28-
29-
Scenario: Close Find
30-
Given I have opened Data Curator
31-
And I have opened the Find panel
32-
When I dismiss "Find"
33-
Then close the Find Panel
17+
- https://docs.handsontable.com/0.34.4/demo-searching.html
3418

3519
Scenario: Find next
3620
Given I have opened Data Curator
37-
And I have opened the Find panel
38-
And data tab is active
39-
And provided a value to search for and search constraints
21+
And provided a value to find and optionally search constraints
4022
When I invoke "Find next"
41-
Then find the next value after the current active cell that matches that value within the search constraints
23+
Then find the next value after the current active cell that matches that value and within the search constraints
4224
And highlight the found value
43-
And provide an information message
4425

4526
Scenario: Find previous
4627
Given I have opened Data Curator
47-
And I have opened the Find panel
48-
And a data tab is active
49-
And provided a value to search for and search constraints
28+
And provided a value to find for and search constraints
5029
When I invoke "Find previous"
51-
Then find the previous value before the current active cell that matches that value within the search constraints
30+
Then find the previous value before the current active cell that matches that value and within the search constraints
5231
And highlight the found value
53-
And provide an information message

test/features/find/replace.feature

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
Feature: Replace data
2+
As a Data Packager
3+
I want to replace one or more values that have been found
4+
So that I correct data errors quickly
5+
6+
Scenario: Replace in column
7+
Given I have opened Data Curator
8+
And I have found one or more values using the Find Next or Find Previous command
9+
And I have provided a replacement value
10+
When I select "Replace in column"
11+
Then replace the first value found in the column after the current cursor position with the replacement value
12+
13+
Scenario: Replace All in column
14+
Given I have opened Data Curator
15+
And I have found one or more values using the Find Next or Find Previous command
16+
And I have provided a replacement value
17+
When I select "Replace All in column" from the menu
18+
Then replace the all found values in the column with the replacement value
19+
20+
Scenario: Replace in table
21+
Given I have opened Data Curator
22+
And I have found one or more values using the Find Next or Find Previous command
23+
And I have provided a replacement value
24+
When I select "Replace in table"
25+
Then replace the first value found in the table after the current cursor position with the replacement value
26+
27+
Scenario: Replace All in table
28+
Given I have opened Data Curator
29+
And I have found one or more values using the Find Next or Find Previous command
30+
And I have provided a replacement value
31+
When I select "Replace All in table" from the menu
32+
Then replace the all found values in the table with the replacement value
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Feature: Set Case Sensitive Header Row
2+
As a Data Packager
3+
I want character case be considered in determining the uniqueness of the header row
4+
So that I have increased flexibility in naming column headers
5+
6+
Case Sensitive Header Row can be invoked by a checkbox menu item
7+
By default the menu item is unchecked
8+
9+
Scenario: Set Case Sensitive Header Row
10+
Given I have opened Data Curator
11+
When I invoke "Case Sensitive Header Row"
12+
Then check the menu item
13+
And consider case in determining the uniqueness of the header row
14+
And set the 'caseSensitiveHeader' in the CSV Dialect to 'true'
15+
16+
Scenario: Unset Case Sensitive Header Row
17+
Given I have opened Data Curator
18+
When I disable "Case Sensitive Header Row"
19+
Then uncheck the menu item
20+
And don't consider case in determining the uniqueness of the header row
21+
And set the 'caseSensitiveHeader' in the CSV Dialect to 'false'

test/features/tools/create-constraint-from-column.feature

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@backlog
2+
13
Feature: Create Constraint from Column
24
As a Data Packager
35
I want to find all unique values in a column of data

test/features/tools/create-lookup-table-from-column.feature

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@backlog
2+
13
Feature: Create Lookup Table from Column
24
As a Data Packager
35
I want to quickly make a look-up table

test/features/tools/freeze-header-row.feature renamed to test/features/tools/header-row.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Feature: Toggle Header Row
1+
Feature: Set Header Row
22
As a Data Packager
33
I want to freeze the header row (the first row)
44
So that the data is not included in "Sort Column" command

test/features/tools/validate-table.feature

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Feature: Validate Table
22
As a Data Packager
33
I want to validate the data for common errors and against the schema defined by the column properties
4-
So that I can correct errors and only share validated data with Data Consumers
4+
So that I can correct errors and share validated data with Data Consumers
55

66
The "Validate Table" command can be invoked using a menu item, toolbar button or keyboard shortcut
77

@@ -14,7 +14,7 @@ Feature: Validate Table
1414

1515
Schema validation checks include the:
1616
- data is the same 'type' and 'format' as defined in the column properties, ignoring 'missing values'
17-
- data conforms with the 'contraints'
17+
- data conforms with the 'constraints'
1818
- 'foreign key' relationships to one or more columns in:
1919
- the same table
2020
- the same data package
@@ -34,5 +34,40 @@ Feature: Validate Table
3434
Then assemble the Table Schema if avaliable from Column Properties
3535
And check for structural data errors
3636
And validate the data against the available schema
37-
And display error messages
37+
And display error messages in a panel
3838
And highlight errors in the relevant cells, rows or columns
39+
40+
Scenario: Pop out validation error messages
41+
Given I have Validated a Table
42+
And errors have been detected and displayed in a panel
43+
When I invoke the "Pop out validation error messages" command
44+
Then display the error messages in a table in a separate window
45+
And show a count of the number of errors detected
46+
And close the error message panel
47+
48+
Scenario: Sort validation error messages
49+
Given I have Validated a Table
50+
And errors have been detected and displayed error messages in a table in a separate window
51+
When I invoke the sort column command
52+
Then sort the error messages by that columns
53+
54+
Scenario: Filter validation error messages
55+
Given I have Validated a Table
56+
And errors have been detected and displayed error messages in a table in a separate window
57+
When I invoke the filter column command
58+
And provide a filter value(s)
59+
Then only display the error messages that meet the filter criteria
60+
61+
Scenario: Link to error cell
62+
Given I have Validated a Table
63+
And errors have been detected and displayed
64+
When I click the error message
65+
Then move the cursor to the associated cell in table
66+
67+
Scenario: Write residual error to provenance information
68+
Given I have Validated a Table
69+
And errors have been detected and displayed error messages in a table in a separate window
70+
When I invoke the "write errors to provenance information" command
71+
Then append a heading "### Known Data Errors" to the end of the provenance information
72+
And append a paragraph "This data is published with the following {count} data errors. Other errors may be present and could be detected after these errors are resolved." to the end of the provenance information
73+
And append each error message as a bullet item to the end of the provenance information

0 commit comments

Comments
 (0)