Línea 34... |
Línea 34... |
34 |
|
34 |
|
35 |
Scenario: Change column sort direction in report
|
35 |
Scenario: Change column sort direction in report
|
36 |
Given I change window size to "large"
|
36 |
Given I change window size to "large"
|
37 |
And I click on "Show/hide 'Sorting'" "button"
|
37 |
And I click on "Show/hide 'Sorting'" "button"
|
38 |
When I click on "Enable initial sorting for column 'Last name'" "checkbox"
|
38 |
When I click on "Enable initial sorting for column 'Last name'" "checkbox"
|
39 |
And I click on "Sort column 'Last name' descending" "button"
|
39 |
And I click on "Change initial sorting for column 'Last name' to descending" "button"
|
40 |
Then I should see "Updated sorting for column 'Last name'"
|
40 |
Then I should see "Updated sorting for column 'Last name'"
|
41 |
And "user01" "table_row" should appear before "user02" "table_row"
|
41 |
And "user01" "table_row" should appear before "user02" "table_row"
|
42 |
And I click on "Sort column 'Last name' ascending" "button"
|
42 |
And I click on "Change initial sorting for column 'Last name' to ascending" "button"
|
43 |
And I should see "Updated sorting for column 'Last name'"
|
43 |
And I should see "Updated sorting for column 'Last name'"
|
Línea 44... |
Línea 44... |
44 |
And "user02" "table_row" should appear before "user01" "table_row"
|
44 |
And "user02" "table_row" should appear before "user01" "table_row"
|
45 |
|
45 |
|
Línea 61... |
Línea 61... |
61 |
When I click on "Enable initial sorting for column 'Full name'" "checkbox"
|
61 |
When I click on "Enable initial sorting for column 'Full name'" "checkbox"
|
62 |
Then I should see "Updated sorting for column 'Full name'"
|
62 |
Then I should see "Updated sorting for column 'Full name'"
|
63 |
# User1 = Alice Zebra; User2=Zoe Aardvark; User3 = Alice Badger.
|
63 |
# User1 = Alice Zebra; User2=Zoe Aardvark; User3 = Alice Badger.
|
64 |
And "user03" "table_row" should appear before "user01" "table_row"
|
64 |
And "user03" "table_row" should appear before "user01" "table_row"
|
65 |
And "user01" "table_row" should appear before "user02" "table_row"
|
65 |
And "user01" "table_row" should appear before "user02" "table_row"
|
66 |
And I click on "Sort column 'Full name' descending" "button"
|
66 |
And I click on "Change initial sorting for column 'Full name' to descending" "button"
|
67 |
And I should see "Updated sorting for column 'Full name'"
|
67 |
And I should see "Updated sorting for column 'Full name'"
|
68 |
And "user02" "table_row" should appear before "user01" "table_row"
|
68 |
And "user02" "table_row" should appear before "user01" "table_row"
|
69 |
And "user01" "table_row" should appear before "user03" "table_row"
|
69 |
And "user01" "table_row" should appear before "user03" "table_row"
|
Línea 70... |
Línea 70... |
70 |
|
70 |
|
Línea 76... |
Línea 76... |
76 |
Then "user02" "table_row" should appear before "user01" "table_row"
|
76 |
Then "user02" "table_row" should appear before "user01" "table_row"
|
77 |
# Switching to preview mode should observe report config.
|
77 |
# Switching to preview mode should observe report config.
|
78 |
And I click on "Switch to preview mode" "button"
|
78 |
And I click on "Switch to preview mode" "button"
|
79 |
And "user02" "table_row" should appear before "user01" "table_row"
|
79 |
And "user02" "table_row" should appear before "user01" "table_row"
|
80 |
# Custom sorting for the user.
|
80 |
# Custom sorting for the user.
|
81 |
And I click on "Sort by First name Ascending" "link"
|
81 |
And I click on "//a[@aria-label='Sort by First name ascending']" "xpath_element" in the "Users" "table"
|
82 |
And "user01" "table_row" should appear before "user02" "table_row"
|
82 |
And "user01" "table_row" should appear before "user02" "table_row"
|
83 |
# Switching back to edit mode should observe report config.
|
83 |
# Switching back to edit mode should observe report config.
|
84 |
And I click on "Switch to edit mode" "button"
|
84 |
And I click on "Switch to edit mode" "button"
|
85 |
And "user02" "table_row" should appear before "user01" "table_row"
|
85 |
And "user02" "table_row" should appear before "user01" "table_row"
|