@datagrok/hit-triage 1.10.8 → 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 +24 -6
- package/.vscode/settings.json +16 -0
- package/CHANGELOG.md +80 -1
- 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 -0
- package/bdd/bindings/campaign.ts +626 -0
- package/bdd/bindings/hit-design.ts +93 -0
- 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/hit-design/campaign-column-metadata.feature +61 -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 +76 -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/bdd/package.json +1 -0
- package/bdd/tsconfig.json +13 -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 +15 -8
- 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 +492 -882
- 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/types.ts +2 -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/tsconfig.json +3 -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,99 @@
|
|
|
1
|
+
@journey
|
|
2
|
+
Feature: Hit Triage landing: the campaigns table lists, sorts, groups and acts on campaigns
|
|
3
|
+
The "Continue Campaign" table of the Hit Triage landing, which Hit Triage and PepTriage share with Hit Design: its
|
|
4
|
+
own default columns (Name, Created, Author, Total, Selected, Status), the eye, grouping and sync icons, the
|
|
5
|
+
double-click sort, the share and delete icons on the campaigns the user may edit, and a delete that names the
|
|
6
|
+
campaign by its name.
|
|
7
|
+
|
|
8
|
+
Three campaigns are made for the feature through the JS API (bindings/landing.ts) in the shape Hit Triage writes:
|
|
9
|
+
Alpha and Beta authored by the running account, Gamma by the second account (bddsecond), visible to everyone and
|
|
10
|
+
editable only by its author. They are created in 2099 and the table is sorted by Created, newest first, before the
|
|
11
|
+
landing opens, so they are its first rows. The columns, grouping and sorting the landing keeps in the browser are
|
|
12
|
+
cleared before and put back after. Edit Permissions is claimed by its captions, the delete confirmation by its
|
|
13
|
+
opening words and the name, confirmed with OK or DELETE.
|
|
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 Triage" campaigns are on the server:
|
|
19
|
+
| code | name | status | created | molecules | author | can edit |
|
|
20
|
+
| BDDHTL{time}-1 | BDD HT Alpha {time} | BDD Ready {time} | 2099/1/13 | 4 | me | everyone |
|
|
21
|
+
| BDDHTL{time}-2 | BDD HT Beta {time} | BDD Hold {time} | 2099/1/12 | 9 | me | everyone |
|
|
22
|
+
| BDDHTL{time}-3 | BDD HT Gamma {time} | BDD Ready {time} | 2099/1/11 | 6 | sharing user | author |
|
|
23
|
+
And the campaigns table of "Hit Triage" is sorted by "Created" descending
|
|
24
|
+
And user opens the "Hit Triage" app
|
|
25
|
+
|
|
26
|
+
Scenario: The table lists the campaigns with Hit Triage's default columns
|
|
27
|
+
Then the current view should show the text "Continue Campaign"
|
|
28
|
+
And the campaigns table should have the columns "Name, Created, Author, Total, Selected, Status"
|
|
29
|
+
And the "Total" column of the "BDD HT Beta {time}" campaign row should be "9"
|
|
30
|
+
And the "Selected" column of the "BDD HT Beta {time}" campaign row should be "9"
|
|
31
|
+
And the "Status" column of the "BDD HT Gamma {time}" campaign row should be "BDD Ready {time}"
|
|
32
|
+
And name link of "BDD HT Alpha {time}" campaign row should be visible
|
|
33
|
+
|
|
34
|
+
Scenario: The eye menu adds a column at the end and takes it away
|
|
35
|
+
When user clicks on campaign columns icon
|
|
36
|
+
Then the open menu should show "Code" as unchecked
|
|
37
|
+
And the open menu should show "Total" as checked
|
|
38
|
+
When user picks "Code" from the open menu
|
|
39
|
+
Then the campaigns table should have the columns "Name, Created, Author, Total, Selected, Status, Code"
|
|
40
|
+
And the "Code" column of the "BDD HT Alpha {time}" campaign row should be "BDDHTL{time}-1"
|
|
41
|
+
When user picks "Code" from the open menu
|
|
42
|
+
Then the campaigns table should have the columns "Name, Created, Author, Total, Selected, Status"
|
|
43
|
+
When user closes the context menu
|
|
44
|
+
|
|
45
|
+
Scenario: A double click on a header sorts up, then down, then not at all
|
|
46
|
+
Then the campaigns table should be sorted by "Created" descending
|
|
47
|
+
When user double-clicks the "Total" header of the campaigns table
|
|
48
|
+
Then the campaigns table should be sorted by "Total" ascending
|
|
49
|
+
When user double-clicks the "Total" header of the campaigns table
|
|
50
|
+
Then the campaigns table should be sorted by "Total" descending
|
|
51
|
+
When user double-clicks the "Total" header of the campaigns table
|
|
52
|
+
Then the campaigns table should not be sorted
|
|
53
|
+
When user double-clicks the "Created" header of the campaigns table
|
|
54
|
+
And user double-clicks the "Created" header of the campaigns table
|
|
55
|
+
Then the campaigns table should be sorted by "Created" descending
|
|
56
|
+
|
|
57
|
+
Scenario: Grouping by Status puts a header over each status's rows, which expands and collapses them
|
|
58
|
+
When user clicks on campaign grouping icon
|
|
59
|
+
And user picks "Status" from the open menu
|
|
60
|
+
Then "BDD Ready {time}" campaign group should be visible
|
|
61
|
+
And "BDD Hold {time}" campaign group should be visible
|
|
62
|
+
When user expands "BDD Ready {time}" campaign group
|
|
63
|
+
Then "BDD HT Alpha {time}" campaign row should be visible
|
|
64
|
+
And "BDD HT Gamma {time}" campaign row should be visible
|
|
65
|
+
When user collapses "BDD Ready {time}" campaign group
|
|
66
|
+
Then "BDD HT Alpha {time}" campaign row should be hidden
|
|
67
|
+
When user clicks on campaign grouping icon
|
|
68
|
+
And user picks "None" from the open menu
|
|
69
|
+
Then "BDD HT Alpha {time}" campaign row should be visible
|
|
70
|
+
And "BDD Ready {time}" campaign group should be absent
|
|
71
|
+
|
|
72
|
+
Scenario: Only the campaigns the user may edit show the share and delete icons
|
|
73
|
+
Then permissions icon of "BDD HT Alpha {time}" campaign row should be visible
|
|
74
|
+
And delete icon of "BDD HT Alpha {time}" campaign row should be visible
|
|
75
|
+
And permissions icon of "BDD HT Gamma {time}" campaign row should be hidden
|
|
76
|
+
And delete icon of "BDD HT Gamma {time}" campaign row should be hidden
|
|
77
|
+
|
|
78
|
+
Scenario: The share icon opens Edit Permissions, and CANCEL closes it
|
|
79
|
+
When user clicks on permissions icon of "BDD HT Alpha {time}" campaign row
|
|
80
|
+
Then "Edit Permissions" dialog should be visible
|
|
81
|
+
And "Edit Permissions" dialog should contain text "Can View"
|
|
82
|
+
And "Edit Permissions" dialog should contain text "Can Edit"
|
|
83
|
+
When user clicks on CANCEL button in "Edit Permissions" dialog
|
|
84
|
+
Then the "Edit Permissions" dialog should close
|
|
85
|
+
|
|
86
|
+
Scenario: Delete asks for a confirmation naming the campaign, and OK removes it
|
|
87
|
+
When user clicks on delete icon of "BDD HT Beta {time}" campaign row
|
|
88
|
+
Then "Delete campaign" dialog should contain text "Are you sure you want to delete campaign"
|
|
89
|
+
And "Delete campaign" dialog should contain text "BDD HT Beta {time}"
|
|
90
|
+
When user confirms the "Delete campaign" dialog
|
|
91
|
+
Then the "Hit Triage" campaign "BDDHTL{time}-2" should not be on the server
|
|
92
|
+
And "BDD HT Alpha {time}" campaign row should be visible
|
|
93
|
+
And "BDD HT Beta {time}" campaign row should be absent
|
|
94
|
+
|
|
95
|
+
Scenario: The refresh icon rebuilds the table in the order it had
|
|
96
|
+
When user clicks on campaigns refresh icon
|
|
97
|
+
Then the campaigns table should be sorted by "Created" descending
|
|
98
|
+
And "BDD HT Alpha {time}" campaign row should be visible
|
|
99
|
+
And no error or warning balloon should have been shown
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
@journey
|
|
2
|
+
Feature: Hit Design new campaign: the form a template builds, its required fields, and Start
|
|
3
|
+
Choosing a template in the New Campaign section builds the form below it: Campaign Name, one input per field of
|
|
4
|
+
the template, and START. START with every required field filled makes the campaign <KEY>-<n>, puts its code in the
|
|
5
|
+
address, opens it on one row (Molecule, Stage at the template's first stage, V-iD) with the molecule sketcher on
|
|
6
|
+
that row, and saves it at once under the typed name. Every scenario but the first starts on a freshly opened app.
|
|
7
|
+
|
|
8
|
+
Two templates are made for the feature through the JS API (bindings/landing.ts): "BDD New Campaign", with a
|
|
9
|
+
required String field Owner, a Number field Budget and the stages Idea and Made; and "BDD New Layout", whose layout
|
|
10
|
+
has a bar chart next to the grid. The campaigns their keys start go with them at feature end, with their rows in
|
|
11
|
+
the hitdesign database. Needs Chem on the stand (the sketcher).
|
|
12
|
+
|
|
13
|
+
START is disabled while a required field is empty, the reason its tooltip. A new campaign from a template with a
|
|
14
|
+
layout opens with the template's layout, not the grid alone.
|
|
15
|
+
|
|
16
|
+
Background:
|
|
17
|
+
Given user is logged in
|
|
18
|
+
And the "Chem" package is installed
|
|
19
|
+
And the "Hit Design" templates are on the server:
|
|
20
|
+
| name | key | fields | stages | layout |
|
|
21
|
+
| BDD New Campaign {time} | BDDNEW{time} | Owner: String required; Budget: Number | Idea, Made | |
|
|
22
|
+
| BDD New Layout {time} | BDDNLY{time} | Layout note: String | Idea | bar chart of Stage |
|
|
23
|
+
And user opens the "Hit Design" app
|
|
24
|
+
|
|
25
|
+
Scenario: A template's form has Campaign Name, the template's fields and START
|
|
26
|
+
When user selects "BDD New Campaign {time}" in Template input
|
|
27
|
+
Then "Campaign Name" input should be visible
|
|
28
|
+
And "Owner" input should be visible
|
|
29
|
+
And "Budget" input should be visible
|
|
30
|
+
And Start button should be visible
|
|
31
|
+
|
|
32
|
+
Scenario: While a required field is empty, START is disabled
|
|
33
|
+
When user closes all views
|
|
34
|
+
And user opens the "Hit Design" app
|
|
35
|
+
And user selects "BDD New Campaign {time}" in Template input
|
|
36
|
+
Then "Owner" input should be visible
|
|
37
|
+
And Start button should be disabled
|
|
38
|
+
When user types "Ann" into "Owner" input
|
|
39
|
+
Then Start button should be enabled
|
|
40
|
+
|
|
41
|
+
Scenario: START makes the campaign under its code and name and opens it on one row with the sketcher
|
|
42
|
+
When user closes all views
|
|
43
|
+
And user opens the "Hit Design" app
|
|
44
|
+
And user selects "BDD New Campaign {time}" in Template input
|
|
45
|
+
And user types "Ann" into "Owner" input
|
|
46
|
+
And user types "BDD New Run {time}" into "Campaign Name" input
|
|
47
|
+
And user clicks on Start button
|
|
48
|
+
Then the "BDD New Run {time}" view should be current
|
|
49
|
+
And the page address should contain "campaignId=BDDNEW{time}-1"
|
|
50
|
+
And sketcher dialog should be visible
|
|
51
|
+
And the table should have the columns "Molecule, Stage, V-iD"
|
|
52
|
+
And the table should have 1 row
|
|
53
|
+
And the value of "Stage" column in row 1 should be "Idea"
|
|
54
|
+
And the "Hit Design" campaign "BDDNEW{time}-1" should be on the server
|
|
55
|
+
And the "Hit Design" campaign "BDDNEW{time}-1" on the server should have the name "BDD New Run {time}"
|
|
56
|
+
And the "Hit Design" campaign "BDDNEW{time}-1" on the server should have the status "In Progress"
|
|
57
|
+
When user clicks on CANCEL button in sketcher dialog
|
|
58
|
+
Then sketcher dialog should be absent
|
|
59
|
+
|
|
60
|
+
Scenario: A new campaign from a template with a layout opens with that layout
|
|
61
|
+
When user closes all views
|
|
62
|
+
And user opens the "Hit Design" app
|
|
63
|
+
And user selects "BDD New Layout {time}" in Template input
|
|
64
|
+
Then "Layout note" input should be visible
|
|
65
|
+
When user clicks on Start button
|
|
66
|
+
Then the "BDDNLY{time}-1" view should be current
|
|
67
|
+
And sketcher dialog should be visible
|
|
68
|
+
When user clicks on CANCEL button in sketcher dialog
|
|
69
|
+
Then bar chart viewer should be visible
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
@journey
|
|
2
|
+
Feature: PepTriage landing: Hit Triage's campaigns table, and the table settings it shares with Hit Triage
|
|
3
|
+
PepTriage lists its campaigns in Hit Triage's table, with Hit Triage's columns and row actions, and keeps the
|
|
4
|
+
table's settings under Hit Triage's keys, so a grouping chosen in one app is the other's too.
|
|
5
|
+
|
|
6
|
+
Made for the feature through the JS API (bindings/landing.ts): the PepTriage campaigns "BDD PT Alpha" (the running
|
|
7
|
+
account's) and "BDD PT Locked" (the second account's, which the running account may only view), and the Hit Triage
|
|
8
|
+
campaign "BDD PT Cross", which shares Alpha's status. The table settings kept in the browser are cleared before and
|
|
9
|
+
put back after. Needs Bio on the stand (PepTriage starts it).
|
|
10
|
+
|
|
11
|
+
Background:
|
|
12
|
+
Given user is logged in
|
|
13
|
+
And the "Bio" package is installed
|
|
14
|
+
And the campaigns tables start from their defaults, put back at feature end
|
|
15
|
+
And the "PepTriage" campaigns are on the server:
|
|
16
|
+
| code | name | status | created | molecules | author | can edit |
|
|
17
|
+
| BDDPTL{time}-1 | BDD PT Alpha {time} | BDD Shared {time} | 2099/1/13 | 3 | me | everyone |
|
|
18
|
+
| BDDPTL{time}-2 | BDD PT Locked {time} | In Progress | 2099/1/12 | 5 | sharing user | author |
|
|
19
|
+
And the "Hit Triage" campaigns are on the server:
|
|
20
|
+
| code | name | status | created | molecules |
|
|
21
|
+
| BDDPTH{time}-1 | BDD PT Cross {time} | BDD Shared {time} | 2099/1/13 | 2 |
|
|
22
|
+
And the campaigns table of "PepTriage" is sorted by "Created" descending
|
|
23
|
+
And user opens the "PepTriage" app
|
|
24
|
+
|
|
25
|
+
Scenario: The PepTriage landing lists its campaigns with Hit Triage's columns and row actions
|
|
26
|
+
Then the "PepTriage" view should be current
|
|
27
|
+
And the campaigns table should have the columns "Name, Created, Author, Total, Selected, Status"
|
|
28
|
+
And the "Total" column of the "BDD PT Locked {time}" campaign row should be "5"
|
|
29
|
+
And permissions icon of "BDD PT Alpha {time}" campaign row should be visible
|
|
30
|
+
And permissions icon of "BDD PT Locked {time}" campaign row should be hidden
|
|
31
|
+
|
|
32
|
+
Scenario: A grouping chosen in PepTriage groups the Hit Triage table as well
|
|
33
|
+
When user clicks on campaign grouping icon
|
|
34
|
+
And user picks "Status" from the open menu
|
|
35
|
+
Then "BDD Shared {time}" campaign group should be visible
|
|
36
|
+
When user opens the "Hit Triage" app
|
|
37
|
+
Then "BDD Shared {time}" campaign group should be visible
|
|
38
|
+
When user clicks on campaign grouping icon
|
|
39
|
+
And user picks "None" from the open menu
|
|
40
|
+
Then "BDD PT Cross {time}" campaign row should be visible
|
|
41
|
+
And "BDD Shared {time}" campaign group should be absent
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
@journey
|
|
2
|
+
Feature: PeptiHit landing and new campaign: the campaigns table, a campaign opened by its code, and START with Helm
|
|
3
|
+
PeptiHit is Hit Design for peptides: the same campaigns table under its own hero, a campaign opened with its code
|
|
4
|
+
in the address and the Helm column first (the name of its view is not claimed), and START making a campaign with
|
|
5
|
+
Helm, Molecule, Stage, V-iD and the HELM editor open on its first row. All but the first two start on a fresh app.
|
|
6
|
+
|
|
7
|
+
Made for the feature through the JS API (bindings/landing.ts): the campaigns "BDD PH Alpha" (status "BDD
|
|
8
|
+
Synthesis"), "BDD PH Beta" and "BDD PH Locked" (the second account's, which the running account may only view), and
|
|
9
|
+
one template per START, each with an optional field of its own ("Start note" …) so the form shows which template it
|
|
10
|
+
was built for before START is pressed (the form is rebuilt after the template file is read), none with compute,
|
|
11
|
+
"BDD PH Layout" with a scatter plot of MolWt in its layout. The campaigns the templates' keys start go with them at
|
|
12
|
+
feature end, with their rows in the hitdesign database. Needs Bio and Helm on the stand.
|
|
13
|
+
|
|
14
|
+
The Campaign Name names the new campaign, which takes nothing over from the campaign opened before it, not even from
|
|
15
|
+
one the user may only view. Opening a campaign from the landing reached without the crumb closes the previous
|
|
16
|
+
campaign's view. A new campaign from a template whose layout has a MolWt scatter plot starts that plot empty until
|
|
17
|
+
the first calculation adds the column, with no 'x: Column "MolWt" does not exist.' in it; the scatter plot does not
|
|
18
|
+
report that message as its error (getWidgetStatus().error is null), so the claim reads the plot's text.
|
|
19
|
+
|
|
20
|
+
Background:
|
|
21
|
+
Given user is logged in
|
|
22
|
+
And the "Bio" package is installed
|
|
23
|
+
And the "Helm" package is installed
|
|
24
|
+
And the campaigns tables start from their defaults, put back at feature end
|
|
25
|
+
And the "PeptiHit" templates are on the server:
|
|
26
|
+
| name | key | fields | stages | layout |
|
|
27
|
+
| BDD PH Start {time} | BDDPHS{time} | Start note: String | Design, Test | |
|
|
28
|
+
| BDD PH Named {time} | BDDPHN{time} | Named note: String | Design | |
|
|
29
|
+
| BDD PH Fresh {time} | BDDPHF{time} | Fresh note: String | Design | |
|
|
30
|
+
| BDD PH After {time} | BDDPHA{time} | After note: String | Design | |
|
|
31
|
+
| BDD PH Layout {time} | BDDPHY{time} | Layout note: String | Design | scatter plot of MolWt |
|
|
32
|
+
And the "PeptiHit" campaigns are on the server:
|
|
33
|
+
| code | name | status | created | molecules | author | can edit |
|
|
34
|
+
| BDDPHL{time}-1 | BDD PH Alpha {time} | BDD Synthesis {time} | 2099/1/14 | 3 | me | everyone |
|
|
35
|
+
| BDDPHL{time}-2 | BDD PH Beta {time} | In Progress | 2099/1/13 | 2 | me | everyone |
|
|
36
|
+
| BDDPHL{time}-3 | BDD PH Locked {time} | In Progress | 2099/1/12 | 2 | sharing user | author |
|
|
37
|
+
And the campaigns table of "PeptiHit" is sorted by "Created" descending
|
|
38
|
+
And user opens the "PeptiHit" app
|
|
39
|
+
|
|
40
|
+
Scenario: The PeptiHit landing lists the campaigns as Hit Design does, under its own hero
|
|
41
|
+
Then the "PeptiHit" view should be current
|
|
42
|
+
And the current view should show the text "Sketch Helm sequences in the spreadsheet"
|
|
43
|
+
And the campaigns table should have the columns "Name, Code, Created, Author, Last Modified by, Molecules, Status"
|
|
44
|
+
And the "Status" column of the "BDD PH Alpha {time}" campaign row should be "BDD Synthesis {time}"
|
|
45
|
+
And permissions icon of "BDD PH Alpha {time}" campaign row should be visible
|
|
46
|
+
And permissions icon of "BDD PH Locked {time}" campaign row should be hidden
|
|
47
|
+
|
|
48
|
+
Scenario: A campaign's name opens it with the Helm column first, and the crumb comes back
|
|
49
|
+
When user clicks on "BDD PH Alpha {time}" link
|
|
50
|
+
Then the page address should contain "campaignId=BDDPHL{time}-1"
|
|
51
|
+
And 1 campaign view should be open
|
|
52
|
+
And the table should have the columns "Helm, Molecule, Stage, V-iD"
|
|
53
|
+
And "Helm" column should have semantic type "Macromolecule"
|
|
54
|
+
When user clicks on "PeptiHit" link
|
|
55
|
+
Then the "PeptiHit" view should be current
|
|
56
|
+
|
|
57
|
+
Scenario: START makes a campaign with Helm, Molecule, Stage and V-iD and opens the HELM editor on it
|
|
58
|
+
When user closes all views
|
|
59
|
+
And user opens the "PeptiHit" app
|
|
60
|
+
And user selects "BDD PH Start {time}" in Template input
|
|
61
|
+
Then "Start note" input should be visible
|
|
62
|
+
When user clicks on Start button
|
|
63
|
+
Then HELM editor dialog should be visible
|
|
64
|
+
And the "BDDPHS{time}-1" view should be current
|
|
65
|
+
And the page address should contain "campaignId=BDDPHS{time}-1"
|
|
66
|
+
And the table should have the columns "Helm, Molecule, Stage, V-iD"
|
|
67
|
+
And the value of "Stage" column in row 1 should be "Design"
|
|
68
|
+
And "Helm" column should have semantic type "Macromolecule"
|
|
69
|
+
And the "PeptiHit" campaign "BDDPHS{time}-1" should be on the server
|
|
70
|
+
When user clicks on CANCEL button in HELM editor dialog
|
|
71
|
+
Then HELM editor dialog should be absent
|
|
72
|
+
|
|
73
|
+
Scenario: The Campaign Name typed before START names the new campaign
|
|
74
|
+
When user closes all views
|
|
75
|
+
And user opens the "PeptiHit" app
|
|
76
|
+
And user selects "BDD PH Named {time}" in Template input
|
|
77
|
+
Then "Named note" input should be visible
|
|
78
|
+
When user types "BDD PH Named Run {time}" into "Campaign Name" input
|
|
79
|
+
And user clicks on Start button
|
|
80
|
+
Then HELM editor dialog should be visible
|
|
81
|
+
And the "PeptiHit" campaign "BDDPHN{time}-1" should be on the server
|
|
82
|
+
And the "PeptiHit" campaign "BDDPHN{time}-1" on the server should have the name "BDD PH Named Run {time}"
|
|
83
|
+
When user clicks on CANCEL button in HELM editor dialog
|
|
84
|
+
|
|
85
|
+
Scenario: A new campaign does not take over the campaign opened before it
|
|
86
|
+
When user closes all views
|
|
87
|
+
And user opens the "PeptiHit" app
|
|
88
|
+
And user clicks on "BDD PH Alpha {time}" link
|
|
89
|
+
Then the page address should contain "campaignId=BDDPHL{time}-1"
|
|
90
|
+
When user clicks on "PeptiHit" link
|
|
91
|
+
And user selects "BDD PH Fresh {time}" in Template input
|
|
92
|
+
Then "Fresh note" input should be visible
|
|
93
|
+
When user clicks on Start button
|
|
94
|
+
Then HELM editor dialog should be visible
|
|
95
|
+
And the "PeptiHit" campaign "BDDPHF{time}-1" should be on the server
|
|
96
|
+
And the "PeptiHit" campaign "BDDPHF{time}-1" on the server should have the status "In Progress"
|
|
97
|
+
When user clicks on CANCEL button in HELM editor dialog
|
|
98
|
+
|
|
99
|
+
Scenario: After a campaign the user may only view, START still makes and opens the new campaign
|
|
100
|
+
When user closes all views
|
|
101
|
+
And user opens the "PeptiHit" app
|
|
102
|
+
And user clicks on "BDD PH Locked {time}" link
|
|
103
|
+
Then the page address should contain "campaignId=BDDPHL{time}-3"
|
|
104
|
+
When user clicks on "PeptiHit" link
|
|
105
|
+
And user selects "BDD PH After {time}" in Template input
|
|
106
|
+
Then "After note" input should be visible
|
|
107
|
+
When user clicks on Start button
|
|
108
|
+
Then the "PeptiHit" campaign "BDDPHA{time}-1" should be on the server
|
|
109
|
+
And the "BDDPHA{time}-1" view should be current
|
|
110
|
+
And no error or warning balloon should have been shown
|
|
111
|
+
|
|
112
|
+
Scenario: Opening a campaign from the landing closes the campaign opened before it
|
|
113
|
+
When user closes all views
|
|
114
|
+
And user opens the "PeptiHit" app
|
|
115
|
+
And user clicks on "BDD PH Beta {time}" link
|
|
116
|
+
Then the page address should contain "campaignId=BDDPHL{time}-2"
|
|
117
|
+
When user switches to the "PeptiHit" view
|
|
118
|
+
And user clicks on "BDD PH Locked {time}" link
|
|
119
|
+
Then the page address should contain "campaignId=BDDPHL{time}-3"
|
|
120
|
+
And 1 campaign view should be open
|
|
121
|
+
|
|
122
|
+
Scenario: A new campaign from a template with a layout opens with viewers that work
|
|
123
|
+
When user closes all views
|
|
124
|
+
And user opens the "PeptiHit" app
|
|
125
|
+
And user selects "BDD PH Layout {time}" in Template input
|
|
126
|
+
Then "Layout note" input should be visible
|
|
127
|
+
When user clicks on Start button
|
|
128
|
+
Then HELM editor dialog should be visible
|
|
129
|
+
When user clicks on CANCEL button in HELM editor dialog
|
|
130
|
+
Then the "BDDPHY{time}-1" view should be current
|
|
131
|
+
And scatter plot viewer should be visible
|
|
132
|
+
And scatter plot viewer should not contain text "does not exist"
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
Feature: A HELM edited in a PeptiHit campaign becomes its molecule and gets its V-iD
|
|
2
|
+
A PeptiHit campaign opens as a table view whose Helm column the app tags as HELM, under the crumbs "PeptiHit › …".
|
|
3
|
+
A Helm cell's context menu adds Add new row, Duplicate Sequence and Re-Run Calculations to the platform's and Bio's
|
|
4
|
+
items. A HELM committed in the HELM editor is converted to atoms (Bio's
|
|
5
|
+
toAtomicLevel), the molecule goes into the Molecule column, the template's compute runs on it (here the JS-only
|
|
6
|
+
Chemical Properties, whose MW column the first result adds), the campaign is saved, and the molecule is registered
|
|
7
|
+
with its V-iD — in that order: the V-iD reaches the server with the next save, so it is claimed in the view.
|
|
8
|
+
|
|
9
|
+
The view and its crumb are named after the campaign from the first open, not after its code until the first save.
|
|
10
|
+
|
|
11
|
+
The campaign is made for the feature through the JS API (bindings/pepti-hit.ts) and opened by its link. The peptide
|
|
12
|
+
is one only bdd features use, so the dictionary row its registration makes is the feature's own and goes with the
|
|
13
|
+
campaign at feature end.
|
|
14
|
+
|
|
15
|
+
Background:
|
|
16
|
+
Given user is logged in
|
|
17
|
+
And the PeptiHit campaign "BDD Helm" with the stages "Idea, Design" and a table of:
|
|
18
|
+
| Helm | Molecule | Stage | V-iD |
|
|
19
|
+
| PEPTIDE1{A.G}$$$$V2.0 | | Idea | |
|
|
20
|
+
When user opens the campaign "BDD Helm" by its link
|
|
21
|
+
|
|
22
|
+
Scenario: The campaign opens with a HELM column, and a Helm cell's menu has the package's row actions
|
|
23
|
+
Then the table should have the columns "Helm, Molecule, Stage, V-iD"
|
|
24
|
+
And "Helm" column should have semantic type "Macromolecule"
|
|
25
|
+
And "Helm" column should have units "helm"
|
|
26
|
+
And "PeptiHit" link should be visible
|
|
27
|
+
When user right-clicks on the "cell 1 of Helm" area of grid
|
|
28
|
+
Then the open menu should list "Add new row"
|
|
29
|
+
And the open menu should list "Duplicate Sequence"
|
|
30
|
+
And the open menu should list "Re-Run Calculations"
|
|
31
|
+
|
|
32
|
+
Scenario: A HELM committed in the HELM editor fills the Molecule, the template's property and the V-iD, and is saved
|
|
33
|
+
When user double-clicks on the "cell 1 of Helm" area of grid
|
|
34
|
+
Then the HELM editor should be open
|
|
35
|
+
When user writes the HELM "PEPTIDE1{W.Y.W.Y.W.Y.K}$$$$V2.0" in the HELM editor
|
|
36
|
+
And user clicks on OK in the HELM editor
|
|
37
|
+
Then the value of "Helm" column in row 1 should match "^PEPTIDE1[{]W[.]Y[.]W[.]Y[.]W[.]Y[.]K[}]"
|
|
38
|
+
And the campaign "BDD Helm" should be saved with a value matching "^1194[.]3" in row 1 of the "MW" column
|
|
39
|
+
And the value of "MW" column in row 1 should match "^1194[.]3"
|
|
40
|
+
And the value of "Molecule" column in row 1 should match "M END"
|
|
41
|
+
And the value of "V-iD" column in row 1 should match "^V[0-9]{6}$"
|
|
42
|
+
And no error or warning balloon should have been shown
|
|
43
|
+
|
|
44
|
+
Scenario: The campaign view is named after the campaign from the first open
|
|
45
|
+
Then "PeptiHit" breadcrumb should be visible
|
|
46
|
+
And the "BDD Helm" view should be current
|
|
47
|
+
And "BDD Helm" breadcrumb should be visible
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
@journey
|
|
2
|
+
Feature: Hit Design template editor: name and key checks, fields, stages, submit function, layout, CREATE and CANCEL
|
|
3
|
+
The "+" icon of the Template picker opens the New Template view, its crumb leading back to Hit Design: Details
|
|
4
|
+
(Name, Key, Layout), Additional fields (rows of Name, Type, Required, added with "Add field"), Stages (rows added
|
|
5
|
+
with "Add stage"), Compute, Submit, and CANCEL and CREATE in a footer that stays in view. A name or a key that is
|
|
6
|
+
empty or taken shows its error under the input, and CREATE is disabled while it does; CREATE writes <name>.json
|
|
7
|
+
with the fields and stages, a row still being typed in included, the submit function and the layout, and comes
|
|
8
|
+
back to the landing with the new template selected; CANCEL writes nothing, and the crumb back closes the editor,
|
|
9
|
+
asking first once something was typed. Every scenario starts on a freshly opened app.
|
|
10
|
+
|
|
11
|
+
The descriptors cannot be listed in this feature (some stands list them through a service of Chem's): the Compute
|
|
12
|
+
section says why, and the rest of the editor works without them. Picking descriptors is a package test.
|
|
13
|
+
|
|
14
|
+
A template "BDD Editor Existing" is made for the feature through the JS API (bindings/landing.ts) to collide with;
|
|
15
|
+
the templates the scenarios name go at feature end. The layout file is the bdd project's fixtures/bar-chart.layout
|
|
16
|
+
(a grid and a bar chart of Stage), opened from disk.
|
|
17
|
+
|
|
18
|
+
Background:
|
|
19
|
+
Given user is logged in
|
|
20
|
+
And the descriptors cannot be listed, put back at feature end
|
|
21
|
+
And the "Hit Design" templates are on the server:
|
|
22
|
+
| name | key |
|
|
23
|
+
| BDD Editor Existing {time} | BDDEDX{time} |
|
|
24
|
+
And the "Hit Design" templates named "BDD Editor New {time}, BDD Editor Cancelled {time}" are removed now and at feature end
|
|
25
|
+
And user opens the "Hit Design" app
|
|
26
|
+
|
|
27
|
+
Scenario: The editor has Details, Additional fields, Stages, Compute and Submit, with CANCEL and CREATE
|
|
28
|
+
When user clicks on "New Template" icon
|
|
29
|
+
Then the "New Template" view should be current
|
|
30
|
+
And "Hit Design" link should be visible
|
|
31
|
+
And template name input should be visible
|
|
32
|
+
And template key input should be visible
|
|
33
|
+
And Layout input should be visible
|
|
34
|
+
And "Submit function" input should be visible
|
|
35
|
+
And the current view should show the text "Additional fields"
|
|
36
|
+
And the current view should show the text "Stages"
|
|
37
|
+
And the current view should show the text "Compute"
|
|
38
|
+
And the current view should show the text "Could not list the descriptors: the descriptors are not available"
|
|
39
|
+
And Cancel button should be visible
|
|
40
|
+
And Create button should be visible
|
|
41
|
+
When user clicks on Cancel button
|
|
42
|
+
Then the "Hit Design" view should be current
|
|
43
|
+
|
|
44
|
+
Scenario: A name or a key that is empty or taken shows its error, a free one clears it
|
|
45
|
+
When user closes all views
|
|
46
|
+
And user opens the "Hit Design" app
|
|
47
|
+
And user clicks on "New Template" icon
|
|
48
|
+
And user types "BDD Editor Existing {time}" into template name input
|
|
49
|
+
Then the template editor should show the error "A template with this name already exists"
|
|
50
|
+
When user types "BDD Editor Free {time}" into template name input
|
|
51
|
+
Then the template editor should not show the error "A template with this name already exists"
|
|
52
|
+
When user types "BDDEDX{time}" into template key input
|
|
53
|
+
Then the template editor should show the error "BDDEDX{time} is used by BDD Editor Existing {time}"
|
|
54
|
+
When user types "BDDEDF{time}" into template key input
|
|
55
|
+
Then the template editor should not show the error "BDDEDX{time} is used by BDD Editor Existing {time}"
|
|
56
|
+
When user clears template name input
|
|
57
|
+
Then the template editor should show the error "Value can't be empty"
|
|
58
|
+
When user clicks on Cancel button
|
|
59
|
+
Then the "Hit Design" view should be current
|
|
60
|
+
|
|
61
|
+
Scenario: While the name is taken, CREATE is disabled
|
|
62
|
+
When user closes all views
|
|
63
|
+
And user opens the "Hit Design" app
|
|
64
|
+
And user clicks on "New Template" icon
|
|
65
|
+
Then Create button should be disabled
|
|
66
|
+
When user types "BDD Editor Existing {time}" into template name input
|
|
67
|
+
And user types "BDDEDF{time}" into template key input
|
|
68
|
+
Then the template editor should show the error "A template with this name already exists"
|
|
69
|
+
And Create button should be disabled
|
|
70
|
+
When user types "BDD Editor Free {time}" into template name input
|
|
71
|
+
Then Create button should be enabled
|
|
72
|
+
When user clicks on Cancel button
|
|
73
|
+
Then the "Hit Design" view should be current
|
|
74
|
+
|
|
75
|
+
Scenario: CREATE writes the fields, stages, submit function and layout, the rows being typed included, and comes back with the template selected
|
|
76
|
+
When user closes all views
|
|
77
|
+
And user opens the "Hit Design" app
|
|
78
|
+
And user clicks on "New Template" icon
|
|
79
|
+
And user types "BDD Editor New {time}" into template name input
|
|
80
|
+
And user types "BDDEDN{time}" into template key input
|
|
81
|
+
And user uploads "fixtures/bar-chart.layout" through "Open file" icon in Layout input
|
|
82
|
+
And user adds the required field "Owner" of type "String" in the template editor
|
|
83
|
+
Then the template editor should list the fields "Owner (String, required)"
|
|
84
|
+
When user types the field "Due" of type "Date" in the template editor without adding it
|
|
85
|
+
And user adds the stage "Design" in the template editor
|
|
86
|
+
Then the template editor should list the stages "Design"
|
|
87
|
+
When user types the stage "Make" in the template editor without adding it
|
|
88
|
+
And user selects "Demo File Submit" in "Submit function" input
|
|
89
|
+
And user clicks on Create button
|
|
90
|
+
Then the "Hit Design" view should be current
|
|
91
|
+
And Template input should have the value "BDD Editor New {time}"
|
|
92
|
+
And "Owner" input should be visible
|
|
93
|
+
And the "Hit Design" template "BDD Editor New {time}" on the server should have the key "BDDEDN{time}"
|
|
94
|
+
And the "Hit Design" template "BDD Editor New {time}" on the server should have the fields "Owner (String, required), Due (Date)"
|
|
95
|
+
And the "Hit Design" template "BDD Editor New {time}" on the server should have the stages "Design, Make"
|
|
96
|
+
And the "Hit Design" template "BDD Editor New {time}" on the server should have the submit "HitTriage:demoFileSubmit"
|
|
97
|
+
And the "Hit Design" template "BDD Editor New {time}" on the server should have the layout "a layout"
|
|
98
|
+
And no error or warning balloon should have been shown
|
|
99
|
+
|
|
100
|
+
Scenario: CANCEL closes the editor and writes no template
|
|
101
|
+
When user closes all views
|
|
102
|
+
And user opens the "Hit Design" app
|
|
103
|
+
And user clicks on "New Template" icon
|
|
104
|
+
And user types "BDD Editor Cancelled {time}" into template name input
|
|
105
|
+
And user types "BDDEDC{time}" into template key input
|
|
106
|
+
And user clicks on Cancel button
|
|
107
|
+
Then the "Hit Design" view should be current
|
|
108
|
+
And Template input should offer the choice "BDD Editor Existing {time}"
|
|
109
|
+
And Template input should not offer the choice "BDD Editor Cancelled {time}"
|
|
110
|
+
And the "Hit Design" template "BDD Editor Cancelled {time}" should not be on the server
|
|
111
|
+
|
|
112
|
+
Scenario: The crumb back to Hit Design closes the editor, and asks first once something was typed
|
|
113
|
+
When user closes all views
|
|
114
|
+
And user opens the "Hit Design" app
|
|
115
|
+
And user clicks on "New Template" icon
|
|
116
|
+
And user clicks on "Hit Design" link
|
|
117
|
+
Then the "Hit Design" view should be current
|
|
118
|
+
And the "New Template" view should not be open
|
|
119
|
+
When user clicks on "New Template" icon
|
|
120
|
+
And user types "BDD Editor Cancelled {time}" into template name input
|
|
121
|
+
And user clicks on "Hit Design" link
|
|
122
|
+
Then "Discard the new template?" dialog should be visible
|
|
123
|
+
When user clicks on Cancel button in "Discard the new template?" dialog
|
|
124
|
+
Then the "New Template" view should be current
|
|
125
|
+
And template name input should have the value "BDD Editor Cancelled {time}"
|
|
126
|
+
When user clicks on "Hit Design" link
|
|
127
|
+
And user clicks on Discard button in "Discard the new template?" dialog
|
|
128
|
+
Then the "Hit Design" view should be current
|
|
129
|
+
And the "New Template" view should not be open
|
|
130
|
+
And the "Hit Design" template "BDD Editor Cancelled {time}" should not be on the server
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
@journey
|
|
2
|
+
Feature: Hit Design template picker: choosing, adding, cloning and deleting templates
|
|
3
|
+
The Template picker of the New Campaign form lists the app's templates by file name and carries three icons beside
|
|
4
|
+
it: New Template (+), Clone template and Delete template. A choice rebuilds the form below it from the template;
|
|
5
|
+
"+" and Clone open the New Template editor; Delete asks before it removes the template file, then moves the picker
|
|
6
|
+
to another template. Every scenario starts on a freshly opened app.
|
|
7
|
+
|
|
8
|
+
Two templates are made for the feature through the JS API (bindings/landing.ts): "BDD Picker Source", with a
|
|
9
|
+
required field Owner, the stages Design and Make, the Demo File Submit function and a layout with a bar chart; and
|
|
10
|
+
"BDD Picker Doomed", which the last scenario deletes. A clone saved as "BDD Picker Clone" goes at feature end.
|
|
11
|
+
Clone takes the template the form was last built for, so it is pressed once the form shows Owner.
|
|
12
|
+
|
|
13
|
+
A clone proposes "<name> (copy)" and the key with the next free number, so CREATE is enabled at once; its Submit
|
|
14
|
+
function shows the function by its friendly name; it carries the template's layout. The editor opens while the
|
|
15
|
+
descriptors cannot be listed (template-editor.feature).
|
|
16
|
+
|
|
17
|
+
Background:
|
|
18
|
+
Given user is logged in
|
|
19
|
+
And the descriptors cannot be listed, put back at feature end
|
|
20
|
+
And the "Hit Design" templates are on the server:
|
|
21
|
+
| name | key | fields | stages | submit | layout |
|
|
22
|
+
| BDD Picker Source {time} | BDDPKS{time} | Owner: String required | Design, Make | Demo File Submit | bar chart of Stage |
|
|
23
|
+
| BDD Picker Doomed {time} | BDDPKD{time} | | Design | | |
|
|
24
|
+
And the "Hit Design" templates named "BDD Picker Clone {time}" are removed now and at feature end
|
|
25
|
+
And user opens the "Hit Design" app
|
|
26
|
+
|
|
27
|
+
Scenario: The picker lists the templates, offers New, Clone and Delete, and a choice builds its form
|
|
28
|
+
Then Template input should offer the choice "BDD Picker Source {time}"
|
|
29
|
+
And Template input should offer the choice "BDD Picker Doomed {time}"
|
|
30
|
+
And "New Template" icon should be visible
|
|
31
|
+
And "Clone template" icon should be visible
|
|
32
|
+
And "Delete template" icon should be visible
|
|
33
|
+
When user selects "BDD Picker Source {time}" in Template input
|
|
34
|
+
Then "Campaign Name" input should be visible
|
|
35
|
+
And "Owner" input should be visible
|
|
36
|
+
And Start button should be visible
|
|
37
|
+
|
|
38
|
+
Scenario: The "+" icon opens an empty New Template editor, and CANCEL comes back
|
|
39
|
+
When user closes all views
|
|
40
|
+
And user opens the "Hit Design" app
|
|
41
|
+
And user clicks on "New Template" icon
|
|
42
|
+
Then the "New Template" view should be current
|
|
43
|
+
And the page address should contain "/new-template"
|
|
44
|
+
And template name input should have the value ""
|
|
45
|
+
And template key input should have the value ""
|
|
46
|
+
When user clicks on Cancel button
|
|
47
|
+
Then the "Hit Design" view should be current
|
|
48
|
+
|
|
49
|
+
Scenario: Clone fills the editor with the selected template's fields and stages
|
|
50
|
+
When user closes all views
|
|
51
|
+
And user opens the "Hit Design" app
|
|
52
|
+
And user selects "BDD Picker Source {time}" in Template input
|
|
53
|
+
Then "Owner" input should be visible
|
|
54
|
+
When user clicks on "Clone template" icon
|
|
55
|
+
Then the "New Template" view should be current
|
|
56
|
+
And the template editor should list the fields "Owner (String, required)"
|
|
57
|
+
And the template editor should list the stages "Design, Make"
|
|
58
|
+
When user clicks on Cancel button
|
|
59
|
+
Then the "Hit Design" view should be current
|
|
60
|
+
|
|
61
|
+
Scenario: A clone proposes a name and a key no template has
|
|
62
|
+
When user closes all views
|
|
63
|
+
And user opens the "Hit Design" app
|
|
64
|
+
And user selects "BDD Picker Source {time}" in Template input
|
|
65
|
+
Then "Owner" input should be visible
|
|
66
|
+
When user clicks on "Clone template" icon
|
|
67
|
+
Then the "New Template" view should be current
|
|
68
|
+
And template name input should have the value "BDD Picker Source {time} (copy)"
|
|
69
|
+
And template key input should not have the value "BDDPKS{time}"
|
|
70
|
+
And Create button should be enabled
|
|
71
|
+
When user clicks on Cancel button
|
|
72
|
+
Then the "Hit Design" view should be current
|
|
73
|
+
|
|
74
|
+
Scenario: A clone keeps the template's submit function
|
|
75
|
+
When user closes all views
|
|
76
|
+
And user opens the "Hit Design" app
|
|
77
|
+
And user selects "BDD Picker Source {time}" in Template input
|
|
78
|
+
Then "Owner" input should be visible
|
|
79
|
+
When user clicks on "Clone template" icon
|
|
80
|
+
Then the "New Template" view should be current
|
|
81
|
+
And "Submit function" input should have the value "Demo File Submit"
|
|
82
|
+
When user clicks on Cancel button
|
|
83
|
+
Then the "Hit Design" view should be current
|
|
84
|
+
|
|
85
|
+
Scenario: A clone saved under a new name carries the template's layout, and CREATE comes back with it selected
|
|
86
|
+
When user closes all views
|
|
87
|
+
And user opens the "Hit Design" app
|
|
88
|
+
And user selects "BDD Picker Source {time}" in Template input
|
|
89
|
+
Then "Owner" input should be visible
|
|
90
|
+
When user clicks on "Clone template" icon
|
|
91
|
+
Then the "New Template" view should be current
|
|
92
|
+
When user types "BDD Picker Clone {time}" into template name input
|
|
93
|
+
And user types "BDDPKC{time}" into template key input
|
|
94
|
+
And user clicks on Create button
|
|
95
|
+
Then the "Hit Design" view should be current
|
|
96
|
+
And Template input should have the value "BDD Picker Clone {time}"
|
|
97
|
+
And the "Hit Design" template "BDD Picker Clone {time}" on the server should have the fields "Owner (String, required)"
|
|
98
|
+
And the "Hit Design" template "BDD Picker Clone {time}" on the server should have the layout "a layout"
|
|
99
|
+
|
|
100
|
+
Scenario: Delete asks for a confirmation, removes the template and moves the picker to another one, with no error
|
|
101
|
+
When user closes all views
|
|
102
|
+
And user opens the "Hit Design" app
|
|
103
|
+
And user selects "BDD Picker Doomed {time}" in Template input
|
|
104
|
+
And user clicks on "Delete template" icon
|
|
105
|
+
Then "Delete template" dialog should contain text "Are you sure you want to delete template"
|
|
106
|
+
And "Delete template" dialog should contain text "BDD Picker Doomed {time}"
|
|
107
|
+
When user confirms the "Delete template" dialog
|
|
108
|
+
Then the "Hit Design" template "BDD Picker Doomed {time}" should not be on the server
|
|
109
|
+
And an info balloon should have been shown
|
|
110
|
+
And no error or warning balloon should have been shown
|
|
111
|
+
And Template input should not offer the choice "BDD Picker Doomed {time}"
|
|
112
|
+
And Template input should not have the value ""
|