diff --git a/backend/src/integration/groovy/edu/internet2/tier/shibboleth/admin/ui/SeleniumSIDETest.groovy b/backend/src/integration/groovy/edu/internet2/tier/shibboleth/admin/ui/SeleniumSIDETest.groovy index 96de34699..7986db770 100644 --- a/backend/src/integration/groovy/edu/internet2/tier/shibboleth/admin/ui/SeleniumSIDETest.groovy +++ b/backend/src/integration/groovy/edu/internet2/tier/shibboleth/admin/ui/SeleniumSIDETest.groovy @@ -20,7 +20,7 @@ class SeleniumSIDETest extends Specification { def "Selenium: just run one"() { setup: - def file = "/CreateMetadataSourceFromCopy.side" + def file = "/SHIBUI-1058_DelegatedAdmin_SubmitSourceWithError.side" def main = new Main() def config = new DefaultConfig([] as String[]).with { System.properties.contains('') @@ -70,12 +70,12 @@ class SeleniumSIDETest extends Specification { 'Create Filter REGEX' | '/CreateFilterREGEX.side' 'Create Filter Script' | '/CreateFilterScript.side' // 'Create Metadata Source From XML' | '/CreateMetadataSourceFromXML.side' // failing (Failure: Cannot click elements) -// 'Create Metadata Source From Copy' | '/CreateMetadataSourceFromCopy.side' //passing -// 'Delete Entity ID Filter' | '/DeleteEntityIDFilter.side' // failing (decimal point bug, possibly also incomplete) -// 'Delete REGEX Filter' | '/DeleteREGEXFilter_Incomplete.side' // incomplete -// 'Create Metadata Source from URL' | '/CreateMetadataSourceFromURL.side' //passing -// 'Delete Incomplete Source' | '/DeleteIncompleteSource_Incomplete.side' // incomplete -// 'Admin Login' | '/SHIBUI-1031_AdminLogin.side' + 'Create Metadata Source From Copy' | '/CreateMetadataSourceFromCopy.side' //failing, error reported to JJ/Ryan + 'Create Metadata Source from URL' | '/CreateMetadataSourceFromURL.side' + 'Delete Entity ID Filter' | '/DeleteEntityIDFilter.side' + 'Delete REGEX Filter' | '/DeleteREGEXFilter.side' + 'Delete Incomplete Source' | '/DeleteIncompleteSource.side' + 'Admin Login' | '/SHIBUI-1031_AdminLogin.side' // 'Delegated Admin: SubmitSourceWithError' | '/SHIBUI-1058_DelegatedAdmin_SubmitSourceWithError.side' //passing, but with heap problem } } diff --git a/backend/src/integration/resources/CreateFilterEntityID.side b/backend/src/integration/resources/CreateFilterEntityID.side index ac657aca9..33b8c7fc0 100644 --- a/backend/src/integration/resources/CreateFilterEntityID.side +++ b/backend/src/integration/resources/CreateFilterEntityID.side @@ -634,13 +634,12 @@ "id": "c3d80754-3e28-4b07-95f6-5bfac82e9a58", "comment": "", "command": "assertText", - "target": "css=div.px-2", + "target": "css=.row:nth-child(1) > .col:nth-child(2)", "targets": [ - ["css=div.px-2", "css"], - ["css=.px-2", "css:finder"], - ["xpath=//div[2]/div[2]", "xpath:position"] + ["css=.row:nth-child(1) > .col:nth-child(2)", "css:finder"], + ["xpath=//div[2]/div/div/div/div/div[2]", "xpath:position"] ], - "value": "Metadata Provider: FBHMP FileBackedHttpMetadataResolver" + "value": "Metadata Provider: FBHMP" }, { "id": "108a25aa-6b33-4fa2-870d-ee413d7eb986", "comment": "", @@ -947,6 +946,35 @@ ["xpath=//div/button/i", "xpath:position"] ], "value": "" + }, { + "id": "0639596d-acef-4dd4-91b1-de12b05f9876", + "comment": "", + "command": "waitForElementPresent", + "target": "css=.td-lg:nth-child(3)", + "targets": [], + "value": "3000" + }, { + "id": "77bb14f1-a994-4dcd-880e-16d262762941", + "comment": "", + "command": "assertText", + "target": "css=.td-lg:nth-child(3)", + "targets": [ + ["css=.td-lg:nth-child(3)", "css:finder"], + ["xpath=//td[3]", "xpath:position"], + ["xpath=//td[contains(.,'Entity ID')]", "xpath:innerText"] + ], + "value": "Entity ID" + }, { + "id": "7e890e10-3f49-47ec-b118-25fc28c6563e", + "comment": "", + "command": "assertText", + "target": "css=.td-lg:nth-child(4)", + "targets": [ + ["css=.td-lg:nth-child(4)", "css:finder"], + ["xpath=//td[4]", "xpath:position"], + ["xpath=//td[contains(.,'EntityAttributes')]", "xpath:innerText"] + ], + "value": "EntityAttributes" }] }], "suites": [{ @@ -959,4 +987,4 @@ }], "urls": ["http://localhost:10101/"], "plugins": [] -} +} \ No newline at end of file diff --git a/backend/src/integration/resources/CreateFilterREGEX.side b/backend/src/integration/resources/CreateFilterREGEX.side index 467db057f..cd01dbed0 100644 --- a/backend/src/integration/resources/CreateFilterREGEX.side +++ b/backend/src/integration/resources/CreateFilterREGEX.side @@ -634,13 +634,12 @@ "id": "c3d80754-3e28-4b07-95f6-5bfac82e9a58", "comment": "", "command": "assertText", - "target": "css=div.px-2", + "target": "css=.row:nth-child(1) > .col:nth-child(2)", "targets": [ - ["css=div.px-2", "css"], - ["css=.px-2", "css:finder"], - ["xpath=//div[2]/div[2]", "xpath:position"] + ["css=.row:nth-child(1) > .col:nth-child(2)", "css:finder"], + ["xpath=//div[2]/div/div/div/div/div[2]", "xpath:position"] ], - "value": "Metadata Provider: FBHMP FileBackedHttpMetadataResolver" + "value": "Metadata Provider: FBHMP" }, { "id": "b8c89883-4999-4429-a4f0-b20f7dbc825c", "comment": "", @@ -868,7 +867,7 @@ ["xpath=//td[3]", "xpath:position"], ["xpath=//td[contains(.,'REGEX')]", "xpath:innerText"] ], - "value": "" + "value": "3000" }, { "id": "8d472caf-2525-4e20-9f14-195e0212f72f", "comment": "", @@ -892,4 +891,4 @@ }], "urls": ["http://localhost:10101/"], "plugins": [] -} +} \ No newline at end of file diff --git a/backend/src/integration/resources/CreateFilterScript.side b/backend/src/integration/resources/CreateFilterScript.side index d68f3c280..f1cdb090f 100644 --- a/backend/src/integration/resources/CreateFilterScript.side +++ b/backend/src/integration/resources/CreateFilterScript.side @@ -634,13 +634,12 @@ "id": "c3d80754-3e28-4b07-95f6-5bfac82e9a58", "comment": "", "command": "assertText", - "target": "css=div.px-2", + "target": "css=.row:nth-child(1) > .col:nth-child(2)", "targets": [ - ["css=div.px-2", "css"], - ["css=.px-2", "css:finder"], - ["xpath=//div[2]/div[2]", "xpath:position"] + ["css=.row:nth-child(1) > .col:nth-child(2)", "css:finder"], + ["xpath=//div[2]/div/div/div/div/div[2]", "xpath:position"] ], - "value": "Metadata Provider: FBHMP FileBackedHttpMetadataResolver" + "value": "Metadata Provider: FBHMP" }, { "id": "9dadc071-16b4-4758-8e21-93933d72e8b5", "comment": "", @@ -764,30 +763,30 @@ ], "value": "" }, { - "id": "12e67d13-7a7d-4467-940d-11e5a24db0b4", + "id": "0d3f1f64-0a69-4dfe-bc6a-1287a8a3b79f", "comment": "", - "command": "sendKeys", + "command": "editContent", "target": "id=targetInput", "targets": [ ["id=targetInput", "id"], ["css=#targetInput", "css:finder"], ["xpath=//p[@id='targetInput']", "xpath:attributes"], - ["xpath=//p", "xpath:position"], - ["xpath=//p[contains(.,'eval(true);')]", "xpath:innerText"] + ["xpath=//p", "xpath:position"] ], - "value": "\\n" + "value": "eval(true);" }, { - "id": "0d3f1f64-0a69-4dfe-bc6a-1287a8a3b79f", + "id": "12e67d13-7a7d-4467-940d-11e5a24db0b4", "comment": "", - "command": "editContent", + "command": "sendKeys", "target": "id=targetInput", "targets": [ ["id=targetInput", "id"], ["css=#targetInput", "css:finder"], ["xpath=//p[@id='targetInput']", "xpath:attributes"], - ["xpath=//p", "xpath:position"] + ["xpath=//p", "xpath:position"], + ["xpath=//p[contains(.,'eval(true);')]", "xpath:innerText"] ], - "value": "eval(true);" + "value": "\n" }, { "id": "38c76223-9080-4938-81b0-2f3c4706e943", "comment": "", @@ -848,6 +847,39 @@ ["xpath=//div/button/i", "xpath:position"] ], "value": "" + }, { + "id": "e54836ef-e3ac-41df-9989-ca8abffa0ee5", + "comment": "", + "command": "waitForElementPresent", + "target": "css=.td-lg:nth-child(3)", + "targets": [ + ["css=.td-lg:nth-child(3)", "css:finder"], + ["xpath=//td[3]", "xpath:position"], + ["xpath=//td[contains(.,'Script')]", "xpath:innerText"] + ], + "value": "3000" + }, { + "id": "fc850e41-44ec-4775-a64a-9a77a4c4f83b", + "comment": "", + "command": "assertText", + "target": "css=.td-lg:nth-child(3)", + "targets": [ + ["css=.td-lg:nth-child(3)", "css:finder"], + ["xpath=//td[3]", "xpath:position"], + ["xpath=//td[contains(.,'Script')]", "xpath:innerText"] + ], + "value": "Script" + }, { + "id": "05b5bfc3-4867-4243-9941-f74dd149a352", + "comment": "", + "command": "assertText", + "target": "css=.td-lg:nth-child(4)", + "targets": [ + ["css=.td-lg:nth-child(4)", "css:finder"], + ["xpath=//td[4]", "xpath:position"], + ["xpath=//td[contains(.,'EntityAttributes')]", "xpath:innerText"] + ], + "value": "EntityAttributes" }] }], "suites": [{ diff --git a/backend/src/integration/resources/CreateMetadataSourceFromURL.side b/backend/src/integration/resources/CreateMetadataSourceFromURL.side index c7d47ae6c..f495e1a14 100644 --- a/backend/src/integration/resources/CreateMetadataSourceFromURL.side +++ b/backend/src/integration/resources/CreateMetadataSourceFromURL.side @@ -1,29 +1,54 @@ { "id": "16b5f41b-30c1-4cc1-9c9e-bc15e40d1318", - "version": "1.1", + "version": "2.0", "name": "ShibUI", "url": "http://localhost:10101/", "tests": [{ "id": "daacdb81-2f14-49f3-8d15-da5f5d52586c", "name": "Create Metadata Source from URL", "commands": [{ - "id": "227fe3ca-ebb3-46ee-8067-eb1bd1290801", + "id": "c023f973-f799-4dc3-90d0-d75ccade0317", "comment": "", "command": "open", - "target": "/api/heheheheheheheWipeout", + "target": "/login", "targets": [], "value": "" }, { - "id": "853ef897-df38-4b31-ad06-3598bf9bc5e2", + "id": "492f48b4-97f8-4cb7-b8de-abf963b576af", + "comment": "Use User Login", + "command": "type", + "target": "name=username", + "targets": [ + ["name=username", "name"], + ["css=tr:nth-child(1) input", "css:finder"], + ["xpath=//input[@name='username']", "xpath:attributes"], + ["xpath=//input", "xpath:position"] + ], + "value": "admin" + }, { + "id": "f61dd17c-d2ee-4200-a8f7-96d841d4ccb8", + "comment": "Use User Password", + "command": "type", + "target": "name=password", + "targets": [ + ["name=password", "name"], + ["css=tr:nth-child(2) input", "css:finder"], + ["xpath=//input[@name='password']", "xpath:attributes"], + ["xpath=//tr[2]/td[2]/input", "xpath:position"] + ], + "value": "adminpass" + }, { + "id": "fdb5a585-49aa-403c-8c23-c4fc548267b3", "comment": "", - "command": "assertText", - "target": "css=body", + "command": "click", + "target": "name=submit", "targets": [ - ["css=body", "css"], - ["css=body", "css:finder"], - ["xpath=//body", "xpath:position"] + ["name=submit", "name"], + ["css=td:nth-child(1) > input", "css:finder"], + ["xpath=//input[@name='submit']", "xpath:attributes"], + ["xpath=//tr[3]/td/input", "xpath:position"] ], - "value": "yes, you did it" + "value": "" }, { "id": "effbf04c-a1fa-411e-a47f-0b71acfbf4b2", "comment": "", @@ -182,6 +207,36 @@ ["xpath=//button[2]/translate-i18n", "xpath:position"] ], "value": "" + }, { + "id": "f93bfd80-e300-4431-8bc6-ad81de1e316b", + "comment": "", + "command": "click", + "target": "css=.text-primary", + "targets": [ + ["css=.text-primary", "css:finder"], + ["xpath=//div/i", "xpath:position"] + ], + "value": "" + }, { + "id": "063a098a-3dd3-46ce-90d6-aa84065b2a1b", + "comment": "", + "command": "assertText", + "target": "css=.row:nth-child(1) > .col:nth-child(2)", + "targets": [ + ["css=.row:nth-child(1) > .col:nth-child(2)", "css:finder"], + ["xpath=//div[2]/div/div/div/div/div[2]", "xpath:position"] + ], + "value": "Metadata Source from URL" + }, { + "id": "3ef55a3a-2c1d-4cc5-bfed-fa13c256c440", + "comment": "", + "command": "assertText", + "target": "css=.row:nth-child(2) > .col:nth-child(2)", + "targets": [ + ["css=.row:nth-child(2) > .col:nth-child(2)", "css:finder"], + ["xpath=//div[2]/div[2]", "xpath:position"] + ], + "value": "urn:amazon:webservices" }] }], "suites": [{ diff --git a/backend/src/integration/resources/DeleteEntityIDFilter.side b/backend/src/integration/resources/DeleteEntityIDFilter.side index 81d7feb3b..1bd806cf6 100644 --- a/backend/src/integration/resources/DeleteEntityIDFilter.side +++ b/backend/src/integration/resources/DeleteEntityIDFilter.side @@ -1,29 +1,54 @@ { "id": "16b5f41b-30c1-4cc1-9c9e-bc15e40d1318", - "version": "1.1", + "version": "2.0", "name": "ShibUI", "url": "http://localhost:10101/", "tests": [{ "id": "daacdb81-2f14-49f3-8d15-da5f5d52586c", "name": "nada", "commands": [{ - "id": "227fe3ca-ebb3-46ee-8067-eb1bd1290801", + "id": "c023f973-f799-4dc3-90d0-d75ccade0317", "comment": "", "command": "open", - "target": "/api/heheheheheheheWipeout", + "target": "/login", "targets": [], "value": "" }, { - "id": "853ef897-df38-4b31-ad06-3598bf9bc5e2", + "id": "492f48b4-97f8-4cb7-b8de-abf963b576af", + "comment": "Use User Login", + "command": "type", + "target": "name=username", + "targets": [ + ["name=username", "name"], + ["css=tr:nth-child(1) input", "css:finder"], + ["xpath=//input[@name='username']", "xpath:attributes"], + ["xpath=//input", "xpath:position"] + ], + "value": "admin" + }, { + "id": "f61dd17c-d2ee-4200-a8f7-96d841d4ccb8", + "comment": "Use User Password", + "command": "type", + "target": "name=password", + "targets": [ + ["name=password", "name"], + ["css=tr:nth-child(2) input", "css:finder"], + ["xpath=//input[@name='password']", "xpath:attributes"], + ["xpath=//tr[2]/td[2]/input", "xpath:position"] + ], + "value": "adminpass" + }, { + "id": "fdb5a585-49aa-403c-8c23-c4fc548267b3", "comment": "", - "command": "assertText", - "target": "css=body", + "command": "click", + "target": "name=submit", "targets": [ - ["css=body", "css"], - ["css=body", "css:finder"], - ["xpath=//body", "xpath:position"] + ["name=submit", "name"], + ["css=td:nth-child(1) > input", "css:finder"], + ["xpath=//input[@name='submit']", "xpath:attributes"], + ["xpath=//tr[3]/td/input", "xpath:position"] ], - "value": "yes, you did it" + "value": "" }, { "id": "effbf04c-a1fa-411e-a47f-0b71acfbf4b2", "comment": "", @@ -609,13 +634,12 @@ "id": "c3d80754-3e28-4b07-95f6-5bfac82e9a58", "comment": "", "command": "assertText", - "target": "css=div.px-2", + "target": "css=.row:nth-child(1) > .col:nth-child(2)", "targets": [ - ["css=div.px-2", "css"], - ["css=.px-2", "css:finder"], - ["xpath=//div[2]/div[2]", "xpath:position"] + ["css=.row:nth-child(1) > .col:nth-child(2)", "css:finder"], + ["xpath=//div[2]/div/div/div/div/div[2]", "xpath:position"] ], - "value": "Metadata Provider: FBHMP\\nFileBackedHttpMetadataResolver" + "value": "Metadata Provider: FBHMP" }, { "id": "108a25aa-6b33-4fa2-870d-ee413d7eb986", "comment": "", @@ -638,6 +662,30 @@ ["xpath=//div[2]/a/translate-i18n", "xpath:position"] ], "value": "" + }, { + "id": "5693bc4b-80b7-41e3-885b-0911a4835212", + "comment": "", + "command": "click", + "target": "name=type", + "targets": [ + ["name=type", "name"], + ["css=.is-valid", "css:finder"], + ["xpath=//select[@name='type']", "xpath:attributes"], + ["xpath=//select", "xpath:position"] + ], + "value": "" + }, { + "id": "5693bc4b-80b7-41e3-885b-0911a4835211", + "comment": "", + "command": "select", + "target": "name=type", + "targets": [ + ["name=type", "name"], + ["css=.is-valid", "css:finder"], + ["xpath=//select[@name='type']", "xpath:attributes"], + ["xpath=//select", "xpath:position"] + ], + "value": "label=EntityAttributes" }, { "id": "5693bc4b-80b7-41e3-885b-0911a4835211", "comment": "", @@ -890,49 +938,76 @@ ], "value": "" }, { - "id": "9a1fc000-43a5-4bee-8aba-34f0ba89915f", + "id": "387743df-40c1-429c-9fd2-281d771649a9", "comment": "", "command": "click", - "target": "css=.fa-trash", + "target": "css=.btn-primary", "targets": [ - ["css=.fa-trash", "css:finder"], - ["xpath=//td[7]/button/i", "xpath:position"] + ["css=.btn-primary", "css:finder"], + ["xpath=//button[@type='submit']", "xpath:attributes"], + ["xpath=//div/button", "xpath:position"], + ["xpath=//button[contains(.,'Save')]", "xpath:innerText"] ], "value": "" }, { - "id": "f570f0b2-d519-4311-9b97-6eb25c872e3d", + "id": "ec7223b2-894b-4fa7-ba84-3fee760433d8", "comment": "", - "command": "click", - "target": "css=div.modal-footer > button.btn.btn-secondary", + "command": "waitForElementPresent", + "target": "css=td.td-lg:nth-child(3)", + "targets": [], + "value": "3000" + }, { + "id": "fbf64d47-f36e-40d1-9e0c-cb4c6c979477", + "comment": "", + "command": "assertText", + "target": "css=.td-lg:nth-child(3)", "targets": [ - ["css=div.modal-footer > button.btn.btn-secondary", "css"], - ["css=.btn-secondary:nth-child(2)", "css:finder"], - ["xpath=(//button[@type='button'])[3]", "xpath:attributes"], - ["xpath=//div[3]/button[2]", "xpath:position"] + ["css=.td-lg:nth-child(3)", "css:finder"], + ["xpath=//td[3]", "xpath:position"], + ["xpath=//td[contains(.,'Entity ID')]", "xpath:innerText"] ], - "value": "" + "value": "Entity ID" + }, { + "id": "64407839-effe-4785-a75e-328b9dabb2de", + "comment": "", + "command": "assertText", + "target": "css=.td-lg:nth-child(4)", + "targets": [ + ["css=.td-lg:nth-child(4)", "css:finder"], + ["xpath=//td[4]", "xpath:position"], + ["xpath=//td[contains(.,'EntityAttributes')]", "xpath:innerText"] + ], + "value": "EntityAttributes" }, { - "id": "5c2664d6-ff45-4702-a8db-b2283eb367cc", + "id": "42faa1b7-caf1-4924-a6d7-6a02a3d619f2", "comment": "", "command": "click", - "target": "css=.fa-trash", + "target": "css=.td-sm:nth-child(7) > .btn", "targets": [ - ["css=.fa-trash", "css:finder"], - ["xpath=//td[7]/button/i", "xpath:position"] + ["css=.td-sm:nth-child(7) > .btn", "css:finder"], + ["xpath=//td[7]/button", "xpath:position"], + ["xpath=//button[contains(.,'Edit')]", "xpath:innerText"] ], "value": "" }, { - "id": "ffd08f71-9217-4d90-9337-9b10d13ed5c4", + "id": "1769e089-dd92-475c-b8c0-c5995f304215", "comment": "", "command": "click", - "target": "css=button.btn.btn-danger", + "target": "css=.btn-danger", "targets": [ - ["css=button.btn.btn-danger", "css"], ["css=.btn-danger", "css:finder"], ["xpath=(//button[@type='button'])[2]", "xpath:attributes"], - ["xpath=//div[3]/button", "xpath:position"] + ["xpath=//div[3]/button", "xpath:position"], + ["xpath=//button[contains(.,'Delete')]", "xpath:innerText"] ], "value": "" + }, { + "id": "7084d8aa-0173-469e-8198-4c2a7d7a8daa", + "comment": "", + "command": "assertElementNotPresent", + "target": "css=.td-lg:nth-child(3)", + "targets": [], + "value": "" }] }], "suites": [{ @@ -945,4 +1020,4 @@ }], "urls": ["http://localhost:10101/"], "plugins": [] -} \ No newline at end of file +} diff --git a/backend/src/integration/resources/DeleteIncompleteSource.side b/backend/src/integration/resources/DeleteIncompleteSource.side new file mode 100644 index 000000000..6c16cb795 --- /dev/null +++ b/backend/src/integration/resources/DeleteIncompleteSource.side @@ -0,0 +1,310 @@ +{ + "id": "e739769f-c748-449b-a112-dc8f0f516c5b", + "version": "2.0", + "name": "ShibUI", + "url": "http://localhost:10101", + "tests": [{ + "id": "4d9bc23b-6517-4fe8-b2ed-9c36ada8cf17", + "name": "Delete Incomplete Metadata Source", + "commands": [{ + "id": "e399f7e9-64b9-4602-90eb-d7a2613c694c", + "comment": "", + "command": "open", + "target": "/login", + "targets": [], + "value": "" + }, { + "id": "d8ed27dc-9208-4e87-b356-7086fefbf872", + "comment": "", + "command": "type", + "target": "name=username", + "targets": [ + ["name=username", "name"], + ["css=tr:nth-child(1) input", "css:finder"], + ["xpath=//input[@name='username']", "xpath:attributes"], + ["xpath=//input", "xpath:position"] + ], + "value": "admin" + }, { + "id": "52cf8d84-d441-49fc-8a3d-7ea8f2b9b0be", + "comment": "", + "command": "type", + "target": "name=password", + "targets": [ + ["name=password", "name"], + ["css=tr:nth-child(2) input", "css:finder"], + ["xpath=//input[@name='password']", "xpath:attributes"], + ["xpath=//tr[2]/td[2]/input", "xpath:position"] + ], + "value": "adminpass" + }, { + "id": "0012a2a4-1f94-4b45-856a-383e494325cd", + "comment": "", + "command": "sendKeys", + "target": "name=password", + "targets": [ + ["name=password", "name"], + ["css=tr:nth-child(2) input", "css:finder"], + ["xpath=//input[@name='password']", "xpath:attributes"], + ["xpath=//tr[2]/td[2]/input", "xpath:position"] + ], + "value": "${KEY_ENTER}" + }, { + "id": "942f4992-b848-438f-925d-1574df1a85ec", + "comment": "", + "command": "click", + "target": "id=addNewDropdown", + "targets": [ + ["id=addNewDropdown", "id"], + ["css=#addNewDropdown", "css:finder"], + ["xpath=//button[@id='addNewDropdown']", "xpath:attributes"], + ["xpath=//div[@id='navbar']/ul/li/button", "xpath:idRelative"], + ["xpath=//li/button", "xpath:position"], + ["xpath=//button[contains(.,'Add New')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "2d0944de-6ec8-4de5-afc2-51f3a785ff5b", + "comment": "", + "command": "click", + "target": "css=.dropdown-menu > .nav-link:nth-child(1) > translate-i18n", + "targets": [ + ["css=.dropdown-menu > .nav-link:nth-child(1) > translate-i18n", "css:finder"], + ["xpath=//div[@id='navbar']/ul/li/div/a/translate-i18n", "xpath:idRelative"], + ["xpath=//a/translate-i18n", "xpath:position"], + ["xpath=//translate-i18n[contains(.,'Metadata Source')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "81735e87-f056-4cff-9c9c-8036a09dcfd0", + "comment": "", + "command": "click", + "target": "id=field1", + "targets": [ + ["id=field1", "id"], + ["name=field1", "name"], + ["css=#field1", "css:finder"], + ["xpath=//input[@id='field1']", "xpath:attributes"], + ["xpath=//input", "xpath:position"] + ], + "value": "" + }, { + "id": "9585e52c-2049-4c66-a4db-4dc58a2f6353", + "comment": "", + "command": "type", + "target": "id=field1", + "targets": [ + ["id=field1", "id"], + ["name=field1", "name"], + ["css=#field1", "css:finder"], + ["xpath=//input[@id='field1']", "xpath:attributes"], + ["xpath=//input", "xpath:position"] + ], + "value": "Incomplete Source" + }, { + "id": "eac80640-33b2-43df-a694-ad1bb1e0c825", + "comment": "", + "command": "type", + "target": "id=field2", + "targets": [ + ["id=field2", "id"], + ["name=field2", "name"], + ["css=#field2", "css:finder"], + ["xpath=//input[@id='field2']", "xpath:attributes"], + ["xpath=//div[2]/sf-form-element/div/sf-widget-chooser/custom-string/div/input", "xpath:position"] + ], + "value": "Incomplete Source" + }, { + "id": "87100227-185f-45b1-8fe7-0b430590fc76", + "comment": "", + "command": "click", + "target": "css=.next", + "targets": [ + ["css=.next", "css:finder"], + ["xpath=//li[2]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "34f16074-4534-4eda-8f41-f19f356fd6ec", + "comment": "", + "command": "click", + "target": "css=.next", + "targets": [ + ["css=.next", "css:finder"], + ["xpath=//li[3]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "f5f695f3-40e5-45e3-bca4-d81710fb1bce", + "comment": "", + "command": "mouseOver", + "target": "css=.next", + "targets": [ + ["css=.next", "css:finder"], + ["xpath=//li[3]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "fef2219d-1dc2-4324-ad53-b2d09e0efda7", + "comment": "", + "command": "click", + "target": "css=.next", + "targets": [ + ["css=.next", "css:finder"], + ["xpath=//li[3]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "f51ea52b-4223-4bf5-a862-ac5e38b588d2", + "comment": "", + "command": "click", + "target": "css=.next", + "targets": [ + ["css=.next", "css:finder"], + ["xpath=//li[3]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "4e2dad7a-376c-4ddd-99c2-b053dd55a474", + "comment": "", + "command": "click", + "target": "css=.next", + "targets": [ + ["css=.next", "css:finder"], + ["xpath=//li[3]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "76e0b202-1c6f-40ac-bfb3-cf1a7b24ee6f", + "comment": "", + "command": "click", + "target": "css=.next", + "targets": [ + ["css=.next", "css:finder"], + ["xpath=//li[3]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "0ac6d0ba-a28e-46ca-bbb3-02e5c5e15fee", + "comment": "", + "command": "click", + "target": "css=.next", + "targets": [ + ["css=.next", "css:finder"], + ["xpath=//li[3]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "2e8c849d-a320-4be7-9abe-e2a3b0113717", + "comment": "", + "command": "click", + "target": "css=.next", + "targets": [ + ["css=.next", "css:finder"], + ["xpath=//li[3]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "7580bb3a-dced-412c-b20c-f44dc4cde330", + "comment": "", + "command": "click", + "target": "css=.next", + "targets": [ + ["css=.next", "css:finder"], + ["xpath=//li[3]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "8a266dee-554c-43ba-95f9-e6b1a7dda2fd", + "comment": "", + "command": "click", + "target": "css=.nav-item > .nav-link > translate-i18n", + "targets": [ + ["css=.nav-item > .nav-link > translate-i18n", "css:finder"], + ["xpath=//div[@id='navbar']/ul/li[2]/a/translate-i18n", "xpath:idRelative"], + ["xpath=//li[2]/a/translate-i18n", "xpath:position"], + ["xpath=//translate-i18n[contains(.,'Dashboard')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "e432f5d6-953d-4751-b857-b9fa9beffaab", + "comment": "", + "command": "click", + "target": "css=.btn-primary", + "targets": [ + ["css=.btn-primary", "css:finder"], + ["xpath=(//button[@type='button'])[2]", "xpath:attributes"], + ["xpath=//div[3]/button", "xpath:position"], + ["xpath=//button[contains(.,'Finish Later')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "a127c67c-5b91-445a-a2b6-8a043120ded8", + "comment": "", + "command": "waitForElementPresent", + "target": "css=div:nth-child(2) > .badge", + "targets": [], + "value": "3000" + }, { + "id": "70483538-a928-4e76-885f-1bc432e40546", + "comment": "", + "command": "assertText", + "target": "css=div:nth-child(2) > .badge", + "targets": [ + ["css=div:nth-child(2) > .badge", "css:finder"], + ["xpath=//div[2]/span", "xpath:position"], + ["xpath=//span[contains(.,'Incomplete Form')]", "xpath:innerText"] + ], + "value": "Incomplete Form" + }, { + "id": "cca5e05d-9836-491e-92f9-1225c833a394", + "comment": "", + "command": "click", + "target": "css=.text-primary", + "targets": [ + ["css=.text-primary", "css:finder"], + ["xpath=//div/i", "xpath:position"] + ], + "value": "" + }, { + "id": "7643aee7-cdbc-4b7b-94a5-c1b0fb0b2521", + "comment": "", + "command": "click", + "target": "css=.pull-right", + "targets": [ + ["css=.pull-right", "css:finder"], + ["xpath=//div[2]/div/div/div[2]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "8d40f8f6-3a81-4c98-801b-bd63a38653a3", + "comment": "", + "command": "click", + "target": "css=.btn-danger", + "targets": [ + ["css=.btn-danger", "css:finder"], + ["xpath=(//button[@type='button'])[3]", "xpath:attributes"], + ["xpath=//div[3]/button", "xpath:position"], + ["xpath=//button[contains(.,'Delete')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "59a0f4a6-101d-49b6-9fb4-64813db90033", + "comment": "", + "command": "assertElementNotPresent", + "target": "css=dif:nth-child(2) > .badge", + "targets": [], + "value": "" + }] + }], + "suites": [{ + "id": "8d5af712-f2c2-47c0-a6ec-e098a14514c0", + "name": "Default Suite", + "persistSession": false, + "parallel": false, + "timeout": 300, + "tests": ["4d9bc23b-6517-4fe8-b2ed-9c36ada8cf17"] + }], + "urls": ["http://localhost:10101/"], + "plugins": [] +} \ No newline at end of file diff --git a/backend/src/integration/resources/DeleteIncompleteSource_Incomplete.side b/backend/src/integration/resources/DeleteIncompleteSource_Incomplete.side deleted file mode 100644 index 2ab5bb2a6..000000000 --- a/backend/src/integration/resources/DeleteIncompleteSource_Incomplete.side +++ /dev/null @@ -1,622 +0,0 @@ -{ - "id": "16b5f41b-30c1-4cc1-9c9e-bc15e40d1318", - "version": "1.1", - "name": "ShibUI", - "url": "http://localhost:10101/", - "tests": [{ - "id": "daacdb81-2f14-49f3-8d15-da5f5d52586c", - "name": "Delete Incomplete Source", - "commands": [{ - "id": "227fe3ca-ebb3-46ee-8067-eb1bd1290801", - "comment": "", - "command": "open", - "target": "/api/heheheheheheheWipeout", - "targets": [], - "value": "" - }, { - "id": "853ef897-df38-4b31-ad06-3598bf9bc5e2", - "comment": "", - "command": "assertText", - "target": "css=body", - "targets": [ - ["css=body", "css"], - ["css=body", "css:finder"], - ["xpath=//body", "xpath:position"] - ], - "value": "yes, you did it" - }, { - "id": "effbf04c-a1fa-411e-a47f-0b71acfbf4b2", - "comment": "", - "command": "open", - "target": "/", - "targets": [], - "value": "" - }, { - "id": "758bd43d-364e-4860-bc70-824f5e0a2b52", - "comment": "", - "command": "click", - "target": "css=translate-i18n", - "targets": [ - ["css=translate-i18n", "css"], - ["css=#addNewDropdown > translate-i18n", "css:finder"], - ["xpath=//button[@id='addNewDropdown']/translate-i18n", "xpath:idRelative"], - ["xpath=//translate-i18n", "xpath:position"] - ], - "value": "" - }, { - "id": "21dc44c6-339c-4260-8009-02e8fb3e74c4", - "comment": "", - "command": "click", - "target": "css=.nav-link:nth-child(2) > translate-i18n", - "targets": [ - ["css=.nav-link:nth-child(2) > translate-i18n", "css:finder"], - ["xpath=//div[@id='navbar']/ul/li/div/a[2]/translate-i18n", "xpath:idRelative"], - ["xpath=//a[2]/translate-i18n", "xpath:position"] - ], - "value": "" - }, { - "id": "24b868c1-7f23-4a9a-89f2-ac540605129a", - "comment": "", - "command": "click", - "target": "id=field1", - "targets": [ - ["id=field1", "id"], - ["name=field1", "name"], - ["css=#field1", "css"], - ["css=#field1", "css:finder"], - ["xpath=//input[@id='field1']", "xpath:attributes"], - ["xpath=//input", "xpath:position"] - ], - "value": "" - }, { - "id": "c8218096-deaf-4171-883e-d210648f2a35", - "comment": "", - "command": "type", - "target": "id=field1", - "targets": [ - ["id=field1", "id"], - ["name=field1", "name"], - ["css=#field1", "css"], - ["css=#field1", "css:finder"], - ["xpath=//input[@id='field1']", "xpath:attributes"], - ["xpath=//input", "xpath:position"] - ], - "value": "Metadata Provider: " - }, { - "id": "acb5c4a4-082d-498b-bf21-a6a2d65e6b11", - "comment": "", - "command": "click", - "target": "id=field2", - "targets": [ - ["id=field2", "id"], - ["name=field2", "name"], - ["css=#field2", "css"], - ["css=#field2", "css:finder"], - ["xpath=//select[@id='field2']", "xpath:attributes"], - ["xpath=//select", "xpath:position"] - ], - "value": "" - }, { - "id": "b3117791-75ff-4a91-9172-28e7b24fc5f2", - "comment": "", - "command": "select", - "target": "id=field2", - "targets": [], - "value": "label=FileBackedHttpMetadataProvider" - }, { - "id": "059bcfe7-c42c-4327-9fcd-b53e2671fb75", - "comment": "", - "command": "click", - "target": "id=field1", - "targets": [ - ["id=field1", "id"], - ["name=field1", "name"], - ["css=#field1", "css"], - ["css=#field1", "css:finder"], - ["xpath=//input[@id='field1']", "xpath:attributes"], - ["xpath=//input", "xpath:position"] - ], - "value": "" - }, { - "id": "3471a9c3-2176-4e15-a235-0c326b689ad8", - "comment": "", - "command": "type", - "target": "id=field1", - "targets": [ - ["id=field1", "id"], - ["name=field1", "name"], - ["css=#field1", "css"], - ["css=#field1", "css:finder"], - ["xpath=//input[@id='field1']", "xpath:attributes"], - ["xpath=//input", "xpath:position"] - ], - "value": "Metadata Provider: FBHMP" - }, { - "id": "1bad25ea-6794-44c6-b7e4-8af3c231144c", - "comment": "", - "command": "click", - "target": "css=span.label.pull-left", - "targets": [ - ["css=span.label.pull-left", "css"], - ["css=.label", "css:finder"], - ["xpath=//li[2]/button/span", "xpath:position"] - ], - "value": "" - }, { - "id": "2d873c07-f89b-420a-a77b-d597dbcf4984", - "comment": "", - "command": "click", - "target": "id=field4", - "targets": [ - ["id=field4", "id"], - ["name=field4", "name"], - ["css=#field4", "css"], - ["css=#field4", "css:finder"], - ["xpath=//input[@id='field4']", "xpath:attributes"], - ["xpath=//input", "xpath:position"] - ], - "value": "" - }, { - "id": "c1e9ed64-7c58-4683-8ac4-8ea70bde4724", - "comment": "", - "command": "type", - "target": "id=field4", - "targets": [ - ["id=field4", "id"], - ["name=field4", "name"], - ["css=#field4", "css"], - ["css=#field4", "css:finder"], - ["xpath=//input[@id='field4']", "xpath:attributes"], - ["xpath=//input", "xpath:position"] - ], - "value": "ID" - }, { - "id": "5b18ebb5-61c5-4b8e-b252-35d401bfd0a3", - "comment": "", - "command": "type", - "target": "id=field5", - "targets": [ - ["id=field5", "id"], - ["name=field5", "name"], - ["css=#field5", "css"], - ["css=#field5", "css:finder"], - ["xpath=//input[@id='field5']", "xpath:attributes"], - ["xpath=//div[2]/sf-form-element/div/sf-widget-chooser/custom-string/div/input", "xpath:position"] - ], - "value": "https://idp.unicon.net/idp/shibboleth" - }, { - "id": "47569c1e-e601-4ef0-a97d-4a7b0ee15a71", - "comment": "", - "command": "click", - "target": "id=field7", - "targets": [ - ["id=field7", "id"], - ["name=field7", "name"], - ["css=#field7", "css"], - ["css=#field7", "css:finder"], - ["xpath=//input[@id='field7']", "xpath:attributes"], - ["xpath=//div[4]/sf-form-element/div/sf-widget-chooser/custom-string/div/input", "xpath:position"] - ], - "value": "" - }, { - "id": "e4351d67-9066-4631-81ad-0c10e9f0d457", - "comment": "", - "command": "click", - "target": "id=field7", - "targets": [ - ["id=field7", "id"], - ["name=field7", "name"], - ["css=#field7", "css"], - ["css=#field7", "css:finder"], - ["xpath=//input[@id='field7']", "xpath:attributes"], - ["xpath=//div[4]/sf-form-element/div/sf-widget-chooser/custom-string/div/input", "xpath:position"] - ], - "value": "" - }, { - "id": "f3fc7654-a454-4a41-9eb3-9d92bed74e76", - "comment": "", - "command": "doubleClick", - "target": "id=field7", - "targets": [ - ["id=field7", "id"], - ["name=field7", "name"], - ["css=#field7", "css"], - ["css=#field7", "css:finder"], - ["xpath=//input[@id='field7']", "xpath:attributes"], - ["xpath=//div[4]/sf-form-element/div/sf-widget-chooser/custom-string/div/input", "xpath:position"] - ], - "value": "" - }, { - "id": "c096f1bd-7b01-4202-bbb8-bb141b512147", - "comment": "", - "command": "type", - "target": "id=field7", - "targets": [ - ["id=field7", "id"], - ["name=field7", "name"], - ["css=#field7", "css"], - ["css=#field7", "css:finder"], - ["xpath=//input[@id='field7']", "xpath:attributes"], - ["xpath=//div[4]/sf-form-element/div/sf-widget-chooser/custom-string/div/input", "xpath:position"] - ], - "value": "%{idp.home}/metadata/test.xml" - }, { - "id": "bb1810c2-25e8-4c11-8de1-de1b37664917", - "comment": "", - "command": "click", - "target": "css=button.btn.btn-outline-secondary", - "targets": [ - ["css=button.btn.btn-outline-secondary", "css"], - ["css=.btn-outline-secondary", "css:finder"], - ["xpath=(//button[@type='button'])[2]", "xpath:attributes"], - ["xpath=//div[@id='field8-container']/div/div/button", "xpath:idRelative"], - ["xpath=//div/button", "xpath:position"] - ], - "value": "" - }, { - "id": "f16e0633-b5e7-4544-bbeb-c851519178bd", - "comment": "", - "command": "click", - "target": "id=field8__option--0", - "targets": [ - ["id=field8__option--0", "id"], - ["css=#field8__option--0", "css"], - ["css=#field8__option--0", "css:finder"], - ["xpath=//li[@id='field8__option--0']", "xpath:attributes"], - ["xpath=//ul[@id='field8__listbox']/li", "xpath:idRelative"], - ["xpath=//auto-complete/div/ul/li", "xpath:position"] - ], - "value": "" - }, { - "id": "df8efb67-d5f5-4080-b2e7-6ec8777956a7", - "comment": "", - "command": "click", - "target": "css=.next", - "targets": [ - ["css=.next", "css:finder"], - ["xpath=//li[3]/button", "xpath:position"] - ], - "value": "" - }, { - "id": "45642b8d-b691-4527-a137-de4a2f94f10b", - "comment": "", - "command": "click", - "target": "css=i.fa.fa-caret-down", - "targets": [ - ["css=i.fa.fa-caret-down", "css"], - ["css=#field15-container .fa", "css:finder"], - ["xpath=//div[@id='field15-container']/div/div/button/i", "xpath:idRelative"], - ["xpath=//div/button/i", "xpath:position"] - ], - "value": "" - }, { - "id": "062e47c2-75a8-4404-8139-72031ba87187", - "comment": "", - "command": "click", - "target": "id=field15__option--0", - "targets": [ - ["id=field15__option--0", "id"], - ["css=#field15__option--0", "css"], - ["css=#field15__option--0", "css:finder"], - ["xpath=//li[@id='field15__option--0']", "xpath:attributes"], - ["xpath=//ul[@id='field15__listbox']/li", "xpath:idRelative"], - ["xpath=//auto-complete/div/ul/li", "xpath:position"] - ], - "value": "" - }, { - "id": "0da757a9-98f9-4454-bb3b-da3e4c14906d", - "comment": "", - "command": "click", - "target": "css=#field16-container > div.input-group > div.input-group-append > button.btn.btn-outline-secondary > i.fa.fa-caret-down", - "targets": [ - ["css=#field16-container > div.input-group > div.input-group-append > button.btn.btn-outline-secondary > i.fa.fa-caret-down", "css"], - ["css=#field16-container .fa", "css:finder"], - ["xpath=//div[@id='field16-container']/div/div/button/i", "xpath:idRelative"], - ["xpath=//div[2]/sf-form-element/div/sf-widget-chooser/datalist-component/div/auto-complete/div/div/div/button/i", "xpath:position"] - ], - "value": "" - }, { - "id": "7ddee128-01fc-4c93-a17b-46a882acc705", - "comment": "", - "command": "click", - "target": "id=field16__option--3", - "targets": [ - ["id=field16__option--3", "id"], - ["css=#field16__option--3", "css"], - ["css=#field16__option--3", "css:finder"], - ["xpath=//li[@id='field16__option--3']", "xpath:attributes"], - ["xpath=//ul[@id='field16__listbox']/li[4]", "xpath:idRelative"], - ["xpath=//div[2]/sf-form-element/div/sf-widget-chooser/datalist-component/div/auto-complete/div/ul/li[4]", "xpath:position"] - ], - "value": "" - }, { - "id": "70f6828a-7770-4eb3-bb51-2bccdab7aaa5", - "comment": "", - "command": "click", - "target": "css=button.btn.btn-outline-secondary", - "targets": [ - ["css=button.btn.btn-outline-secondary", "css"], - ["css=#field15-container .btn", "css:finder"], - ["xpath=(//button[@type='button'])[2]", "xpath:attributes"], - ["xpath=//div[@id='field15-container']/div/div/button", "xpath:idRelative"], - ["xpath=//div/button", "xpath:position"] - ], - "value": "" - }, { - "id": "850dd703-eb10-4487-ad7c-ee7dcc1143b5", - "comment": "", - "command": "click", - "target": "id=field15__option--1", - "targets": [ - ["id=field15__option--1", "id"], - ["css=#field15__option--1", "css"], - ["css=#field15__option--1", "css:finder"], - ["xpath=//li[@id='field15__option--1']", "xpath:attributes"], - ["xpath=//ul[@id='field15__listbox']/li[2]", "xpath:idRelative"], - ["xpath=//auto-complete/div/ul/li[2]", "xpath:position"] - ], - "value": "" - }, { - "id": "2b404fc4-0ad0-4963-85ae-eebcfc866b71", - "comment": "", - "command": "type", - "target": "name=field17", - "targets": [ - ["name=field17", "name"], - ["css=input[name=\"field17\"]", "css"], - ["css=.text-widget", "css:finder"], - ["xpath=//input[@name='field17']", "xpath:attributes"], - ["xpath=//integer-component/div/input", "xpath:position"] - ], - "value": "0.01" - }, { - "id": "ebcb555d-ea24-41fb-a306-fd2072a4fa20", - "comment": "", - "command": "click", - "target": "name=field17", - "targets": [ - ["name=field17", "name"], - ["css=input[name=\"field17\"]", "css"], - ["css=.text-widget", "css:finder"], - ["xpath=//input[@name='field17']", "xpath:attributes"], - ["xpath=//integer-component/div/input", "xpath:position"] - ], - "value": "" - }, { - "id": "a0bed117-0336-4ec2-806a-664add40ef94", - "comment": "", - "command": "click", - "target": "name=field17", - "targets": [ - ["name=field17", "name"], - ["css=input[name=\"field17\"]", "css"], - ["css=.text-widget", "css:finder"], - ["xpath=//input[@name='field17']", "xpath:attributes"], - ["xpath=//integer-component/div/input", "xpath:position"] - ], - "value": "" - }, { - "id": "ee0a1de9-4573-4188-a7a3-c5512b299cc8", - "comment": "", - "command": "click", - "target": "name=field17", - "targets": [ - ["name=field17", "name"], - ["css=input[name=\"field17\"]", "css"], - ["css=.text-widget", "css:finder"], - ["xpath=//input[@name='field17']", "xpath:attributes"], - ["xpath=//integer-component/div/input", "xpath:position"] - ], - "value": "" - }, { - "id": "81c3814f-26eb-4e8b-8cd2-93c8c3494270", - "comment": "", - "command": "click", - "target": "name=field17", - "targets": [ - ["name=field17", "name"], - ["css=input[name=\"field17\"]", "css"], - ["css=.text-widget", "css:finder"], - ["xpath=//input[@name='field17']", "xpath:attributes"], - ["xpath=//integer-component/div/input", "xpath:position"] - ], - "value": "" - }, { - "id": "fdf1e317-b808-4866-9052-b44bf1571d1e", - "comment": "", - "command": "type", - "target": "name=field17", - "targets": [ - ["name=field17", "name"], - ["css=input[name=\"field17\"]", "css"], - ["css=.text-widget", "css:finder"], - ["xpath=//input[@name='field17']", "xpath:attributes"], - ["xpath=//integer-component/div/input", "xpath:position"] - ], - "value": "0.04" - }, { - "id": "183e50b8-7034-47c7-8b6e-a27a982afc6a", - "comment": "", - "command": "click", - "target": "css=span.label.pull-left", - "targets": [ - ["css=span.label.pull-left", "css"], - ["css=.label:nth-child(1)", "css:finder"], - ["xpath=//li[3]/button/span", "xpath:position"] - ], - "value": "" - }, { - "id": "dce62f7d-a12a-4fc7-b71c-7f387048acd0", - "comment": "", - "command": "mouseOver", - "target": "css=span.direction.pull-right", - "targets": [ - ["css=span.direction.pull-right", "css"], - ["css=.direction:nth-child(2)", "css:finder"], - ["xpath=//li[3]/button/span[2]", "xpath:position"] - ], - "value": "" - }, { - "id": "82f0c49b-cee3-4a65-9410-8af721ec891c", - "comment": "", - "command": "mouseOut", - "target": "css=span.direction.pull-right", - "targets": [ - ["css=span.direction.pull-right", "css"], - ["css=.direction:nth-child(2)", "css:finder"], - ["xpath=//li[3]/button/span[2]", "xpath:position"] - ], - "value": "" - }, { - "id": "97f3d781-4748-4c3b-93e9-d27b04818df6", - "comment": "", - "command": "click", - "target": "css=i.fa.fa-caret-down", - "targets": [ - ["css=i.fa.fa-caret-down", "css"], - ["css=.fa-caret-down", "css:finder"], - ["xpath=//div[@id='field21-container']/div/div/button/i", "xpath:idRelative"], - ["xpath=//div/button/i", "xpath:position"] - ], - "value": "" - }, { - "id": "8c53a716-f551-4ccf-ac31-36f151784858", - "comment": "", - "command": "click", - "target": "id=field21__option--0", - "targets": [ - ["id=field21__option--0", "id"], - ["css=#field21__option--0", "css"], - ["css=#field21__option--0", "css:finder"], - ["xpath=//li[@id='field21__option--0']", "xpath:attributes"], - ["xpath=//ul[@id='field21__listbox']/li", "xpath:idRelative"], - ["xpath=//auto-complete/div/ul/li", "xpath:position"] - ], - "value": "" - }, { - "id": "4c2fb2d1-03c9-4e0b-8098-291808964da0", - "comment": "", - "command": "click", - "target": "id=field24", - "targets": [ - ["id=field24", "id"], - ["name=field24", "name"], - ["css=#field24", "css"], - ["css=#field24", "css:finder"], - ["xpath=//input[@id='field24']", "xpath:attributes"], - ["xpath=//custom-string/div/input", "xpath:position"] - ], - "value": "" - }, { - "id": "699b5bf4-ed62-4b3e-8727-f81d4c9cdfeb", - "comment": "", - "command": "type", - "target": "id=field24", - "targets": [ - ["id=field24", "id"], - ["name=field24", "name"], - ["css=#field24", "css"], - ["css=#field24", "css:finder"], - ["xpath=//input[@id='field24']", "xpath:attributes"], - ["xpath=//custom-string/div/input", "xpath:position"] - ], - "value": "oh, happy path dagger " - }, { - "id": "62d89667-aa43-4e45-a665-62ab778d2cf7", - "comment": "", - "command": "click", - "target": "css=.btn-success > translate-i18n", - "targets": [ - ["css=.btn-success > translate-i18n", "css:finder"], - ["xpath=//div/button/translate-i18n", "xpath:position"] - ], - "value": "" - }, { - "id": "7c421f6a-04b0-46ab-b456-e1355001f517", - "comment": "", - "command": "click", - "target": "id=field29", - "targets": [ - ["id=field29", "id"], - ["name=field29", "name"], - ["css=#field29", "css"], - ["css=#field29", "css:finder"], - ["xpath=//select[@id='field29']", "xpath:attributes"], - ["xpath=//select", "xpath:position"] - ], - "value": "" - }, { - "id": "a589ed87-e431-4f8c-8bb0-a7c36eff5f70", - "comment": "", - "command": "select", - "target": "id=field29", - "targets": [], - "value": "label=SPSSODescriptor" - }, { - "id": "350ae05b-bcec-419f-8b51-7d3877fa6556", - "comment": "", - "command": "click", - "target": "css=div:nth-child(2) > sf-form-element > .has-success > sf-widget-chooser > checkbox-component .custom-control-label", - "targets": [ - ["css=div:nth-child(2) > sf-form-element > .has-success > sf-widget-chooser > checkbox-component .custom-control-label", "css:finder"], - ["xpath=//div[2]/sf-form-element/div/sf-widget-chooser/checkbox-component/div/div/div/label", "xpath:position"] - ], - "value": "" - }, { - "id": "2aa4bc33-2888-466a-9355-2ccf2fdb931b", - "comment": "", - "command": "click", - "target": "css=span.direction.pull-right", - "targets": [ - ["css=span.direction.pull-right", "css"], - ["css=.direction:nth-child(2)", "css:finder"], - ["xpath=//li[3]/button/span[2]", "xpath:position"] - ], - "value": "" - }, { - "id": "079c5868-915c-4441-8e57-7069ade24285", - "comment": "", - "command": "click", - "target": "css=label.custom-control-label", - "targets": [ - ["css=label.custom-control-label", "css"], - ["css=.custom-control-label", "css:finder"], - ["xpath=//label", "xpath:position"] - ], - "value": "" - }, { - "id": "e065654c-745a-4611-a04a-753af2abb5a1", - "comment": "", - "command": "click", - "target": "css=label.custom-control-label", - "targets": [ - ["css=label.custom-control-label", "css"], - ["css=.custom-control-label", "css:finder"], - ["xpath=//label", "xpath:position"] - ], - "value": "" - }, { - "id": "e502b050-8dcd-434d-9a52-b1fba0133411", - "comment": "", - "command": "click", - "target": "css=li.nav-item > a.nav-link.active > translate-i18n", - "targets": [ - ["css=li.nav-item > a.nav-link.active > translate-i18n", "css"], - ["css=.active:nth-child(1) > translate-i18n", "css:finder"], - ["xpath=//div[@id='navbar']/ul/li[2]/a/translate-i18n", "xpath:idRelative"], - ["xpath=//li[2]/a/translate-i18n", "xpath:position"] - ], - "value": "" - }] - }], - "suites": [{ - "id": "68463b12-6739-4224-895c-8108557af99e", - "name": "Default Suite", - "persistSession": false, - "parallel": false, - "timeout": 300, - "tests": ["daacdb81-2f14-49f3-8d15-da5f5d52586c"] - }], - "urls": ["http://localhost:10101/"], - "plugins": [] -} \ No newline at end of file diff --git a/backend/src/integration/resources/DeleteREGEXFilter_Incomplete.side b/backend/src/integration/resources/DeleteREGEXFilter.side similarity index 88% rename from backend/src/integration/resources/DeleteREGEXFilter_Incomplete.side rename to backend/src/integration/resources/DeleteREGEXFilter.side index 1d225bc7a..788696f38 100644 --- a/backend/src/integration/resources/DeleteREGEXFilter_Incomplete.side +++ b/backend/src/integration/resources/DeleteREGEXFilter.side @@ -1,29 +1,54 @@ { "id": "16b5f41b-30c1-4cc1-9c9e-bc15e40d1318", - "version": "1.1", + "version": "2.0", "name": "ShibUI", "url": "http://localhost:10101/", "tests": [{ "id": "daacdb81-2f14-49f3-8d15-da5f5d52586c", "name": "Delete Entity REGEX Filter", "commands": [{ - "id": "227fe3ca-ebb3-46ee-8067-eb1bd1290801", + "id": "c023f973-f799-4dc3-90d0-d75ccade0317", "comment": "", "command": "open", - "target": "/api/heheheheheheheWipeout", + "target": "/login", "targets": [], "value": "" }, { - "id": "853ef897-df38-4b31-ad06-3598bf9bc5e2", + "id": "492f48b4-97f8-4cb7-b8de-abf963b576af", + "comment": "Use User Login", + "command": "type", + "target": "name=username", + "targets": [ + ["name=username", "name"], + ["css=tr:nth-child(1) input", "css:finder"], + ["xpath=//input[@name='username']", "xpath:attributes"], + ["xpath=//input", "xpath:position"] + ], + "value": "admin" + }, { + "id": "f61dd17c-d2ee-4200-a8f7-96d841d4ccb8", + "comment": "Use User Password", + "command": "type", + "target": "name=password", + "targets": [ + ["name=password", "name"], + ["css=tr:nth-child(2) input", "css:finder"], + ["xpath=//input[@name='password']", "xpath:attributes"], + ["xpath=//tr[2]/td[2]/input", "xpath:position"] + ], + "value": "adminpass" + }, { + "id": "fdb5a585-49aa-403c-8c23-c4fc548267b3", "comment": "", - "command": "assertText", - "target": "css=body", + "command": "click", + "target": "name=submit", "targets": [ - ["css=body", "css"], - ["css=body", "css:finder"], - ["xpath=//body", "xpath:position"] + ["name=submit", "name"], + ["css=td:nth-child(1) > input", "css:finder"], + ["xpath=//input[@name='submit']", "xpath:attributes"], + ["xpath=//tr[3]/td/input", "xpath:position"] ], - "value": "yes, you did it" + "value": "" }, { "id": "effbf04c-a1fa-411e-a47f-0b71acfbf4b2", "comment": "", @@ -609,13 +634,12 @@ "id": "c3d80754-3e28-4b07-95f6-5bfac82e9a58", "comment": "", "command": "assertText", - "target": "css=div.px-2", + "target": "css=.row:nth-child(1) > .col:nth-child(2)", "targets": [ - ["css=div.px-2", "css"], - ["css=.px-2", "css:finder"], - ["xpath=//div[2]/div[2]", "xpath:position"] + ["css=.row:nth-child(1) > .col:nth-child(2)", "css:finder"], + ["xpath=//div[2]/div/div/div/div/div[2]", "xpath:position"] ], - "value": "Metadata Provider: FBHMP\\nFileBackedHttpMetadataResolver" + "value": "Metadata Provider: FBHMP" }, { "id": "b8c89883-4999-4429-a4f0-b20f7dbc825c", "comment": "", @@ -638,6 +662,30 @@ ["xpath=//div[2]/a/translate-i18n", "xpath:position"] ], "value": "" + }, { + "id": "5693bc4b-80b7-41e3-885b-0911a4835212", + "comment": "", + "command": "click", + "target": "name=type", + "targets": [ + ["name=type", "name"], + ["css=.is-valid", "css:finder"], + ["xpath=//select[@name='type']", "xpath:attributes"], + ["xpath=//select", "xpath:position"] + ], + "value": "" + }, { + "id": "5693bc4b-80b7-41e3-885b-0911a4835211", + "comment": "", + "command": "select", + "target": "name=type", + "targets": [ + ["name=type", "name"], + ["css=.is-valid", "css:finder"], + ["xpath=//select[@name='type']", "xpath:attributes"], + ["xpath=//select", "xpath:position"] + ], + "value": "label=EntityAttributes" }, { "id": "a69166b9-4073-4653-987d-0537702f5dbb", "comment": "", @@ -681,13 +729,14 @@ "id": "bcb6b08c-2c96-4662-9615-172c5cca5555", "comment": "", "command": "click", - "target": "linkText=Regex", + "target": "css=.dropdown-item:nth-child(2)", "targets": [ ["linkText=Regex", "linkText"], ["css=.dropdown-item:nth-child(2)", "css:finder"], ["xpath=//a[contains(text(),'Regex')]", "xpath:link"], ["xpath=(//a[contains(@href, '#')])[2]", "xpath:href"], - ["xpath=//div/div/a[2]", "xpath:position"] + ["xpath=//div/div/a[2]", "xpath:position"], + ["xpath=//a[contains(.,'Regex')]", "xpath:innerText"] ], "value": "" }, { @@ -745,7 +794,7 @@ ["xpath=//input[@id='targetInput']", "xpath:attributes"], ["xpath=//div/div/input", "xpath:position"] ], - "value": "/foo.*/" + "value": "foo.*" }, { "id": "9c0fcb70-83f6-45b5-b5ef-d0ff7bdc80cb", "comment": "", @@ -808,6 +857,13 @@ ["xpath=//div/button", "xpath:position"] ], "value": "" + }, { + "id": "ec7223b2-894b-4fa7-ba84-3fee760433d8", + "comment": "", + "command": "waitForElementPresent", + "target": "css=td.td-lg", + "targets": [], + "value": "3000" }, { "id": "8d472caf-2525-4e20-9f14-195e0212f72f", "comment": "", @@ -819,6 +875,39 @@ ["xpath=//td[3]", "xpath:position"] ], "value": "REGEX" + }, { + "id": "2e7df1d1-aaf0-4029-a037-a33b779759a7", + "comment": "", + "command": "click", + "target": "css=.td-sm:nth-child(7) > .btn", + "targets": [ + ["css=.td-sm:nth-child(7) > .btn", "css:finder"], + ["xpath=//td[7]/button", "xpath:position"], + ["xpath=//button[contains(.,'Edit')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "44080c2f-a9f9-41b0-ae6c-799574dfebb6", + "comment": "", + "command": "click", + "target": "css=.btn-danger", + "targets": [ + ["css=.btn-danger", "css:finder"], + ["xpath=(//button[@type='button'])[2]", "xpath:attributes"], + ["xpath=//div[3]/button", "xpath:position"], + ["xpath=//button[contains(.,'Delete')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "a67c3c17-33ec-473b-bb54-fc8bdd1eb522", + "comment": "", + "command": "assertElementNotPresent", + "target": "css=td.td-lg", + "targets": [ + ["css=.align-items-start", "css:finder"], + ["xpath=//footer/div/div/div", "xpath:position"] + ], + "value": "" }] }], "suites": [{ diff --git a/backend/src/integration/resources/MetadataProviderHappyPathSAVE.side b/backend/src/integration/resources/MetadataProviderHappyPathSAVE.side index 71d55847c..f89c45be0 100644 --- a/backend/src/integration/resources/MetadataProviderHappyPathSAVE.side +++ b/backend/src/integration/resources/MetadataProviderHappyPathSAVE.side @@ -568,13 +568,12 @@ "id": "c3d80754-3e28-4b07-95f6-5bfac82e9a58", "comment": "", "command": "assertText", - "target": "css=div.px-2", + "target": "css=.row:nth-child(1) > .col:nth-child(2)", "targets": [ - ["css=div.px-2", "css"], - ["css=.px-2", "css:finder"], - ["xpath=//div[2]/div[2]", "xpath:position"] + ["css=.row:nth-child(1) > .col:nth-child(2)", "css:finder"], + ["xpath=//div[2]/div/div/div/div/div[2]", "xpath:position"] ], - "value": "Metadata Provider: FBHMP FileBackedHttpMetadataResolver" + "value": "Metadata Provider: FBHMP" }] }], "suites": [{ @@ -587,4 +586,4 @@ }], "urls": ["http://localhost:10101/"], "plugins": [] -} +} \ No newline at end of file