@datagrok/hit-triage 1.10.9 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.grokignore +2 -0
- package/.turbo/turbo-build.log +25 -3
- package/CHANGELOG.md +78 -0
- package/CLAUDE.md +87 -10
- package/README_HD.md +14 -14
- package/README_HT.md +6 -6
- package/README_PH.md +110 -0
- package/bdd/bdd.config.json +3 -1
- package/bdd/bindings/campaign.ts +626 -0
- package/bdd/bindings/hit-design.ts +36 -42
- package/bdd/bindings/landing.ts +839 -0
- package/bdd/bindings/pepti-hit.ts +35 -0
- package/bdd/features/campaign/crumbs.feature +22 -0
- package/bdd/features/campaign/grid.feature +56 -0
- package/bdd/features/campaign/merge.feature +105 -0
- package/bdd/features/campaign/molecule-vid.feature +40 -0
- package/bdd/features/campaign/permissions.feature +46 -0
- package/bdd/features/campaign/progress-tracker.feature +89 -0
- package/bdd/features/campaign/refresh-hint.feature +33 -0
- package/bdd/features/campaign/ribbon.feature +49 -0
- package/bdd/features/campaign/stage-choices.feature +39 -0
- package/bdd/features/campaign/submit.feature +135 -0
- package/bdd/features/campaign/tracker-cards.feature +46 -0
- package/bdd/features/campaign/view-only.feature +37 -0
- package/bdd/features/landing/campaign-deep-links.feature +61 -0
- package/bdd/features/landing/hit-design-campaigns-fixes.feature +116 -0
- package/bdd/features/landing/hit-design-campaigns.feature +153 -0
- package/bdd/features/landing/hit-triage-campaigns.feature +99 -0
- package/bdd/features/landing/new-campaign.feature +69 -0
- package/bdd/features/landing/pep-triage-campaigns.feature +41 -0
- package/bdd/features/landing/pepti-hit-landing.feature +132 -0
- package/bdd/features/pepti-hit/helm-edit.feature +47 -0
- package/bdd/features/templates/template-editor.feature +130 -0
- package/bdd/features/templates/template-picker.feature +112 -0
- package/bdd/features/templates/triage-forms.feature +59 -0
- package/bdd/fixtures/bar-chart.layout +1 -0
- package/bdd/fixtures/merge-local.csv +2 -0
- package/bdd/generated/campaign/crumbs.test.ts +33 -0
- package/bdd/generated/campaign/grid.test.ts +79 -0
- package/bdd/generated/campaign/merge.test.ts +134 -0
- package/bdd/generated/campaign/molecule-vid.test.ts +52 -0
- package/bdd/generated/campaign/permissions.test.ts +58 -0
- package/bdd/generated/campaign/progress-tracker.test.ts +129 -0
- package/bdd/generated/campaign/refresh-hint.test.ts +44 -0
- package/bdd/generated/campaign/ribbon.test.ts +65 -0
- package/bdd/generated/campaign/stage-choices.test.ts +55 -0
- package/bdd/generated/campaign/submit.test.ts +167 -0
- package/bdd/generated/campaign/tracker-cards.test.ts +49 -0
- package/bdd/generated/campaign/view-only.test.ts +51 -0
- package/bdd/generated/hit-design/campaign-column-metadata.test.ts +1 -0
- package/bdd/generated/landing/campaign-deep-links.test.ts +68 -0
- package/bdd/generated/landing/hit-design-campaigns-fixes.test.ts +99 -0
- package/bdd/generated/landing/hit-design-campaigns.test.ts +160 -0
- package/bdd/generated/landing/hit-triage-campaigns.test.ts +107 -0
- package/bdd/generated/landing/new-campaign.test.ts +78 -0
- package/bdd/generated/landing/pep-triage-campaigns.test.ts +52 -0
- package/bdd/generated/landing/pepti-hit-landing.test.ts +130 -0
- package/bdd/generated/pepti-hit/helm-edit.test.ts +64 -0
- package/bdd/generated/templates/template-editor.test.ts +137 -0
- package/bdd/generated/templates/template-picker.test.ts +119 -0
- package/bdd/generated/templates/triage-forms.test.ts +68 -0
- package/css/hit-triage.css +27 -23
- package/dist/package-test.js +690 -4
- package/dist/package-test.js.map +1 -1
- package/dist/package.js +318 -73
- package/dist/package.js.map +1 -1
- package/package.json +11 -7
- package/queries/locks.sql +37 -0
- package/src/app/accordeons/layout-input.ts +52 -44
- package/src/app/accordeons/new-campaign-accordeon.ts +91 -54
- package/src/app/accordeons/new-hit-design-campaign-accordeon.ts +3 -67
- package/src/app/accordeons/new-pep-triage-template-accordeon.ts +39 -41
- package/src/app/accordeons/new-template-accordeon.ts +41 -24
- package/src/app/ai/view-functions.ts +22 -19
- package/src/app/base-view.ts +99 -8
- package/src/app/consts.ts +8 -5
- package/src/app/dialogs/functions-dialog.ts +14 -9
- package/src/app/dialogs/merge-table-dialog.ts +181 -325
- package/src/app/hit-app-base.ts +61 -90
- package/src/app/hit-design-app.ts +481 -886
- package/src/app/hit-design-views/info-view.ts +57 -407
- package/src/app/hit-design-views/submit-view.ts +216 -111
- package/src/app/hit-design-views/tiles-view.ts +168 -123
- package/src/app/hit-design-views/utils.css +0 -8
- package/src/app/hit-triage-app.ts +69 -38
- package/src/app/hit-triage-views/info-view.ts +70 -371
- package/src/app/pep-triage-app.ts +2 -2
- package/src/app/pep-triage-views/info-view.ts +42 -83
- package/src/app/pepti-hit-app.ts +32 -183
- package/src/app/pepti-hits-views/info-view.ts +15 -37
- package/src/app/shared/campaign-catalog.ts +408 -0
- package/src/app/shared/campaign-session.ts +557 -0
- package/src/app/shared/compute-editor.ts +274 -0
- package/src/app/shared/hit-home.ts +45 -0
- package/src/app/shared/new-campaign-form.ts +90 -0
- package/src/app/shared/permissions-editor.ts +93 -0
- package/src/app/shared/template-editor.ts +331 -0
- package/src/app/shared/template-picker.ts +154 -0
- package/src/app/utils/merge-table.ts +183 -78
- package/src/app/utils.ts +34 -325
- package/src/package-api.ts +29 -8
- package/src/package-test.ts +17 -2
- package/src/package.g.ts +12 -8
- package/src/package.ts +19 -7
- package/src/tests/ai.ts +244 -0
- package/src/tests/campaign-layout.ts +82 -0
- package/src/tests/campaign-session.ts +168 -0
- package/src/tests/campaigns.ts +23 -0
- package/src/tests/catalog.ts +156 -0
- package/src/tests/compat.ts +482 -0
- package/src/tests/compute.ts +165 -0
- package/src/tests/fixtures.ts +359 -0
- package/src/tests/merge.ts +149 -0
- package/src/tests/owners.ts +11 -0
- package/src/tests/save-lock.ts +932 -0
- package/src/tests/storage.ts +106 -0
- package/src/tests/template-editor.ts +538 -0
- package/src/tests/templates.ts +143 -0
- package/src/tests/triage-start.ts +81 -0
- package/src/tests/u2-guards.ts +384 -0
- package/src/tests/vid.ts +77 -0
- package/src/app/accordeons/new-hit-design-template-accordeon.ts +0 -238
- package/src/app/dialogs/permissions-dialog.ts +0 -66
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
Feature: The Submit dialog of a Hit Design campaign
|
|
2
|
+
"Submit..." opens the Submit dialog: a summary of the campaign as read-only rows (Name, Code, Template, File Path,
|
|
3
|
+
the author and the last editor when the campaign has them, Create Date, every campaign field, Number of Molecules,
|
|
4
|
+
Enrichment Methods, which names the compute by its friendly name), the Status with suggestions of the statuses
|
|
5
|
+
campaigns already have that contain what is typed, and the Submit function, preset from the template. Save stores
|
|
6
|
+
the status with the balloon "Campaign saved successfully."; Submit calls the function with the campaign's rows,
|
|
7
|
+
then saves, with "Submitted successfully." — the package's Demo File Submit shows the row count and the molecule
|
|
8
|
+
column's name as balloons of its own. Submit is disabled with "Choose a submit function" while none is chosen.
|
|
9
|
+
CANCEL closes the dialog.
|
|
10
|
+
|
|
11
|
+
Name and File Path are edited in place: the pencil opens the value with Save and Cancel (✓ ✕; Enter and Escape
|
|
12
|
+
alike), a problem shows under the field, and the download icon saves the rows. The File Path value is claimed by its
|
|
13
|
+
beginning. A Molecule field shows its structure as the row's value, the row as tall as the picture.
|
|
14
|
+
|
|
15
|
+
The campaign is made for the feature through the JS API and opened by its link (bindings/campaign.ts); it has no
|
|
16
|
+
author yet, so the summary has no Author row. The suggestions draw on every campaign the landing listed: "In
|
|
17
|
+
Progress" is this campaign's own status, and the package's shipped demo campaigns'.
|
|
18
|
+
|
|
19
|
+
Background:
|
|
20
|
+
Given user is logged in
|
|
21
|
+
And the Hit Design campaign "BDD Submit" with the stages "Idea, Design", the molecule field "Reference compound" set to "c1ccc2[nH]ccc2c1" and a table of:
|
|
22
|
+
| Molecule | Stage | V-iD | MW |
|
|
23
|
+
| CCO | Idea | | 46.07 |
|
|
24
|
+
| CCN | Idea | | 45.08 |
|
|
25
|
+
When user opens the campaign "BDD Submit" by its link
|
|
26
|
+
And user clicks on "Submit..." button in toolbar
|
|
27
|
+
Then "Submit" dialog should be visible
|
|
28
|
+
|
|
29
|
+
Scenario: The summary lists the campaign's keys in order, and CANCEL closes the dialog
|
|
30
|
+
Then the summary in "Submit" dialog should be:
|
|
31
|
+
| Name | BDD Submit |
|
|
32
|
+
| Code | BDDBDDSUBMIT-1 |
|
|
33
|
+
| Template | BDD Submit |
|
|
34
|
+
| File Path | System.AppData/HitTriage/Hit Design/campaigns… |
|
|
35
|
+
| Create Date | 2026/10/15 |
|
|
36
|
+
| Chemist | BDD chemist |
|
|
37
|
+
| Reference compound | * |
|
|
38
|
+
| Number of Molecules | 2 |
|
|
39
|
+
| Enrichment Methods | * |
|
|
40
|
+
And "Status" input in "Submit" dialog should have value "In Progress"
|
|
41
|
+
And "Submit function" input in "Submit" dialog should have value "Demo File Submit"
|
|
42
|
+
And CANCEL button in "Submit" dialog should be enabled
|
|
43
|
+
When user clicks on CANCEL button in "Submit" dialog
|
|
44
|
+
Then "Submit" dialog should be absent
|
|
45
|
+
|
|
46
|
+
Scenario: The status suggests the statuses campaigns already have, and Save stores it with a balloon
|
|
47
|
+
When user clears "Status" input in "Submit" dialog
|
|
48
|
+
And user types "Progr" into "Status" input in "Submit" dialog
|
|
49
|
+
Then "Status" input in "Submit" dialog should suggest "In Progress"
|
|
50
|
+
When user takes the suggestion "In Progress" of "Status" input in "Submit" dialog
|
|
51
|
+
Then "Status" input in "Submit" dialog should have value "In Progress"
|
|
52
|
+
When user clears "Status" input in "Submit" dialog
|
|
53
|
+
And user types "BDD reviewed" into "Status" input in "Submit" dialog
|
|
54
|
+
And user clicks on Save button in "Submit" dialog
|
|
55
|
+
Then "Submit" dialog should be absent
|
|
56
|
+
And an info balloon containing "Campaign saved successfully" should have been shown
|
|
57
|
+
And the campaign "BDD Submit" should be saved with the status "BDD reviewed"
|
|
58
|
+
|
|
59
|
+
Scenario: Submit calls the demo submit function with the campaign's rows, saves the status and says so
|
|
60
|
+
When user clears "Status" input in "Submit" dialog
|
|
61
|
+
And user types "Submitted" into "Status" input in "Submit" dialog
|
|
62
|
+
And user clicks on Submit button in "Submit" dialog
|
|
63
|
+
Then "Submit" dialog should be absent
|
|
64
|
+
And an info balloon containing "Submitted successfully" should have been shown
|
|
65
|
+
And an info balloon containing "Campaign saved successfully" should have been shown
|
|
66
|
+
And an info balloon containing "Molecule" should have been shown
|
|
67
|
+
And the campaign "BDD Submit" should be saved with the status "Submitted"
|
|
68
|
+
|
|
69
|
+
Scenario: Without a submit function Submit stays, disabled, saying why
|
|
70
|
+
When user selects "" in "Submit function" input in "Submit" dialog
|
|
71
|
+
Then Save button in "Submit" dialog should be enabled
|
|
72
|
+
And Submit button in "Submit" dialog should be disabled
|
|
73
|
+
And "Submit" dialog should contain text "Choose a submit function"
|
|
74
|
+
When user selects "Demo File Submit" in "Submit function" input in "Submit" dialog
|
|
75
|
+
Then Submit button in "Submit" dialog should be enabled
|
|
76
|
+
|
|
77
|
+
Scenario: Enrichment Methods names the template's compute by its friendly name
|
|
78
|
+
Then the summary in "Submit" dialog should be:
|
|
79
|
+
| Name | * |
|
|
80
|
+
| Code | * |
|
|
81
|
+
| Template | * |
|
|
82
|
+
| File Path | * |
|
|
83
|
+
| Create Date | * |
|
|
84
|
+
| Chemist | * |
|
|
85
|
+
| Reference compound | * |
|
|
86
|
+
| Number of Molecules | * |
|
|
87
|
+
| Enrichment Methods | Chemical Properties |
|
|
88
|
+
|
|
89
|
+
Scenario: A Molecule field shows its structure in the value column, on a row as tall as the picture
|
|
90
|
+
Then the structure of the "Reference compound" row in "Submit" dialog should sit in the value column of its row
|
|
91
|
+
And "Reference compound" input in "Submit" dialog should not overlap "Number of Molecules" input in "Submit" dialog
|
|
92
|
+
|
|
93
|
+
# an option of a read-only input still works
|
|
94
|
+
Scenario: The pencil opens the name; Escape and Cancel put it back, an empty name is refused under it
|
|
95
|
+
Then "Name" input in "Submit" dialog should be read-only
|
|
96
|
+
When user clicks on "Edit Campaign Name" icon in "Submit" dialog
|
|
97
|
+
Then "Name" input in "Submit" dialog should be editable
|
|
98
|
+
And "Name" input in "Submit" dialog should be focused
|
|
99
|
+
When user types "BDD Submit renamed" into "Name" input in "Submit" dialog
|
|
100
|
+
And user presses Escape in "Name" input in "Submit" dialog
|
|
101
|
+
Then "Submit" dialog should be visible
|
|
102
|
+
And "Name" input in "Submit" dialog should have value "BDD Submit"
|
|
103
|
+
And "Name" input in "Submit" dialog should be read-only
|
|
104
|
+
When user clicks on "Edit Campaign Name" icon in "Submit" dialog
|
|
105
|
+
And user clears "Name" input in "Submit" dialog
|
|
106
|
+
And user clicks on "Save" icon in "Submit" dialog
|
|
107
|
+
Then "Name" input in "Submit" dialog should have the error "Campaign name can not be empty"
|
|
108
|
+
When user clicks on "Cancel" icon in "Submit" dialog
|
|
109
|
+
Then "Name" input in "Submit" dialog should have value "BDD Submit"
|
|
110
|
+
And "Name" input in "Submit" dialog should have no error
|
|
111
|
+
|
|
112
|
+
Scenario: Enter saves the new name with the campaign and leaves the dialog open
|
|
113
|
+
When user clicks on "Edit Campaign Name" icon in "Submit" dialog
|
|
114
|
+
And user types "BDD Submit renamed" into "Name" input in "Submit" dialog
|
|
115
|
+
And user presses Enter in "Name" input in "Submit" dialog
|
|
116
|
+
Then an info balloon containing "Campaign saved successfully" should have been shown
|
|
117
|
+
And the campaign "BDD Submit" should be saved with the name "BDD Submit renamed"
|
|
118
|
+
And "Submit" dialog should be visible
|
|
119
|
+
And "Name" input in "Submit" dialog should have value "BDD Submit renamed"
|
|
120
|
+
And "Name" input in "Submit" dialog should be read-only
|
|
121
|
+
|
|
122
|
+
Scenario: The pencil opens the file path, a folder that does not exist is refused, and the download icon saves the rows
|
|
123
|
+
Given user watches downloads
|
|
124
|
+
When user clicks on "Edit file path" icon in "Submit" dialog
|
|
125
|
+
Then "File Path" input in "Submit" dialog should be editable
|
|
126
|
+
When user types "System.AppData/HitTriage/BDD no such folder" into "File Path" input in "Submit" dialog
|
|
127
|
+
And user clicks on "Save" icon in "Submit" dialog
|
|
128
|
+
Then "File Path" input in "Submit" dialog should have the error "Given folder does not exist"
|
|
129
|
+
And an error balloon containing "Given folder does not exist" should have been shown
|
|
130
|
+
When user clicks on "Cancel" icon in "Submit" dialog
|
|
131
|
+
Then "File Path" input in "Submit" dialog should have value "System.AppData/HitTriage/Hit Design/campaigns"
|
|
132
|
+
And "File Path" input in "Submit" dialog should be read-only
|
|
133
|
+
When user downloads a file through "Download" icon in "Submit" dialog
|
|
134
|
+
Then a file "BDDBDDSUBMIT-1.csv" should have been downloaded
|
|
135
|
+
And the downloaded file should contain "CCN"
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
Feature: The progress tracker's cards are the campaign's own rows
|
|
2
|
+
The tracker's cards follow the card layout the campaign keeps (`tilesViewerFormSketch`), which names the table it
|
|
3
|
+
was made over: "Table" while the campaign was the only one open. Opened next to a PeptiHit campaign, whose table now
|
|
4
|
+
holds that name, the cards read the campaign's own table, not the PeptiHit one (no peptide's V-iD on a Hit Design
|
|
5
|
+
card, no card missing, no lane left empty).
|
|
6
|
+
|
|
7
|
+
A row whose stage the template does not have (a typo from when Stage was free text; it is a choice of the template's
|
|
8
|
+
stages, stage-choices.feature) gets a lane of that stage after the template's, instead of being left out of the
|
|
9
|
+
tracker.
|
|
10
|
+
|
|
11
|
+
The campaigns are made for the feature through the JS API (bindings/campaign.ts, bindings/pepti-hit.ts) and opened by
|
|
12
|
+
their links; they go at feature end.
|
|
13
|
+
|
|
14
|
+
Background:
|
|
15
|
+
Given user is logged in
|
|
16
|
+
|
|
17
|
+
Scenario: Next to a PeptiHit campaign, the cards of a kept card layout show this campaign's rows
|
|
18
|
+
Given the PeptiHit campaign "BDD Cards Peptide" with the stages "Design" and a table of:
|
|
19
|
+
| Helm | Molecule | Stage | V-iD |
|
|
20
|
+
| PEPTIDE1{A.G}$$$$V2.0 | CC(N)C(=O)NCC(=O)O | Design | V9900009 |
|
|
21
|
+
And the Hit Design campaign "BDD Cards" with the stages "Design, Make, Test" and a table of:
|
|
22
|
+
| Molecule | Stage | V-iD | MW |
|
|
23
|
+
| CCO | Design | V9900001 | 46.07 |
|
|
24
|
+
| c1ccccc1 | Make | V9900002 | 78.11 |
|
|
25
|
+
| CCN | Design | V9900003 | 45.08 |
|
|
26
|
+
And the card layout of the campaign "BDD Cards" was made over a table named "Table"
|
|
27
|
+
When user opens the campaign "BDD Cards Peptide" by its link
|
|
28
|
+
And user opens the campaign "BDD Cards" by its link
|
|
29
|
+
And user clicks on "Progress tracker" button in toolbar
|
|
30
|
+
Then "Progress Tracker" dialog should be visible
|
|
31
|
+
And the 'tiles in lane "Design"' reading of "Tile Viewer" viewer should be 2
|
|
32
|
+
And the "V-iD of row 1" reading of "Tile Viewer" viewer should be "V9900001"
|
|
33
|
+
And the "V-iD of row 3" reading of "Tile Viewer" viewer should be "V9900003"
|
|
34
|
+
And the "lane of row 2" reading of "Tile Viewer" viewer should be "Make"
|
|
35
|
+
And the "V-iD of row 2" reading of "Tile Viewer" viewer should be "V9900002"
|
|
36
|
+
|
|
37
|
+
Scenario: A row in a stage the template does not have is shown in a lane of that stage
|
|
38
|
+
Given the Hit Design campaign "BDD Odd Stage" with the stages "Design, Make, Test" and a table of:
|
|
39
|
+
| Molecule | Stage | V-iD | MW |
|
|
40
|
+
| CCO | Design | | 46.07 |
|
|
41
|
+
| c1ccccc1 | Mkae | | 78.11 |
|
|
42
|
+
When user opens the campaign "BDD Odd Stage" by its link
|
|
43
|
+
And user clicks on "Progress tracker" button in toolbar
|
|
44
|
+
Then "Progress Tracker" dialog should be visible
|
|
45
|
+
And the "lane names" reading of "Tile Viewer" viewer should be "Design, Make, Test, Mkae"
|
|
46
|
+
And the "lane of row 2" reading of "Tile Viewer" viewer should be "Mkae"
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
Feature: A Hit Design campaign the user may only view
|
|
2
|
+
A campaign whose edit permission is not the user's opens as usual, without the "Edit campaign permissions" icon; its
|
|
3
|
+
cells stay editable, but the save an edit starts is refused with the balloon "You do not have permission to modify
|
|
4
|
+
this campaign" and writes nothing, and the edit stays in the view.
|
|
5
|
+
|
|
6
|
+
A refused save logs no update in the hitdesign database, so neither this session nor any other with the campaign
|
|
7
|
+
open is told of "new changes" that never happened.
|
|
8
|
+
|
|
9
|
+
The campaign is made for the feature through the JS API with the second account (DATAGROK_SHARING_LOGIN, bddsecond)
|
|
10
|
+
as its author and only editor, and All users as viewers (bindings/campaign.ts); it is opened by its link.
|
|
11
|
+
|
|
12
|
+
Background:
|
|
13
|
+
Given user is logged in
|
|
14
|
+
And the Hit Design campaign "BDD View Only", which only the sharing user may edit, with a table of:
|
|
15
|
+
| Molecule | Stage | V-iD | MW |
|
|
16
|
+
| CCO | Idea | | 46.07 |
|
|
17
|
+
When user opens the campaign "BDD View Only" by its link
|
|
18
|
+
|
|
19
|
+
Scenario: The campaign opens without the permissions icon, and an edit is refused and kept in the view
|
|
20
|
+
Then "Refresh" icon in toolbar should be visible
|
|
21
|
+
And "Submit..." button in toolbar should be visible
|
|
22
|
+
And "Edit campaign permissions" icon in toolbar should be absent
|
|
23
|
+
When user double-clicks on the "cell 1 of Stage" area of grid
|
|
24
|
+
And user selects "Design" in cell editor
|
|
25
|
+
Then an error balloon containing "You do not have permission to modify this campaign" should have been shown
|
|
26
|
+
And the campaign "BDD View Only" should hold no lock on the server
|
|
27
|
+
And the campaign "BDD View Only" should be at version 1 on the server
|
|
28
|
+
And the campaign "BDD View Only" should be saved with "Idea" in row 1 of the "Stage" column
|
|
29
|
+
And the value of "Stage" column in row 1 should be "Design"
|
|
30
|
+
|
|
31
|
+
Scenario: A refused edit logs no update, so no session is told of new changes
|
|
32
|
+
When user remembers the update log of the campaign "BDD View Only"
|
|
33
|
+
And user double-clicks on the "cell 1 of Stage" area of grid
|
|
34
|
+
And user selects "Design" in cell editor
|
|
35
|
+
Then an error balloon containing "You do not have permission to modify this campaign" should have been shown
|
|
36
|
+
And the campaign "BDD View Only" should hold no lock on the server
|
|
37
|
+
And the update log of the campaign "BDD View Only" should be as remembered
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
@journey @serial
|
|
2
|
+
Feature: Campaign links: ?campaignId opens a campaign, and a link the user cannot follow lands on the landing
|
|
3
|
+
An app address with ?campaignId=<code> builds the landing and opens that campaign on top of it. A code of a campaign
|
|
4
|
+
the user may not view, or of none, leaves the user on the landing; a hidden campaign's code is dropped from the
|
|
5
|
+
address. The addresses are opened inside the running app, as a link does (grok.shell.route).
|
|
6
|
+
|
|
7
|
+
The campaigns are made for the feature through the JS API (bindings/landing.ts): "BDD Link Open", the running
|
|
8
|
+
account's; "BDD Link Hidden" (Hit Design) and "BDD Link PH Hidden" (PeptiHit), the second account's (bddsecond),
|
|
9
|
+
viewable and editable by it alone; "BDD Link Broken", a campaign in the legacy shape with no template snapshot whose
|
|
10
|
+
template file is gone (as LCNS-3 on the seeded stand).
|
|
11
|
+
|
|
12
|
+
A link to the broken campaign lands on the whole landing, not one empty below its header, with an error naming the
|
|
13
|
+
campaign.
|
|
14
|
+
|
|
15
|
+
Background:
|
|
16
|
+
Given user is logged in
|
|
17
|
+
And the campaigns tables start from their defaults, put back at feature end
|
|
18
|
+
And the "Hit Design" campaigns are on the server:
|
|
19
|
+
| code | name | created | author | can view | can edit | template |
|
|
20
|
+
| BDDDLK{time}-1 | BDD Link Open {time} | 2099/1/13 | me | everyone | everyone | |
|
|
21
|
+
| BDDDLK{time}-2 | BDD Link Hidden {time} | 2099/1/12 | sharing user | author | author | |
|
|
22
|
+
| BDDDLK{time}-3 | BDD Link Broken {time} | 2099/1/11 | me | everyone | everyone | gone: BDD Link Gone Template {time} |
|
|
23
|
+
And the "PeptiHit" campaigns are on the server:
|
|
24
|
+
| code | name | created | author | can view | can edit |
|
|
25
|
+
| BDDDLP{time}-1 | BDD Link PH Hidden {time} | 2099/1/12 | sharing user | author | author |
|
|
26
|
+
And the campaigns table of "Hit Design" is sorted by "Created" descending
|
|
27
|
+
|
|
28
|
+
Scenario: A link with a campaign's code opens the campaign
|
|
29
|
+
When user opens the address "/apps/HitTriage/HitDesign?campaignId=BDDDLK{time}-1"
|
|
30
|
+
Then the "BDD Link Open {time}" view should be current
|
|
31
|
+
And the page address should contain "campaignId=BDDDLK{time}-1"
|
|
32
|
+
And the table should have 1 row
|
|
33
|
+
|
|
34
|
+
Scenario: A link to a campaign the user may not view lands on the landing and drops the code
|
|
35
|
+
When user closes all views
|
|
36
|
+
And user opens the address "/apps/HitTriage/HitDesign?campaignId=BDDDLK{time}-2"
|
|
37
|
+
Then the "Hit Design" view should be current
|
|
38
|
+
And the campaigns table should list "BDD Link Open {time}"
|
|
39
|
+
And the campaigns table should not list "BDD Link Hidden {time}"
|
|
40
|
+
And the page address should not contain "campaignId"
|
|
41
|
+
|
|
42
|
+
Scenario: A link with a code no campaign has lands on the landing
|
|
43
|
+
When user closes all views
|
|
44
|
+
And user opens the address "/apps/HitTriage/HitDesign?campaignId=BDDDLK{time}-99"
|
|
45
|
+
Then the "Hit Design" view should be current
|
|
46
|
+
And the campaigns table should list "BDD Link Open {time}"
|
|
47
|
+
|
|
48
|
+
Scenario: A link to a campaign that cannot be opened still lands on a working landing
|
|
49
|
+
When user closes all views
|
|
50
|
+
And user opens the address "/apps/HitTriage/HitDesign?campaignId=BDDDLK{time}-3"
|
|
51
|
+
Then the "Hit Design" view should be current
|
|
52
|
+
And the campaigns table should list "BDD Link Open {time}"
|
|
53
|
+
And an error balloon containing "Campaign BDDDLK{time}-3 could not be opened" should have been shown
|
|
54
|
+
|
|
55
|
+
Scenario: In PeptiHit, a link to a campaign the user may not view lands on its landing and drops the code
|
|
56
|
+
Given the "Bio" package is installed
|
|
57
|
+
When user closes all views
|
|
58
|
+
And user opens the address "/apps/HitTriage/PeptiHit?campaignId=BDDDLP{time}-1"
|
|
59
|
+
Then the "PeptiHit" view should be current
|
|
60
|
+
And the current view should show the text "Continue Campaign"
|
|
61
|
+
And the page address should not contain "campaignId"
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
@journey @serial
|
|
2
|
+
Feature: Hit Design landing: the campaigns table lists every campaign (full list, order, groups, dates, refresh)
|
|
3
|
+
The campaigns table lists every campaign, also past twenty and after a sort, a grouping or a refresh; a grouping
|
|
4
|
+
covers every campaign; groups start expanded and show how many campaigns they hold; a Template group is labelled by
|
|
5
|
+
the template's name; a Date campaign field shows its date; Refresh reads the list from the server again, so a
|
|
6
|
+
campaign saved elsewhere shows; with no sort chosen the most recently modified campaigns come first. The feature
|
|
7
|
+
is @serial with the other list features.
|
|
8
|
+
|
|
9
|
+
Twenty-four campaigns are made for the feature through the JS API (bindings/landing.ts): "BDD Fixes 01" to "20",
|
|
10
|
+
created on 2099/3/10 to 2099/3/29 and modified 20 to 1 minutes ago (in the share and in hitdesign.update_logs), all
|
|
11
|
+
"BDD Many"; "BDD Fixes Rare" and "BDD Fixes Last", created 2099/1/10 and 2099/1/9, the only "BDD Rare" and "BDD
|
|
12
|
+
Last"; "BDD Fixes Legacy", the only "BDD Legacy", saved before campaigns kept a template snapshot (its campaign.json
|
|
13
|
+
names the template, without its key, as LCNS-3 on the seeded stand); and, saved from elsewhere while the landing is
|
|
14
|
+
open, "BDD Fixes Late". All share the template "BDD Fixes Template" (key BDDFIX…); "BDD Fixes 20" holds the Date
|
|
15
|
+
field Due. The table is sorted by Created, newest first, so the twenty come first and Rare is the twenty-first,
|
|
16
|
+
whatever else the stand holds; grouped by Status, "BDD Last" is the third group.
|
|
17
|
+
|
|
18
|
+
Background:
|
|
19
|
+
Given user is logged in
|
|
20
|
+
And the campaigns tables start from their defaults, put back at feature end
|
|
21
|
+
And the "Hit Design" campaigns are on the server:
|
|
22
|
+
| code | name | status | created | modified | template | fields |
|
|
23
|
+
| BDDFIX{time}-1 | BDD Fixes 01 {time} | BDD Many {time} | 2099/3/10 | 20 | BDD Fixes Template {time} | |
|
|
24
|
+
| BDDFIX{time}-2 | BDD Fixes 02 {time} | BDD Many {time} | 2099/3/11 | 19 | BDD Fixes Template {time} | |
|
|
25
|
+
| BDDFIX{time}-3 | BDD Fixes 03 {time} | BDD Many {time} | 2099/3/12 | 18 | BDD Fixes Template {time} | |
|
|
26
|
+
| BDDFIX{time}-4 | BDD Fixes 04 {time} | BDD Many {time} | 2099/3/13 | 17 | BDD Fixes Template {time} | |
|
|
27
|
+
| BDDFIX{time}-5 | BDD Fixes 05 {time} | BDD Many {time} | 2099/3/14 | 16 | BDD Fixes Template {time} | |
|
|
28
|
+
| BDDFIX{time}-6 | BDD Fixes 06 {time} | BDD Many {time} | 2099/3/15 | 15 | BDD Fixes Template {time} | |
|
|
29
|
+
| BDDFIX{time}-7 | BDD Fixes 07 {time} | BDD Many {time} | 2099/3/16 | 14 | BDD Fixes Template {time} | |
|
|
30
|
+
| BDDFIX{time}-8 | BDD Fixes 08 {time} | BDD Many {time} | 2099/3/17 | 13 | BDD Fixes Template {time} | |
|
|
31
|
+
| BDDFIX{time}-9 | BDD Fixes 09 {time} | BDD Many {time} | 2099/3/18 | 12 | BDD Fixes Template {time} | |
|
|
32
|
+
| BDDFIX{time}-10 | BDD Fixes 10 {time} | BDD Many {time} | 2099/3/19 | 11 | BDD Fixes Template {time} | |
|
|
33
|
+
| BDDFIX{time}-11 | BDD Fixes 11 {time} | BDD Many {time} | 2099/3/20 | 10 | BDD Fixes Template {time} | |
|
|
34
|
+
| BDDFIX{time}-12 | BDD Fixes 12 {time} | BDD Many {time} | 2099/3/21 | 9 | BDD Fixes Template {time} | |
|
|
35
|
+
| BDDFIX{time}-13 | BDD Fixes 13 {time} | BDD Many {time} | 2099/3/22 | 8 | BDD Fixes Template {time} | |
|
|
36
|
+
| BDDFIX{time}-14 | BDD Fixes 14 {time} | BDD Many {time} | 2099/3/23 | 7 | BDD Fixes Template {time} | |
|
|
37
|
+
| BDDFIX{time}-15 | BDD Fixes 15 {time} | BDD Many {time} | 2099/3/24 | 6 | BDD Fixes Template {time} | |
|
|
38
|
+
| BDDFIX{time}-16 | BDD Fixes 16 {time} | BDD Many {time} | 2099/3/25 | 5 | BDD Fixes Template {time} | |
|
|
39
|
+
| BDDFIX{time}-17 | BDD Fixes 17 {time} | BDD Many {time} | 2099/3/26 | 4 | BDD Fixes Template {time} | |
|
|
40
|
+
| BDDFIX{time}-18 | BDD Fixes 18 {time} | BDD Many {time} | 2099/3/27 | 3 | BDD Fixes Template {time} | |
|
|
41
|
+
| BDDFIX{time}-19 | BDD Fixes 19 {time} | BDD Many {time} | 2099/3/28 | 2 | BDD Fixes Template {time} | |
|
|
42
|
+
| BDDFIX{time}-20 | BDD Fixes 20 {time} | BDD Many {time} | 2099/3/29 | 1 | BDD Fixes Template {time} | Due = date 2026-11-15 |
|
|
43
|
+
| BDDFIX{time}-21 | BDD Fixes Rare {time} | BDD Rare {time} | 2099/1/10 | 30 | BDD Fixes Template {time} | |
|
|
44
|
+
| BDDFIX{time}-22 | BDD Fixes Last {time} | BDD Last {time} | 2099/1/9 | 31 | BDD Fixes Template {time} | |
|
|
45
|
+
| BDDFIX{time}-24 | BDD Fixes Legacy {time} | BDD Legacy {time} | 2099/1/8 | 32 | gone: BDD Fixes Template {time} | |
|
|
46
|
+
And the campaigns table of "Hit Design" is sorted by "Created" descending
|
|
47
|
+
And user opens the "Hit Design" app
|
|
48
|
+
|
|
49
|
+
Scenario: Every campaign is listed, and stays listed after a sort change and a refresh
|
|
50
|
+
Then the campaigns table should list "BDD Fixes 20 {time}, BDD Fixes 01 {time}"
|
|
51
|
+
And the campaigns table should list "BDD Fixes Rare {time}"
|
|
52
|
+
When user double-clicks the "Created" header of the campaigns table
|
|
53
|
+
Then the campaigns table should not be sorted
|
|
54
|
+
And the campaigns table should list "BDD Fixes Rare {time}, BDD Fixes 20 {time}"
|
|
55
|
+
When user clicks on campaigns refresh icon
|
|
56
|
+
Then the campaigns table should list "BDD Fixes Rare {time}, BDD Fixes 20 {time}"
|
|
57
|
+
When user double-clicks the "Created" header of the campaigns table
|
|
58
|
+
And user double-clicks the "Created" header of the campaigns table
|
|
59
|
+
Then the campaigns table should be sorted by "Created" descending
|
|
60
|
+
|
|
61
|
+
Scenario: Grouping covers every campaign, not only the rows shown first
|
|
62
|
+
When user clicks on campaign grouping icon
|
|
63
|
+
And user picks "Status" from the open menu
|
|
64
|
+
Then "BDD Many {time}" campaign group should be present
|
|
65
|
+
And the campaigns table should list "BDD Fixes 20 {time}"
|
|
66
|
+
And "BDD Last {time}" campaign group should be present
|
|
67
|
+
When user clicks on campaign grouping icon
|
|
68
|
+
And user picks "None" from the open menu
|
|
69
|
+
Then the campaigns table should list "BDD Fixes 20 {time}"
|
|
70
|
+
|
|
71
|
+
Scenario: Groups start expanded and show how many campaigns they hold
|
|
72
|
+
When user clicks on campaign grouping icon
|
|
73
|
+
And user picks "Status" from the open menu
|
|
74
|
+
Then "BDD Many {time}" campaign group should be present
|
|
75
|
+
And "BDD Many {time}" campaign group should be expanded
|
|
76
|
+
And "BDD Fixes 20 {time}" campaign row should be visible
|
|
77
|
+
And the "BDD Many {time}" campaign group should count 20 campaigns
|
|
78
|
+
When user clicks on campaign grouping icon
|
|
79
|
+
And user picks "None" from the open menu
|
|
80
|
+
Then the campaigns table should list "BDD Fixes 20 {time}"
|
|
81
|
+
|
|
82
|
+
Scenario: A Template group is labelled by the template's name, and holds its campaigns saved without a snapshot too
|
|
83
|
+
When user clicks on campaign grouping icon
|
|
84
|
+
And user picks "Template" from the open menu
|
|
85
|
+
Then "BDD Fixes Template {time}" campaign group should be present
|
|
86
|
+
And the "BDD Fixes Template {time}" campaign group should count 23 campaigns
|
|
87
|
+
When user clicks on campaign grouping icon
|
|
88
|
+
And user picks "None" from the open menu
|
|
89
|
+
Then the campaigns table should list "BDD Fixes 20 {time}"
|
|
90
|
+
|
|
91
|
+
Scenario: A Date campaign field shows its date
|
|
92
|
+
When user clicks on campaign grouping icon
|
|
93
|
+
And user picks "None" from the open menu
|
|
94
|
+
And user clicks on campaign columns icon
|
|
95
|
+
And user picks "Campaign Fields > Due" from the open menu
|
|
96
|
+
Then the campaigns table should have the columns "Name, Code, Created, Author, Last Modified by, Molecules, Status, Due"
|
|
97
|
+
And the "Due" column of the "BDD Fixes 20 {time}" campaign row should contain "2026"
|
|
98
|
+
When user picks "Campaign Fields > Due" from the open menu
|
|
99
|
+
And user closes the context menu
|
|
100
|
+
Then the campaigns table should have the columns "Name, Code, Created, Author, Last Modified by, Molecules, Status"
|
|
101
|
+
|
|
102
|
+
Scenario: Refresh shows a campaign saved elsewhere after the landing opened
|
|
103
|
+
When user clicks on campaign grouping icon
|
|
104
|
+
And user picks "None" from the open menu
|
|
105
|
+
And the "Hit Design" campaigns are saved on the server from elsewhere:
|
|
106
|
+
| code | name | status | created | modified | template |
|
|
107
|
+
| BDDFIX{time}-23 | BDD Fixes Late {time} | BDD Many {time} | 2099/4/10 | 0 | BDD Fixes Template {time} |
|
|
108
|
+
And user clicks on campaigns refresh icon
|
|
109
|
+
Then the campaigns table should list "BDD Fixes Late {time}"
|
|
110
|
+
|
|
111
|
+
Scenario: With no sort chosen, the most recently modified campaigns come first
|
|
112
|
+
When user clicks on campaign grouping icon
|
|
113
|
+
And user picks "None" from the open menu
|
|
114
|
+
And user double-clicks the "Created" header of the campaigns table
|
|
115
|
+
Then the campaigns table should not be sorted
|
|
116
|
+
And the campaigns table should list "BDD Fixes 20 {time}, BDD Fixes 19 {time}, BDD Fixes 18 {time}, BDD Fixes 17 {time}, BDD Fixes 16 {time}" in this order
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
@journey @serial
|
|
2
|
+
Feature: Hit Design landing: the campaigns table lists, opens, sorts, groups and acts on campaigns
|
|
3
|
+
The "Continue Campaign" table of the Hit Design landing. Four campaigns are made for the feature through the JS API
|
|
4
|
+
(bindings/landing.ts): Alpha, Beta and Delta authored by the running account and editable by everyone, Gamma
|
|
5
|
+
authored by the second account (bddsecond), visible to everyone and editable only by its author, so the running
|
|
6
|
+
account sees it without the row actions. They are created in 2099, and the table is sorted by Created, newest
|
|
7
|
+
first, before the landing opens, so they are its first rows however many campaigns the stand has. The default
|
|
8
|
+
order, the full list and the other landing fixes are pinned in hit-design-campaigns-fixes.feature. @serial: the Hit
|
|
9
|
+
Design features that claim rows of the list run one at a time.
|
|
10
|
+
|
|
11
|
+
A group is expanded and collapsed, Edit Permissions is claimed by its "Can View" and "Can Edit" captions, the delete
|
|
12
|
+
confirmation by its opening words and the code, and confirmed with its OK or DELETE button.
|
|
13
|
+
|
|
14
|
+
The columns, grouping and sorting the landing keeps in the browser are cleared before and put back after.
|
|
15
|
+
|
|
16
|
+
Background:
|
|
17
|
+
Given user is logged in
|
|
18
|
+
And the campaigns tables start from their defaults, put back at feature end
|
|
19
|
+
And the "Hit Design" campaigns are on the server:
|
|
20
|
+
| code | name | status | created | molecules | author | can edit | fields |
|
|
21
|
+
| BDDLND{time}-1 | BDD Landing Alpha {time} | BDD Ready {time} | 2099/1/14 | 3 | me | everyone | Owner = Ann {time} |
|
|
22
|
+
| BDDLND{time}-2 | BDD Landing Beta {time} | BDD Hold {time} | 2099/1/13 | 7 | me | everyone | Owner = Bob {time} |
|
|
23
|
+
| BDDLND{time}-3 | BDD Landing Gamma {time} | BDD Ready {time} | 2099/1/12 | 5 | sharing user | author | Owner = Ann {time} |
|
|
24
|
+
| BDDLND{time}-4 | BDD Landing Delta {time} | BDD Hold {time} | 2099/1/11 | 2 | me | everyone | |
|
|
25
|
+
And the campaigns table of "Hit Design" is sorted by "Created" descending
|
|
26
|
+
And user opens the "Hit Design" app
|
|
27
|
+
|
|
28
|
+
Scenario: The table lists the campaigns with the default columns, each name a link
|
|
29
|
+
Then the current view should show the text "Continue Campaign"
|
|
30
|
+
And the campaigns table should have the columns "Name, Code, Created, Author, Last Modified by, Molecules, Status"
|
|
31
|
+
And the "Code" column of the "BDD Landing Alpha {time}" campaign row should be "BDDLND{time}-1"
|
|
32
|
+
And the "Created" column of the "BDD Landing Alpha {time}" campaign row should be "2099/1/14"
|
|
33
|
+
And the "Molecules" column of the "BDD Landing Beta {time}" campaign row should be "7"
|
|
34
|
+
And the "Status" column of the "BDD Landing Gamma {time}" campaign row should be "BDD Ready {time}"
|
|
35
|
+
And name link of "BDD Landing Alpha {time}" campaign row should be visible
|
|
36
|
+
|
|
37
|
+
Scenario: A campaign's name opens it with its code in the address, and the crumb comes back
|
|
38
|
+
When user clicks on "BDD Landing Alpha {time}" link
|
|
39
|
+
Then the "BDD Landing Alpha {time}" view should be current
|
|
40
|
+
And the page address should contain "campaignId=BDDLND{time}-1"
|
|
41
|
+
And the table should have 3 rows
|
|
42
|
+
When user clicks on "Hit Design" link
|
|
43
|
+
Then the "Hit Design" view should be current
|
|
44
|
+
And the page address should not contain "campaignId"
|
|
45
|
+
And "BDD Landing Alpha {time}" campaign row should be visible
|
|
46
|
+
|
|
47
|
+
Scenario: The eye menu shows and hides columns, a column comes back at the end, and the choice outlives a reopen
|
|
48
|
+
When user clicks on campaign columns icon
|
|
49
|
+
Then the open menu should show "Code" as checked
|
|
50
|
+
And the open menu should show "Status" as checked
|
|
51
|
+
And the open menu should list "Campaign Fields > Owner"
|
|
52
|
+
When user picks "Code" from the open menu
|
|
53
|
+
Then the campaigns table should have the columns "Name, Created, Author, Last Modified by, Molecules, Status"
|
|
54
|
+
When user closes the context menu
|
|
55
|
+
And user closes all views
|
|
56
|
+
And user opens the "Hit Design" app
|
|
57
|
+
Then the campaigns table should have the columns "Name, Created, Author, Last Modified by, Molecules, Status"
|
|
58
|
+
When user clicks on campaign columns icon
|
|
59
|
+
Then the open menu should show "Code" as unchecked
|
|
60
|
+
When user picks "Code" from the open menu
|
|
61
|
+
Then the campaigns table should have the columns "Name, Created, Author, Last Modified by, Molecules, Status, Code"
|
|
62
|
+
When user picks "Campaign Fields > Owner" from the open menu
|
|
63
|
+
Then the campaigns table should have the columns "Name, Created, Author, Last Modified by, Molecules, Status, Code, Owner"
|
|
64
|
+
And the "Owner" column of the "BDD Landing Alpha {time}" campaign row should be "Ann {time}"
|
|
65
|
+
And the "Owner" column of the "BDD Landing Delta {time}" campaign row should be ""
|
|
66
|
+
When user picks "Campaign Fields > Owner" from the open menu
|
|
67
|
+
Then the campaigns table should have the columns "Name, Created, Author, Last Modified by, Molecules, Status, Code"
|
|
68
|
+
When user closes the context menu
|
|
69
|
+
|
|
70
|
+
Scenario: A double click on a header sorts up, then down, then not at all
|
|
71
|
+
Then the campaigns table should be sorted by "Created" descending
|
|
72
|
+
And the campaigns table should list "BDD Landing Alpha {time}, BDD Landing Beta {time}, BDD Landing Gamma {time}, BDD Landing Delta {time}" in this order
|
|
73
|
+
When user double-clicks the "Molecules" header of the campaigns table
|
|
74
|
+
Then the campaigns table should be sorted by "Molecules" ascending
|
|
75
|
+
When user double-clicks the "Molecules" header of the campaigns table
|
|
76
|
+
Then the campaigns table should be sorted by "Molecules" descending
|
|
77
|
+
When user double-clicks the "Molecules" header of the campaigns table
|
|
78
|
+
Then the campaigns table should not be sorted
|
|
79
|
+
When user double-clicks the "Created" header of the campaigns table
|
|
80
|
+
Then the campaigns table should be sorted by "Created" ascending
|
|
81
|
+
When user double-clicks the "Created" header of the campaigns table
|
|
82
|
+
Then the campaigns table should be sorted by "Created" descending
|
|
83
|
+
|
|
84
|
+
Scenario: Grouping by Status puts a header over each status's rows, which expands and collapses them
|
|
85
|
+
When user clicks on campaign grouping icon
|
|
86
|
+
And user picks "Status" from the open menu
|
|
87
|
+
Then "BDD Ready {time}" campaign group should be visible
|
|
88
|
+
And "BDD Hold {time}" campaign group should be visible
|
|
89
|
+
When user expands "BDD Ready {time}" campaign group
|
|
90
|
+
Then "BDD Landing Alpha {time}" campaign row should be visible
|
|
91
|
+
And "BDD Landing Gamma {time}" campaign row should be visible
|
|
92
|
+
When user collapses "BDD Ready {time}" campaign group
|
|
93
|
+
Then "BDD Landing Alpha {time}" campaign row should be hidden
|
|
94
|
+
And "BDD Landing Gamma {time}" campaign row should be hidden
|
|
95
|
+
|
|
96
|
+
Scenario: Grouping by a campaign field, with "No Information" for campaigns without it, then back to none
|
|
97
|
+
When user clicks on campaign grouping icon
|
|
98
|
+
And user picks "Campaign Fields > Owner" from the open menu
|
|
99
|
+
Then "Ann {time}" campaign group should be visible
|
|
100
|
+
And "Bob {time}" campaign group should be visible
|
|
101
|
+
And "No Information" campaign group should be visible
|
|
102
|
+
When user clicks on campaign grouping icon
|
|
103
|
+
And user picks "None" from the open menu
|
|
104
|
+
Then "BDD Landing Alpha {time}" campaign row should be visible
|
|
105
|
+
And "Ann {time}" campaign group should be absent
|
|
106
|
+
|
|
107
|
+
Scenario: The grouping menu offers a grouping under the caption of its column: Last Modified by
|
|
108
|
+
When user clicks on campaign grouping icon
|
|
109
|
+
Then the open menu should list "Last Modified by"
|
|
110
|
+
And the open menu should not list "Last Modified User"
|
|
111
|
+
When user picks "Last Modified by" from the open menu
|
|
112
|
+
And user clicks on campaign grouping icon
|
|
113
|
+
Then the open menu should show "Last Modified by" as checked
|
|
114
|
+
When user picks "None" from the open menu
|
|
115
|
+
Then "BDD Landing Alpha {time}" campaign row should be visible
|
|
116
|
+
|
|
117
|
+
Scenario: Only the campaigns the user may edit show the permissions and delete icons
|
|
118
|
+
Then permissions icon of "BDD Landing Alpha {time}" campaign row should be visible
|
|
119
|
+
And delete icon of "BDD Landing Alpha {time}" campaign row should be visible
|
|
120
|
+
And permissions icon of "BDD Landing Gamma {time}" campaign row should be hidden
|
|
121
|
+
And delete icon of "BDD Landing Gamma {time}" campaign row should be hidden
|
|
122
|
+
|
|
123
|
+
Scenario: The permissions icon opens Edit Permissions with Can View and Can Edit, and CANCEL closes it
|
|
124
|
+
When user clicks on permissions icon of "BDD Landing Alpha {time}" campaign row
|
|
125
|
+
Then "Edit Permissions" dialog should be visible
|
|
126
|
+
And "Edit Permissions" dialog should contain text "Can View"
|
|
127
|
+
And "Edit Permissions" dialog should contain text "Can Edit"
|
|
128
|
+
When user clicks on CANCEL button in "Edit Permissions" dialog
|
|
129
|
+
Then the "Edit Permissions" dialog should close
|
|
130
|
+
|
|
131
|
+
Scenario: Edit Permissions says all users can view only while no one is listed
|
|
132
|
+
When user clicks on permissions icon of "BDD Landing Alpha {time}" campaign row
|
|
133
|
+
Then "Edit Permissions" dialog should contain text "Can Edit includes Can View"
|
|
134
|
+
And "Edit Permissions" dialog should not contain text "With no one listed"
|
|
135
|
+
When user clicks on "Remove All users" button in "Edit Permissions" dialog
|
|
136
|
+
Then "Edit Permissions" dialog should contain text "With no one listed, all users can view"
|
|
137
|
+
When user clicks on CANCEL button in "Edit Permissions" dialog
|
|
138
|
+
Then the "Edit Permissions" dialog should close
|
|
139
|
+
|
|
140
|
+
Scenario: Delete asks for a confirmation naming the code, and confirming it removes the campaign
|
|
141
|
+
When user clicks on delete icon of "BDD Landing Delta {time}" campaign row
|
|
142
|
+
Then "Delete campaign" dialog should contain text "Are you sure you want to delete campaign"
|
|
143
|
+
And "Delete campaign" dialog should contain text "BDDLND{time}-4"
|
|
144
|
+
When user confirms the "Delete campaign" dialog
|
|
145
|
+
Then the "Hit Design" campaign "BDDLND{time}-4" should not be on the server
|
|
146
|
+
And "BDD Landing Alpha {time}" campaign row should be visible
|
|
147
|
+
And "BDD Landing Delta {time}" campaign row should be absent
|
|
148
|
+
|
|
149
|
+
Scenario: The refresh icon rebuilds the table in the order it had
|
|
150
|
+
When user clicks on campaigns refresh icon
|
|
151
|
+
Then the campaigns table should be sorted by "Created" descending
|
|
152
|
+
And "BDD Landing Alpha {time}" campaign row should be visible
|
|
153
|
+
And no error or warning balloon should have been shown
|