Skip to content

Commit

Permalink
SHIBUI-2394
Browse files Browse the repository at this point in the history
Various test fixes in support of 2394.
  • Loading branch information
Bill Smith committed Nov 9, 2022
1 parent c60b1d2 commit 64364d5
Show file tree
Hide file tree
Showing 10 changed files with 165 additions and 92 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,11 @@ class SeleniumSIDETest extends Specification {
'SHIBUI-2267: Verify new RPO CRUD' | '/SHIBUI-2267.side'
'SHIBUI-2380: OIDC metadata source CRUD' | '/SHIBUI-2380.side'
'SHIBUI-1674: Verify metadata source tooltips' | '/SHIBUI-1674-1.side'
// 'SHIBUI-1674: Verify metadata provider tooltips' | '/SHIBUI-1674-2.side'
'SHIBUI-1674: Verify metadata provider tooltips' | '/SHIBUI-1674-2.side'
'SHIBUI-1674: Verify advanced menu tooltips' | '/SHIBUI-1674-3.side'
'SHIBUI-2270: Verify property set CRUD' | '/SHIBUI-2270-1.side'
'SHIBUI-2270: Verify full property set' | '/SHIBUI-2270-2.side'
'SHIBUI-2268: Verify Algorithm Filter' | '/SHIBUI-2268.side'
'SHIBUI-2269: Verify XML generation of external filters' | '/SHIBUI-2269.side'
}
}
}
2 changes: 1 addition & 1 deletion backend/src/integration/resources/SHIBUI-1334-1.side
Original file line number Diff line number Diff line change
Expand Up @@ -2748,7 +2748,7 @@
"id": "bde2bbbb-df66-4e07-a770-ec9125fe3e81",
"comment": "",
"command": "pause",
"target": "7000",
"target": "10000",
"targets": [],
"value": ""
}, {
Expand Down
2 changes: 1 addition & 1 deletion backend/src/integration/resources/SHIBUI-1407-1.side
Original file line number Diff line number Diff line change
Expand Up @@ -2514,7 +2514,7 @@
"id": "39637add-5eb4-40d0-b840-8eb1972ede0f",
"comment": "",
"command": "pause",
"target": "10000",
"target": "15000",
"targets": [],
"value": ""
}, {
Expand Down
16 changes: 16 additions & 0 deletions backend/src/integration/resources/SHIBUI-1503-1.side
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,22 @@
["xpath=//div[4]/a", "xpath:position"]
],
"value": ""
}, {
"id": "a43898de-b92d-443e-8686-fba526f403ec",
"comment": "",
"command": "click",
"target": "id=enable-btn",
"targets": [
["id=enable-btn", "id"],
["linkText=Enable Metadata Sources1", "linkText"],
["css=#enable-btn", "css:finder"],
["xpath=//a[@id='enable-btn']", "xpath:attributes"],
["xpath=//div[@id='root']/div/main/div/section/div/div[2]/div/div/a", "xpath:idRelative"],
["xpath=//a[contains(@href, '/dashboard/admin/actions/enable')]", "xpath:href"],
["xpath=//div[2]/div/div/a", "xpath:position"],
["xpath=//a[contains(.,'Enable Metadata Sources1')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "b1a8c4b1-d164-4f32-adb3-6cfb76951f28",
"comment": "",
Expand Down
16 changes: 16 additions & 0 deletions backend/src/integration/resources/SHIBUI-1503-2.side
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,22 @@
"target": "css=.nav-item > .d-flex",
"targets": [],
"value": ""
}, {
"id": "1f9a1cc1-00d5-4ecd-a0d1-3cec1683286d",
"comment": "",
"command": "click",
"target": "id=user-access-btn",
"targets": [
["id=user-access-btn", "id"],
["linkText=User Access Request2", "linkText"],
["css=#user-access-btn", "css:finder"],
["xpath=//a[@id='user-access-btn']", "xpath:attributes"],
["xpath=//div[@id='root']/div/main/div/section/div/div[2]/div/div[3]/a", "xpath:idRelative"],
["xpath=//a[contains(@href, '/dashboard/admin/actions/useraccess')]", "xpath:href"],
["xpath=//div[2]/div/div[3]/a", "xpath:position"],
["xpath=//a[contains(.,'User Access Request2')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "a98143b5-647f-4e7e-b920-f6e6875d7372",
"comment": "",
Expand Down
38 changes: 19 additions & 19 deletions backend/src/integration/resources/SHIBUI-1503-3.side
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,14 @@
"id": "659e4909-239b-4895-aa54-8bf3a6bd57cd",
"comment": "",
"command": "waitForElementVisible",
"target": "xpath=//table/tbody/tr[td[.='none2']]",
"target": "xpath=//table/tbody/tr[td[.='Approver']]",
"targets": [],
"value": "30000"
}, {
"id": "dc06ff49-c076-4f60-95d1-a42514cc6038",
"comment": "",
"command": "select",
"target": "xpath=//table/tbody/tr[td[.='none2']]/td[4]/select",
"target": "xpath=//table/tbody/tr[td[.='Approver']]/td[4]/select",
"targets": [],
"value": "label=ROLE_USER"
}, {
Expand Down Expand Up @@ -168,7 +168,7 @@
["xpath=//input[@name='username']", "xpath:attributes"],
["xpath=//input", "xpath:position"]
],
"value": "none2"
"value": "Approver"
}, {
"id": "c8bf8ea5-1f75-4a40-aca4-9dfa6a6056dc",
"comment": "",
Expand All @@ -180,7 +180,7 @@
["xpath=//input[@name='password']", "xpath:attributes"],
["xpath=//tr[2]/td[2]/input", "xpath:position"]
],
"value": "none2pass"
"value": "password"
}, {
"id": "ba66c45f-2436-4fe7-a5a9-31b55ffe8118",
"comment": "",
Expand Down Expand Up @@ -214,21 +214,21 @@
["xpath=//a[contains(.,'Metadata Sources')]", "xpath:innerText"]
],
"value": "Metadata Sources"
},{
"id": "4ec2c493-85e4-403b-9b09-031c5728f498",
"comment": "",
"command": "open",
"target": "/api/heheheheheheheWipeout",
"targets": [],
"value": ""
}, {
"id": "e074980a-8f21-4c22-8412-c4b6fcdcd1a4",
"comment": "",
"command": "assertText",
"target": "css=body",
"targets": [],
"value": "yes, you did it"
}]
}, {
"id": "4ec2c493-85e4-403b-9b09-031c5728f498",
"comment": "",
"command": "open",
"target": "/api/heheheheheheheWipeout",
"targets": [],
"value": ""
}, {
"id": "e074980a-8f21-4c22-8412-c4b6fcdcd1a4",
"comment": "",
"command": "assertText",
"target": "css=body",
"targets": [],
"value": "yes, you did it"
}]
}],
"suites": [{
"id": "173aaf44-c763-416e-ab3c-d5afd5ffcd29",
Expand Down
13 changes: 9 additions & 4 deletions backend/src/integration/resources/SHIBUI-1674-2.side
Original file line number Diff line number Diff line change
Expand Up @@ -984,17 +984,22 @@
"id": "aea0e033-111e-4a5d-8038-ec222786a695",
"comment": "",
"command": "mouseOver",
"target": "css=.row:nth-child(4) .svg-inline--fa:nth-child(2)",
"target": "css=#root_metadataFilters_2_removeEmptyEntitiesDescriptors-group .info-icon",
"targets": [
["css=.row:nth-child(4) .svg-inline--fa:nth-child(2)", "css:finder"]
["css=#root_metadataFilters_2_removeEmptyEntitiesDescriptors-group .info-icon", "css:finder"],
["xpath=(//button[@type='button'])[13]", "xpath:attributes"],
["xpath=//div[@id='root_metadataFilters_2_removeEmptyEntitiesDescriptors-group']/div/div/div/label/span/button", "xpath:idRelative"],
["xpath=//div[4]/div/div/div/div/div/label/span/button", "xpath:position"]
],
"value": ""
}, {
"id": "80e0d456-3951-4858-8423-7e04d6debb96",
"comment": "",
"command": "assertText",
"target": "css=div[role=\"tooltip\"]",
"targets": [],
"targets": [
["css=#root_metadataFilters_2_removeRolelessEntityDescriptors-group path", "css:finder"]
],
"value": "Controls whether to keep entities descriptors that contain no entity descriptors. Note: If this attribute is set to false, the resulting output may not be schema-valid since an <md:EntitiesDescriptor> element must include at least one child element, either an <md:EntityDescriptor> element or an <md:EntitiesDescriptor> element."
}, {
"id": "148a84ef-0353-425d-9a63-79ccaa01478d",
Expand Down Expand Up @@ -1337,7 +1342,7 @@
"command": "assertText",
"target": "css=div[role=\"tooltip\"]",
"targets": [],
"value": "Whether to remove any existing formats from a role if any are added by the filter (unmodified roles will be untouched regardless of this setting)"
"value": "Whether to use the SHA1 Signing Algorithm. In cryptography, SHA-1 (Secure Hash Algorithm 1) is cryptographically broken but still widely used. It takes an input and produces a 160-bit (20-byte) hash value."
}, {
"id": "59d268fc-f9ba-4c9c-b412-f17ca72b67d1",
"comment": "",
Expand Down
57 changes: 39 additions & 18 deletions backend/src/integration/resources/SHIBUI-1740-1.side
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,27 @@
"target": "id=advanced-nav-dropdown-toggle",
"targets": [],
"value": "30000"
}, {
"id": "dc2bc3fa-631d-43be-b9b9-d92bcf1619ec",
"comment": "",
"command": "open",
"target": "/api/heheheheheheheWipeout",
"targets": [],
"value": ""
}, {
"id": "e3ef0c57-5d19-4f25-b1b3-63f1520fbf07",
"comment": "",
"command": "assertText",
"target": "css=body",
"targets": [],
"value": "yes, you did it"
}, {
"id": "7a7878a7-4258-42b9-b3d9-6b67d582faa6",
"comment": "",
"command": "open",
"target": "/",
"targets": [],
"value": ""
}, {
"id": "0bdcd2aa-3e9e-41be-96d2-abf567538990",
"comment": "",
Expand Down Expand Up @@ -186,9 +207,9 @@
"id": "62b9e743-cc16-4931-9064-06c15b057318",
"comment": "",
"command": "click",
"target": "xpath=//td[contains(.,'Test Group')]/parent::*/td[3]/a",
"target": "xpath=//td[contains(.,'Test Group')]/parent::*/td[4]/a",
"targets": [
["css=tr:nth-child(6) .text-primary path", "css:finder"]
["css=tr:nth-child(10) .text-primary path", "css:finder"]
],
"value": ""
}, {
Expand Down Expand Up @@ -279,7 +300,7 @@
"id": "3f463655-29df-4c52-bc53-b96b60b845fd",
"comment": "",
"command": "click",
"target": "xpath=//td[contains(.,'Test Group')]/parent::*/td[3]/button",
"target": "xpath=//td[contains(.,'Test Group')]/parent::*/td[4]/button",
"targets": [
["css=tr:nth-child(6) .text-danger > .svg-inline--fa", "css:finder"]
],
Expand All @@ -302,21 +323,21 @@
"target": "xpath=//li[contains(.,'Deleted group successfully.')]",
"targets": [],
"value": "Deleted group successfully."
},{
"id": "4ec2c493-85e4-403b-9b09-031c5728f498",
"comment": "",
"command": "open",
"target": "/api/heheheheheheheWipeout",
"targets": [],
"value": ""
}, {
"id": "e074980a-8f21-4c22-8412-c4b6fcdcd1a4",
"comment": "",
"command": "assertText",
"target": "css=body",
"targets": [],
"value": "yes, you did it"
}]
}, {
"id": "4ec2c493-85e4-403b-9b09-031c5728f498",
"comment": "",
"command": "open",
"target": "/api/heheheheheheheWipeout",
"targets": [],
"value": ""
}, {
"id": "e074980a-8f21-4c22-8412-c4b6fcdcd1a4",
"comment": "",
"command": "assertText",
"target": "css=body",
"targets": [],
"value": "yes, you did it"
}]
}],
"suites": [{
"id": "bb170239-568b-4e90-991e-1a5882465aaa",
Expand Down
Loading

0 comments on commit 64364d5

Please sign in to comment.