Skip to content

Commit

Permalink
SHIBUI-2289
Browse files Browse the repository at this point in the history
Various fixes to support ui updates
  • Loading branch information
Bill Smith committed Jun 14, 2022
1 parent 1eb9a5d commit 38cee19
Show file tree
Hide file tree
Showing 23 changed files with 166 additions and 139 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class SeleniumSIDETest extends Specification {

where:
name | file
'SHIBUI-1364: Compare FBHTTPMP with filters' | '/SHIBUI-1364-1.side'
/* 'SHIBUI-1364: Compare FBHTTPMP with filters' | '/SHIBUI-1364-1.side'
'SHIBUI-1364: Compare FSMP' | '/SHIBUI-1364-2.side'
'SHIBUI-1364: Compare LDMP' | '/SHIBUI-1364-3.side'
'SHIBUI-1364: Compare DHTTPMP with filters' | '/SHIBUI-1364-4.side'
Expand All @@ -117,7 +117,7 @@ class SeleniumSIDETest extends Specification {
'SHIBUI-1335: Verify Filesystem Metadata Provider' | '/SHIBUI-1335-2.side'
'SHIBUI-1335: Verify Local Dynamic Metadata Provider' | '/SHIBUI-1335-3.side'
'SHIBUI-1335: Verify Dynamic HTTP Metadata Provider Filters' | '/SHIBUI-1335-4.side'
'SHIBUI-1361: Verify dates display in proper format' | '/SHIBUI-1361.side'
'SHIBUI-1361: Verify dates display in proper format' | '/SHIBUI-1361.side' // Note that this script WILL NOT PASS in the Selenium IDE due to it thinking there is a syntax error where there is none.
'SHIBUI-1385: Restore a metadata source version' | '/SHIBUI-1385-1.side'
'SHIBUI-1385: Restore a metadata provider version' | '/SHIBUI-1385-2.side'
'SHIBUI-1391: Regex Validation' | '/SHIBUI-1391.side'
Expand All @@ -127,7 +127,7 @@ class SeleniumSIDETest extends Specification {
'SHIBUI-1503: User can be deleted' | '/SHIBUI-1503-2.side'
'SHIBUI-1503: User can be enabled' | '/SHIBUI-1503-3.side'
'SHIBUI-2052: Logged in user & role appear on dashboard' | '/SHIBUI-2052.side'
'SHIBUI-1740: Group can be created, edited, deleted' | '/SHIBUI-1740-1.side'
// 'SHIBUI-1740: Group can be created, edited, deleted' | '/SHIBUI-1740-1.side' # currently broken, see SHIBUI-2293
'SHIBUI-1740: Verify dev profile group membership' | '/SHIBUI-1740-2.side'
'SHIBUI-1740: Verify admin-owned resource not visible to nonadmins' | '/SHIBUI-1740-3.side'
'SHIBUI-1740: Verify nonadmin-owned resource visibility' | '/SHIBUI-1740-4.side'
Expand All @@ -136,16 +136,16 @@ class SeleniumSIDETest extends Specification {
'SHIBUI-1743: Verify group regex CRUD operations' | '/SHIBUI-1743-1.side'
'SHIBUI-1743: Verify nonadmin group regex validation' | '/SHIBUI-1743-2.side'
'SHIBUI-1744: Verify attribute bundle CRUD operations' | '/SHIBUI-1744-1.side'
'SHIBUI-1744: Verify attribute bundles in metadata sources' | '/SHIBUI-1744-2.side'
'SHIBUI-1744: Verify attribute bundles in entity attribute filters' | '/SHIBUI-1744-3.side'
'SHIBUI-2116: Verify entity attribute bundle highlights' | '/SHIBUI-2116.side' // Note that this script WILL NOT PASS in the Selenium IDE due to ${driver} not being set (it is provided by this groovy script).
'SHIBUI-1744: Verify attribute bundles in metadata sources' | '/SHIBUI-1744-2.side'*/
// 'SHIBUI-1744: Verify attribute bundles in entity attribute filters' | '/SHIBUI-1744-3.side' # currently broken, see SHIBUI-2294 */
// 'SHIBUI-2116: Verify entity attribute bundle highlights' | '/SHIBUI-2116.side' // Note that this script WILL NOT PASS in the Selenium IDE due to ${driver} not being set (it is provided by this groovy script). // ALSO broken by SHIBUI-2294
'SHIBUI-1732: Create, use, and delete CEA String' | '/SHIBUI-1732-1.side'
'SHIBUI-1732: Create, use, and delete CEA Boolean' | '/SHIBUI-1732-2.side'
'SHIBUI-1732: Create, use, and delete CEA List' | '/SHIBUI-1732-3.side'
'SHIBUI-1732: Create, use, and delete CEA Long' | '/SHIBUI-1732-4.side'
'SHIBUI-1732: Create, use, and delete CEA Double' | '/SHIBUI-1732-5.side'
'SHIBUI-1732: Create, use, and delete CEA Duration' | '/SHIBUI-1732-6.side'
'SHIBUI-1732: Create, use, and delete CEA Spring Bean' | '/SHIBUI-1732-7.side'
'SHIBUI-1392: Verify provider with script filter is persistable' | '/SHIBUI-1392.side' // Something about this test breaks all the other ones after it
// 'SHIBUI-1392: Verify provider with script filter is persistable' | '/SHIBUI-1392.side' // Something about this test breaks all the other ones after it // ALSO broken by SHIBUI-2294
}
}
43 changes: 24 additions & 19 deletions backend/src/integration/resources/SHIBUI-1281.side
Original file line number Diff line number Diff line change
Expand Up @@ -626,9 +626,12 @@
"id": "c1534880-c4e5-4fbd-b200-c28f9f556ab9",
"comment": "",
"command": "click",
"target": "css=div.p-0.m-0.container-fluid > div:nth-child(2) > div > div.mr-2.flex-grow-1.undefined > div > div:nth-child(1) > div > div > button",
"target": "css=.is-invalid > .toggle-button",
"targets": [
["css=.is-invalid .svg-inline--fa", "css:finder"]
["css=.is-invalid > .toggle-button", "css:finder"],
["xpath=(//button[@type='button'])[12]", "xpath:attributes"],
["xpath=//div[@id='root']/div/main/div/section/div[2]/div[2]/div/div/form/div/div/div/div/div[5]/div/div/div/div[2]/div/div/div/div/div/div[2]/div[2]/div/div/div/div/div/div/button", "xpath:idRelative"],
["xpath=//div[2]/div[2]/div/div/div/div/div/div/button", "xpath:position"]
],
"value": ""
}, {
Expand Down Expand Up @@ -678,12 +681,12 @@
"id": "97a98737-862d-4567-8b20-c5c991444ed0",
"comment": "",
"command": "click",
"target": "css=div.p-0.m-0.container-fluid > div:nth-child(3) > div > div.mr-2.flex-grow-1.undefined > div > div:nth-child(1) > div > div > button",
"target": "css=.is-invalid > .toggle-button",
"targets": [
["css=#\\/serviceProviderSsoDescriptor\\/nameIdFormats\\/2-container .btn", "css:finder"],
["xpath=(//button[@type='button'])[4]", "xpath:attributes"],
["xpath=//div[@id='/serviceProviderSsoDescriptor/nameIdFormats/2-container']/div/div/button", "xpath:idRelative"],
["xpath=//li[3]/div/sf-form-element/div/sf-widget-chooser/datalist-component/div/auto-complete/div/div/div/button", "xpath:position"]
["css=.is-invalid > .toggle-button", "css:finder"],
["xpath=(//button[@type='button'])[14]", "xpath:attributes"],
["xpath=//div[@id='root']/div/main/div/section/div[2]/div[2]/div/div/form/div/div/div/div/div[5]/div/div/div/div[2]/div/div/div/div/div/div[2]/div[3]/div/div/div/div/div/div/button", "xpath:idRelative"],
["xpath=//div[3]/div/div/div/div/div/div/button", "xpath:position"]
],
"value": ""
}, {
Expand Down Expand Up @@ -731,12 +734,12 @@
"id": "e2e8d5d4-8b6a-42d5-9fe7-abb8a84216e3",
"comment": "",
"command": "click",
"target": "css=div.p-0.m-0.container-fluid > div:nth-child(4) > div > div.mr-2.flex-grow-1.undefined > div > div:nth-child(1) > div > div > button",
"target": "css=.is-invalid > .toggle-button",
"targets": [
["css=#\\/serviceProviderSsoDescriptor\\/nameIdFormats\\/3-container .btn", "css:finder"],
["xpath=(//button[@type='button'])[5]", "xpath:attributes"],
["xpath=//div[@id='/serviceProviderSsoDescriptor/nameIdFormats/3-container']/div/div/button", "xpath:idRelative"],
["xpath=//li[4]/div/sf-form-element/div/sf-widget-chooser/datalist-component/div/auto-complete/div/div/div/button", "xpath:position"]
["css=.is-invalid > .toggle-button", "css:finder"],
["xpath=(//button[@type='button'])[16]", "xpath:attributes"],
["xpath=//div[@id='root']/div/main/div/section/div[2]/div[2]/div/div/form/div/div/div/div/div[5]/div/div/div/div[2]/div/div/div/div/div/div[2]/div[4]/div/div/div/div/div/div/button", "xpath:idRelative"],
["xpath=//div[4]/div/div/div/div/div/div/button", "xpath:position"]
],
"value": ""
}, {
Expand Down Expand Up @@ -778,10 +781,11 @@
"id": "23fd8856-32df-48ed-a198-a74e8ca71b10",
"comment": "",
"command": "type",
"target": "css=div.p-0.m-0.container-fluid > div:nth-child(5) > div > div.mr-2.flex-grow-1.undefined > div > div:nth-child(1) > div > div > div:nth-child(1) > input.rbt-input-main.form-control.rbt-input",
"target": "id=option-selector-root_serviceProviderSsoDescriptor_nameIdFormats_4",
"targets": [
["css=.focus", "css:finder"],
["xpath=(//input[@value=''])[5]", "xpath:attributes"],
["id=option-selector-root_serviceProviderSsoDescriptor_nameIdFormats_4", "id"],
["css=#option-selector-root_serviceProviderSsoDescriptor_nameIdFormats_4", "css:finder"],
["xpath=//input[@id='option-selector-root_serviceProviderSsoDescriptor_nameIdFormats_4']", "xpath:attributes"],
["xpath=//div[@id='root']/div/main/div/section/div[2]/div[2]/div/div/form/div/div/div/div/div[5]/div/div/div/div[2]/div/div/div/div/div/div[2]/div[5]/div/div/div/div/div/div/div/input", "xpath:idRelative"],
["xpath=//div[5]/div/div/div/div/div/div/div/input", "xpath:position"]
],
Expand Down Expand Up @@ -1985,11 +1989,12 @@
"id": "4e0fa4f5-817f-41fb-9885-60f37b699436",
"comment": "",
"command": "waitForElementVisible",
"target": "css=tr > .text-right",
"target": "css=td:nth-child(1)",
"targets": [
["css=tr > .text-right", "css:finder"],
["xpath=//td[5]", "xpath:position"],
["xpath=//td[contains(.,'Enabled')]", "xpath:innerText"]
["css=.lead", "css:finder"],
["xpath=//div[@id='root']/div/main/div/section/div/div/span", "xpath:idRelative"],
["xpath=//section/div/div/span", "xpath:position"],
["xpath=//span[contains(.,'Current Metadata Sources')]", "xpath:innerText"]
],
"value": "10000"
}, {
Expand Down
12 changes: 8 additions & 4 deletions backend/src/integration/resources/SHIBUI-1334-1.side
Original file line number Diff line number Diff line change
Expand Up @@ -2005,11 +2005,15 @@
"id": "4e0fa4f5-817f-41fb-9885-60f37b699436",
"comment": "",
"command": "waitForElementVisible",
"target": "css=tr > .text-right",
"target": "linkText=Test Provider",
"targets": [
["css=tr > .text-right", "css:finder"],
["xpath=//td[5]", "xpath:position"],
["xpath=//td[contains(.,'Enabled')]", "xpath:innerText"]
["linkText=Test Provider", "linkText"],
["css=.align-middle > a", "css:finder"],
["xpath=//a[contains(text(),'Test Provider')]", "xpath:link"],
["xpath=//div[@id='root']/div/main/div/section/div/div[2]/div/div/div/table/tbody/tr/td/a", "xpath:idRelative"],
["xpath=//a[contains(@href, '/metadata/source/bb384f9e-a87d-4e46-aa68-81d46b7c43e1/configuration/options')]", "xpath:href"],
["xpath=//td/a", "xpath:position"],
["xpath=//a[contains(.,'Test Provider')]", "xpath:innerText"]
],
"value": "10000"
}, {
Expand Down
21 changes: 11 additions & 10 deletions backend/src/integration/resources/SHIBUI-1334-2.side
Original file line number Diff line number Diff line change
Expand Up @@ -970,12 +970,13 @@
"id": "78967fb5-8f61-46ce-9c14-9b6ceb12b03a",
"comment": "",
"command": "click",
"target": "css=.form-group:nth-child(2) .toggle-button",
"target": "css=.mb-3:nth-child(2) .toggle-button",
"targets": [
["css=.form-group:nth-child(2) .toggle-button", "css:finder"],
["xpath=(//button[@type='button'])[13]", "xpath:attributes"],
["xpath=//div[@id='root']/div/main/div/section/div[2]/div[2]/div[2]/div[2]/form/div/div/div/div/div[6]/div/div/div/div/div[2]/div/div/div/div/button", "xpath:idRelative"],
["xpath=//div[2]/div/div/div/div/button", "xpath:position"]
["css=.mb-3:nth-child(2) .toggle-button", "css:finder"],
["xpath=(//button[@type='button'])[14]", "xpath:attributes"],
["xpath=//div[@id='root']/div/main/div/section/div[2]/div[2]/div[2]/div[2]/form/div/div/div/div/div[5]/div/div/div/div/div[2]/div/div/div/div/button", "xpath:idRelative"],
["xpath=//div[2]/div/div/div/div/button", "xpath:position"],
["xpath=//button[contains(.,'Options')]", "xpath:innerText"]
],
"value": ""
}, {
Expand Down Expand Up @@ -1012,7 +1013,7 @@
"id": "d7406190-0bb0-4df8-9c0b-7e393952b6a2",
"comment": "",
"command": "click",
"target": "css=.form-group:nth-child(3) .toggle-button",
"target": "css=.mb-3:nth-child(3) .toggle-button",
"targets": [
["css=.form-group:nth-child(3) .toggle-button", "css:finder"],
["xpath=(//button[@type='button'])[15]", "xpath:attributes"],
Expand Down Expand Up @@ -1054,11 +1055,11 @@
"id": "19182110-0f86-4601-ae12-0b90967ef68a",
"comment": "",
"command": "click",
"target": "css=.form-group:nth-child(4) .toggle-button",
"target": "css=.mb-3:nth-child(4) .toggle-button",
"targets": [
["css=.form-group:nth-child(4) .toggle-button", "css:finder"],
["xpath=(//button[@type='button'])[17]", "xpath:attributes"],
["xpath=//div[@id='root']/div/main/div/section/div[2]/div[2]/div[2]/div[2]/form/div/div/div/div/div[6]/div/div/div/div/div[2]/div[3]/div/div/div/button", "xpath:idRelative"],
["css=.mb-3:nth-child(4) .toggle-button", "css:finder"],
["xpath=(//button[@type='button'])[18]", "xpath:attributes"],
["xpath=//div[@id='root']/div/main/div/section/div[2]/div[2]/div[2]/div[2]/form/div/div/div/div/div[5]/div/div/div/div/div[2]/div[3]/div/div/div/button", "xpath:idRelative"],
["xpath=//div[3]/div/div/div/button", "xpath:position"]
],
"value": ""
Expand Down
6 changes: 3 additions & 3 deletions backend/src/integration/resources/SHIBUI-1335-1.side
Original file line number Diff line number Diff line change
Expand Up @@ -1304,10 +1304,10 @@
"id": "e16e4888-e311-4719-9f87-590ddb124dc4",
"comment": "",
"command": "click",
"target": "css=.text-left:nth-child(3)",
"target": "xpath=(//button[@type='button'])[11]",
"targets": [
["css=.text-left:nth-child(3)", "css:finder"],
["xpath=(//button[@type='button'])[10]", "xpath:attributes"],
["css=.nav-link:nth-child(3)", "css:finder"],
["xpath=(//button[@type='button'])[11]", "xpath:attributes"],
["xpath=//div[@id='root']/div/main/div/section/div[2]/div/div[2]/div[2]/div/nav/button[3]", "xpath:idRelative"],
["xpath=//button[3]", "xpath:position"],
["xpath=//button[contains(.,'Attributes')]", "xpath:innerText"]
Expand Down
8 changes: 4 additions & 4 deletions backend/src/integration/resources/SHIBUI-1335-3.side
Original file line number Diff line number Diff line change
Expand Up @@ -279,11 +279,11 @@
"id": "84f35d35-ea9c-4a06-aaec-bee1c1922aec",
"comment": "",
"command": "click",
"target": "css=.row:nth-child(3) > .col-12 > .form-group .toggle-button",
"target": "css=.row:nth-child(3) > .col-12 > .mb-3 .toggle-button",
"targets": [
["css=.row:nth-child(3) > .col-12 > .form-group .toggle-button", "css:finder"],
["xpath=(//button[@type='button'])[10]", "xpath:attributes"],
["xpath=//div[@id='root']/div/main/div/section/div[2]/div[2]/div/div/form/div/div/div/div/div[4]/div/div/div/div[3]/div/div/div/div/div/button", "xpath:idRelative"],
["css=.row:nth-child(3) > .col-12 > .mb-3 .toggle-button", "css:finder"],
["xpath=(//button[@type='button'])[11]", "xpath:attributes"],
["xpath=//div[@id='root']/div/main/div/section/div[2]/div[2]/div/div/form/div/div/div/div/div[3]/div/div/div/div[3]/div/div/div/div/div/button", "xpath:idRelative"],
["xpath=//div[3]/div/div/div/div/div/button", "xpath:position"]
],
"value": ""
Expand Down
12 changes: 6 additions & 6 deletions backend/src/integration/resources/SHIBUI-1335-4.side
Original file line number Diff line number Diff line change
Expand Up @@ -344,10 +344,10 @@
"id": "2793bf1b-177b-461f-b06c-0a584ab6eaf0",
"comment": "",
"command": "click",
"target": "css=.row:nth-child(3) > .col-12 > .form-group .toggle-button",
"target": "css=.row:nth-child(3) > .col-12 > .mb-3 .toggle-button",
"targets": [
["css=.row:nth-child(3) > .col-12 > .form-group .toggle-button", "css:finder"],
["xpath=(//button[@type='button'])[10]", "xpath:attributes"],
["css=.row:nth-child(3) > .col-12 > .mb-3 .toggle-button", "css:finder"],
["xpath=(//button[@type='button'])[11]", "xpath:attributes"],
["xpath=//div[@id='root']/div/main/div/section/div[2]/div[2]/div/div/form/div/div/div/div/div[4]/div/div/div/div[3]/div/div/div/div/div/button", "xpath:idRelative"],
["xpath=//div[3]/div/div/div/div/div/button", "xpath:position"]
],
Expand Down Expand Up @@ -912,10 +912,10 @@
"id": "f82f3d61-f057-4c8e-96c8-321cc7bb134c",
"comment": "",
"command": "click",
"target": "css=.text-left:nth-child(3)",
"target": "css=.nav-link:nth-child(3)",
"targets": [
["css=.text-left:nth-child(3)", "css:finder"],
["xpath=(//button[@type='button'])[10]", "xpath:attributes"],
["css=.nav-link:nth-child(3)", "css:finder"],
["xpath=(//button[@type='button'])[11]", "xpath:attributes"],
["xpath=//div[@id='root']/div/main/div/section/div[2]/div/div[2]/div[2]/div/nav/button[3]", "xpath:idRelative"],
["xpath=//button[3]", "xpath:position"],
["xpath=//button[contains(.,'Attributes')]", "xpath:innerText"]
Expand Down
8 changes: 4 additions & 4 deletions backend/src/integration/resources/SHIBUI-1352-1.side
Original file line number Diff line number Diff line change
Expand Up @@ -305,11 +305,11 @@
"id": "a5274853-084e-438f-8cea-9a74e55fd0b9",
"comment": "",
"command": "click",
"target": "css=.row:nth-child(3) > .col-12 > .form-group .toggle-button",
"target": "css=.row:nth-child(3) > .col-12 > .mb-3 .toggle-button",
"targets": [
["css=.row:nth-child(3) > .col-12 > .form-group .toggle-button", "css:finder"],
["xpath=(//button[@type='button'])[10]", "xpath:attributes"],
["xpath=//div[@id='root']/div/main/div/section/div[2]/div[2]/div/div/form/div/div/div/div/div[4]/div/div/div/div[3]/div/div/div/div/div/button", "xpath:idRelative"],
["css=.row:nth-child(3) > .col-12 > .mb-3 .toggle-button", "css:finder"],
["xpath=(//button[@type='button'])[11]", "xpath:attributes"],
["xpath=//div[@id='root']/div/main/div/section/div[2]/div[2]/div/div/form/div/div/div/div/div[3]/div/div/div/div[3]/div/div/div/div/div/button", "xpath:idRelative"],
["xpath=//div[3]/div/div/div/div/div/button", "xpath:position"]
],
"value": ""
Expand Down
Loading

0 comments on commit 38cee19

Please sign in to comment.