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 e68d43739..75167259a 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 @@ -124,6 +124,9 @@ class SeleniumSIDETest extends Specification { 'SHIBUI-1391: Regex Validation' | '/SHIBUI-1391.side' 'SHIBUI-1407: Metadata source comparison highlights' | '/SHIBUI-1407-1.side' 'SHIBUI-1407: Metadata provider comparison highlights' | '/SHIBUI-1407-2.side' + 'SHIBUI-1503: Non-admin can create metadata source' | '/SHIBUI-1503-1.side' + 'SHIBUI-1503: User can be deleted' | '/SHIBUI-1503-2.side' + 'SHIBUI-1503: User can be enabled' | '/SHIBUI-1503-3.side' } } diff --git a/backend/src/integration/resources/SHIBUI-1503-1.side b/backend/src/integration/resources/SHIBUI-1503-1.side new file mode 100644 index 000000000..844ce69fd --- /dev/null +++ b/backend/src/integration/resources/SHIBUI-1503-1.side @@ -0,0 +1,504 @@ +{ + "id": "2b5fc163-381b-4237-8abb-a2f5aaf2a5b7", + "version": "2.0", + "name": "SHIBUI-1503-1", + "url": "http://localhost:10101", + "tests": [{ + "id": "3f0e6ded-0b61-4d71-9f74-937cbd972cb3", + "name": "SHIBUI-1503-1", + "commands": [{ + "id": "86ad3094-9850-478e-9020-e5c894ea17a7", + "comment": "", + "command": "open", + "target": "/login", + "targets": [], + "value": "" + }, { + "id": "b39e96ee-c5a0-4e85-b86b-b41ce815fcde", + "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": "nonadmin" + }, { + "id": "b0d833bc-eda8-4e7a-9ba7-f002394340f7", + "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": "nonadminpass" + }, { + "id": "ca7d0095-749c-4709-80aa-0083dc477d20", + "comment": "", + "command": "click", + "target": "name=submit", + "targets": [ + ["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": "" + }, { + "id": "db912e0e-b9c9-4693-92cf-a43a9756d253", + "comment": "", + "command": "waitForElementVisible", + "target": "css=#addNewDropdown > translate-i18n", + "targets": [], + "value": "30000" + }, { + "id": "fcb0a214-ead2-407e-b2b2-ddac954e1348", + "comment": "", + "command": "click", + "target": "css=#addNewDropdown > translate-i18n", + "targets": [ + ["css=#addNewDropdown > translate-i18n", "css:finder"], + ["xpath=//button[@id='addNewDropdown']/translate-i18n", "xpath:idRelative"], + ["xpath=//translate-i18n", "xpath:position"], + ["xpath=//translate-i18n[contains(.,'Add New')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "837ce33c-8787-4b31-9f8c-d250e5fae525", + "comment": "", + "command": "click", + "target": "linkText=Metadata Source", + "targets": [ + ["linkText=Metadata Source", "linkText"], + ["css=.dropdown-menu > .nav-link:nth-child(1)", "css:finder"], + ["xpath=//div[@id='navbar']/ul/li/div/a", "xpath:idRelative"], + ["xpath=(//a[contains(@href, '')])[2]", "xpath:href"], + ["xpath=//div/a", "xpath:position"] + ], + "value": "" + }, { + "id": "38afb51c-c3ae-47ca-8d1f-02f26ba2440f", + "comment": "", + "command": "waitForElementEditable", + "target": "id=/serviceProviderName", + "targets": [], + "value": "30000" + }, { + "id": "aa956591-ae81-4637-8d89-b6c45daccf86", + "comment": "", + "command": "type", + "target": "id=/serviceProviderName", + "targets": [ + ["id=/serviceProviderName", "id"], + ["name=field1", "name"], + ["css=#\\/serviceProviderName", "css:finder"], + ["xpath=//input[@id='/serviceProviderName']", "xpath:attributes"], + ["xpath=//input", "xpath:position"] + ], + "value": "Test Source" + }, { + "id": "ff0ff7cf-ab9b-4dcf-bc9a-ffc005632363", + "comment": "", + "command": "type", + "target": "id=/entityId", + "targets": [ + ["id=/entityId", "id"], + ["name=field2", "name"], + ["css=#\\/entityId", "css:finder"], + ["xpath=//input[@id='/entityId']", "xpath:attributes"], + ["xpath=//div[2]/sf-form-element/div/sf-widget-chooser/custom-string/div/input", "xpath:position"] + ], + "value": "test" + }, { + "id": "d1726c2a-6b56-427b-9a3d-722e64c45bd9", + "comment": "", + "command": "click", + "target": "css=.next", + "targets": [ + ["css=.next", "css:finder"], + ["xpath=//li[2]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "9fb1da6c-d002-4e8d-a9af-c809de9cbc58", + "comment": "", + "command": "waitForElementEditable", + "target": "id=/organization/name", + "targets": [], + "value": "30000" + }, { + "id": "68288af1-2686-49b5-b1b9-10f68046fc0a", + "comment": "", + "command": "type", + "target": "id=/organization/name", + "targets": [ + ["id=/organization/name", "id"], + ["name=field5", "name"], + ["css=#\\/organization\\/name", "css:finder"], + ["xpath=//input[@id='/organization/name']", "xpath:attributes"], + ["xpath=//input", "xpath:position"] + ], + "value": "Org Name" + }, { + "id": "c785c85c-1515-4bd0-8886-576f568a2efc", + "comment": "", + "command": "type", + "target": "id=/organization/displayName", + "targets": [ + ["id=/organization/displayName", "id"], + ["name=field6", "name"], + ["css=#\\/organization\\/displayName", "css:finder"], + ["xpath=//input[@id='/organization/displayName']", "xpath:attributes"], + ["xpath=//div[2]/sf-form-element/div/sf-widget-chooser/custom-string/div/input", "xpath:position"] + ], + "value": "Org Display Name" + }, { + "id": "2cacc9c6-8a1a-4923-aa8d-00dea1172dd0", + "comment": "", + "command": "type", + "target": "id=/organization/url", + "targets": [ + ["id=/organization/url", "id"], + ["name=field7", "name"], + ["css=#\\/organization\\/url", "css:finder"], + ["xpath=//input[@id='/organization/url']", "xpath:attributes"], + ["xpath=//div[3]/sf-form-element/div/sf-widget-chooser/custom-string/div/input", "xpath:position"] + ], + "value": "Org URL" + }, { + "id": "8441a497-6a79-4396-af40-6f7ce8056cfe", + "comment": "", + "command": "click", + "target": "css=.btn-success", + "targets": [ + ["css=.btn-success", "css:finder"], + ["xpath=//div/button", "xpath:position"], + ["xpath=//button[contains(.,'Add   ')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "383707e1-ae7d-44c5-a91a-69a1f3bc601e", + "comment": "", + "command": "click", + "target": "css=.label:nth-child(1)", + "targets": [ + ["css=.label:nth-child(1)", "css:finder"], + ["xpath=//li[3]/button/span", "xpath:position"] + ], + "value": "" + }, { + "id": "57d66e91-4e76-410b-8ecc-c5c8f2459606", + "comment": "", + "command": "click", + "target": "css=.label:nth-child(1)", + "targets": [ + ["css=.label:nth-child(1)", "css:finder"], + ["xpath=//li[3]/button/span", "xpath:position"] + ], + "value": "" + }, { + "id": "8fc68685-f349-48f2-9929-6b99eb860823", + "comment": "", + "command": "click", + "target": "css=.next", + "targets": [ + ["css=.next", "css:finder"], + ["xpath=//li[3]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "7075f663-403e-44fc-bb34-17ecb2fee62a", + "comment": "", + "command": "click", + "target": "css=.next", + "targets": [ + ["css=.next", "css:finder"], + ["xpath=//li[3]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "ef48faaa-1077-4969-bc63-13049ff2cbf3", + "comment": "", + "command": "click", + "target": "css=.label:nth-child(1)", + "targets": [ + ["css=.label:nth-child(1)", "css:finder"], + ["xpath=//li[3]/button/span", "xpath:position"] + ], + "value": "" + }, { + "id": "1c5c0174-1181-479b-a8fa-00c759799d61", + "comment": "", + "command": "click", + "target": "css=.label:nth-child(1)", + "targets": [ + ["css=.label:nth-child(1)", "css:finder"], + ["xpath=//li[3]/button/span", "xpath:position"] + ], + "value": "" + }, { + "id": "16c0c8d5-ead6-4600-ad02-08963d73ae0b", + "comment": "", + "command": "click", + "target": "css=.next", + "targets": [ + ["css=.next", "css:finder"], + ["xpath=//li[3]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "8be428b3-5959-4598-a982-6708e6d39a85", + "comment": "", + "command": "click", + "target": "css=.next", + "targets": [ + ["css=.next", "css:finder"], + ["xpath=//li[3]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "32ecd0e3-b7a9-4978-923c-9992fba8f557", + "comment": "", + "command": "click", + "target": "css=.save", + "targets": [ + ["css=.save", "css:finder"], + ["xpath=//li[3]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "a4131b2a-ab46-4dc6-827e-6ffa516c5bd8", + "comment": "", + "command": "pause", + "target": "5000", + "targets": [], + "value": "" + }, { + "id": "e9a8182c-47d9-444c-8386-f84e1a7da38a", + "comment": "", + "command": "click", + "target": "css=li:nth-child(3) > .nav-link > translate-i18n", + "targets": [ + ["css=li:nth-child(3) > .nav-link > translate-i18n", "css:finder"], + ["xpath=//div[@id='navbar']/ul/li[3]/a/translate-i18n", "xpath:idRelative"], + ["xpath=//li[3]/a/translate-i18n", "xpath:position"], + ["xpath=//translate-i18n[contains(.,'Logout')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "947a1fb8-a4b8-4ff0-997f-911741d60fc1", + "comment": "", + "command": "waitForElementEditable", + "target": "name=username", + "targets": [], + "value": "30000" + }, { + "id": "415f0118-6bff-4d5b-b964-a1a724b818e4", + "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": "7e4a4734-c520-46d4-b214-b6e3e4c5618a", + "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": "aa359f0d-e222-415c-81fc-409f387c2a35", + "comment": "", + "command": "click", + "target": "name=submit", + "targets": [ + ["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": "" + }, { + "id": "990aff50-4646-4258-a9f0-ef5f39b8dc83", + "comment": "", + "command": "waitForElementVisible", + "target": "css=.badge-pill", + "targets": [], + "value": "30000" + }, { + "id": "d77d51d9-fbf7-4358-a995-41fcf0f6885f", + "comment": "", + "command": "pause", + "target": "5000", + "targets": [], + "value": "" + }, { + "id": "9fd2f2ad-6315-48be-b1e5-b958956c20be", + "comment": "", + "command": "assertText", + "target": "css=.badge-pill", + "targets": [ + ["css=.badge-pill", "css:finder"], + ["xpath=//li[4]/a/span", "xpath:position"], + ["xpath=//span[contains(.,'2')]", "xpath:innerText"] + ], + "value": "2" + }, { + "id": "9be511e0-ed11-4707-8490-6fa248e4138e", + "comment": "", + "command": "assertText", + "target": "css=.badge > span", + "targets": [ + ["css=.badge > span", "css:finder"], + ["xpath=//span/span", "xpath:position"] + ], + "value": "Disabled" + }, { + "id": "157e70d6-fa1c-4118-bce4-ab52000b6c16", + "comment": "", + "command": "click", + "target": "css=.nav-link > translate-i18n:nth-child(1)", + "targets": [ + ["css=.nav-link > translate-i18n:nth-child(1)", "css:finder"], + ["xpath=//li[4]/a/translate-i18n", "xpath:position"], + ["xpath=//translate-i18n[contains(.,'Action Required')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "b1a8c4b1-d164-4f32-adb3-6cfb76951f28", + "comment": "", + "command": "waitForElementVisible", + "target": "linkText=Test Source", + "targets": [], + "value": "30000" + }, { + "id": "ef70ab28-afe2-473d-aedb-d1d3bf04a538", + "comment": "", + "command": "assertText", + "target": "linkText=Test Source", + "targets": [ + ["linkText=Test Source", "linkText"], + ["css=td > a", "css:finder"], + ["xpath=//a[contains(text(),'Test Source')]", "xpath:link"], + ["xpath=//a[contains(@href, '/metadata/resolver/a56f0f83-cfc4-4f33-ae9a-5b786b815111/configuration/options')]", "xpath:href"], + ["xpath=//td/a", "xpath:position"], + ["xpath=//a[contains(.,'Test Source')]", "xpath:innerText"] + ], + "value": "Test Source" + }, { + "id": "708acbb6-63c7-4cb5-9c5a-f64c31ba6a40", + "comment": "", + "command": "assertText", + "target": "css=td:nth-child(2)", + "targets": [ + ["css=td:nth-child(2)", "css:finder"], + ["xpath=//td[2]", "xpath:position"], + ["xpath=//td[contains(.,'test')]", "xpath:innerText"] + ], + "value": "test" + }, { + "id": "6ba5a2fb-8c68-4743-99d6-1fa44644f399", + "comment": "", + "command": "assertText", + "target": "css=td:nth-child(3)", + "targets": [ + ["css=td:nth-child(3)", "css:finder"], + ["xpath=//td[3]", "xpath:position"], + ["xpath=//td[contains(.,'nonadmin')]", "xpath:innerText"] + ], + "value": "nonadmin" + }, { + "id": "eb63aa9f-4ac5-4852-8941-740b9f49a769", + "comment": "", + "command": "click", + "target": "css=.btn-success > translate-i18n", + "targets": [ + ["css=.btn-success > translate-i18n", "css:finder"], + ["xpath=//td[5]/button/translate-i18n", "xpath:position"], + ["xpath=//translate-i18n[contains(.,'Enable')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "8d064bfb-cf8f-428c-b436-2930f6295962", + "comment": "", + "command": "pause", + "target": "5000", + "targets": [], + "value": "" + }, { + "id": "500d78cd-a2b4-49e6-8609-7d5f822942d0", + "comment": "", + "command": "assertText", + "target": "css=.badge", + "targets": [ + ["css=.badge", "css:finder"], + ["xpath=//li[4]/a/span", "xpath:position"], + ["xpath=//span[contains(.,'1')]", "xpath:innerText"] + ], + "value": "1" + }, { + "id": "3f92b1a1-9675-4da3-90d5-475a89a22913", + "comment": "", + "command": "click", + "target": "linkText=Metadata Sources", + "targets": [ + ["linkText=Metadata Sources", "linkText"], + ["css=.nav-item:nth-child(1) > .nav-link", "css:finder"], + ["xpath=//a[contains(text(),'Metadata Sources')]", "xpath:link"], + ["xpath=//a[contains(@href, '/dashboard/metadata/manager/resolvers')]", "xpath:href"], + ["xpath=//dashboard-page/div/ul/li/a", "xpath:position"], + ["xpath=//a[contains(.,'Metadata Sources')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "160d24df-7c98-469c-bfdb-6e39f0b44b0d", + "comment": "", + "command": "pause", + "target": "5000", + "targets": [], + "value": "" + }, { + "id": "f76a12a3-2054-4be2-a6a6-2221afd493fb", + "comment": "", + "command": "assertText", + "target": "css=.badge > span", + "targets": [ + ["css=.badge > span", "css:finder"], + ["xpath=//span/span", "xpath:position"] + ], + "value": "Enabled" + }, { + "id": "6b4905b8-2ae3-4682-ae52-0149c58eb7f4", + "comment": "", + "command": "close", + "target": "", + "targets": [], + "value": "" + }] + }], + "suites": [{ + "id": "e0294618-9c01-4063-ba60-99fda5bb3edc", + "name": "Default Suite", + "persistSession": false, + "parallel": false, + "timeout": 300, + "tests": ["3f0e6ded-0b61-4d71-9f74-937cbd972cb3"] + }], + "urls": ["http://localhost:10101/"], + "plugins": [] +} \ No newline at end of file diff --git a/backend/src/integration/resources/SHIBUI-1503-2.side b/backend/src/integration/resources/SHIBUI-1503-2.side new file mode 100644 index 000000000..fbc65ae95 --- /dev/null +++ b/backend/src/integration/resources/SHIBUI-1503-2.side @@ -0,0 +1,200 @@ +{ + "id": "5366ee48-b38e-45f0-a996-abe249f84e24", + "version": "2.0", + "name": "SHIBUI-1503-2", + "url": "http://localhost:10101", + "tests": [{ + "id": "3ee270a9-8a5c-4a17-92e7-ab9b013e7aee", + "name": "SHIBUI-1503-2", + "commands": [{ + "id": "b0d2001f-0afd-439b-833b-8c945404bb2a", + "comment": "", + "command": "open", + "target": "/login", + "targets": [], + "value": "" + }, { + "id": "c0e3c091-9a27-45f1-8525-dc6acb187ee1", + "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": "96a54bfc-f203-43be-8d42-5bcdf7cfcdb7", + "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": "624d4f0a-ddb6-4047-a25e-43cbde644fb5", + "comment": "", + "command": "click", + "target": "name=submit", + "targets": [ + ["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": "" + }, { + "id": "812843b9-c71a-4141-b204-3387f0fee39a", + "comment": "", + "command": "waitForElementVisible", + "target": "css=.nav-link > translate-i18n:nth-child(1)", + "targets": [], + "value": "30000" + }, { + "id": "473db033-9a76-4173-9a70-daa255f99b1d", + "comment": "", + "command": "click", + "target": "css=.nav-link > translate-i18n:nth-child(1)", + "targets": [ + ["css=.nav-link > translate-i18n:nth-child(1)", "css:finder"], + ["xpath=//li[4]/a/translate-i18n", "xpath:position"], + ["xpath=//translate-i18n[contains(.,'Action Required')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "a98143b5-647f-4e7e-b920-f6e6875d7372", + "comment": "", + "command": "click", + "target": "css=.fa-trash", + "targets": [ + ["css=.fa-trash", "css:finder"], + ["xpath=//div[2]/button/i", "xpath:position"] + ], + "value": "" + }, { + "id": "d85702e0-5eb2-4dd7-b10f-906352a43b49", + "comment": "", + "command": "click", + "target": "css=.modal-footer > .btn-danger", + "targets": [ + ["css=.modal-footer > .btn-danger", "css:finder"], + ["xpath=(//button[@type='button'])[2]", "xpath:attributes"], + ["xpath=//div[3]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "2d8da370-0a5a-4048-a8bd-f68210a271c5", + "comment": "", + "command": "waitForElementVisible", + "target": "css=.text-center", + "targets": [], + "value": "30000" + }, { + "id": "d5a65352-5897-49cf-9046-3afc5397f193", + "comment": "", + "command": "assertText", + "target": "css=.text-center", + "targets": [ + ["css=.text-center", "css:finder"], + ["xpath=//p", "xpath:position"], + ["xpath=//p[contains(.,'There are no new user requests at this time.')]", "xpath:innerText"] + ], + "value": "There are no new user requests at this time." + }, { + "id": "ede68bbe-2236-457d-93d7-9e7cde5d5176", + "comment": "", + "command": "click", + "target": "css=li:nth-child(3) > .nav-link > translate-i18n", + "targets": [ + ["css=li:nth-child(3) > .nav-link > translate-i18n", "css:finder"], + ["xpath=//div[@id='navbar']/ul/li[3]/a/translate-i18n", "xpath:idRelative"], + ["xpath=//li[3]/a/translate-i18n", "xpath:position"], + ["xpath=//translate-i18n[contains(.,'Logout')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "64b41d03-23dc-46cd-9612-9ad6ce86a169", + "comment": "", + "command": "waitForElementEditable", + "target": "name=username", + "targets": [], + "value": "30000" + }, { + "id": "1edca1a8-1e15-489f-8f18-a80bd53c5360", + "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": "none" + }, { + "id": "2897afef-6eef-4205-a0bb-f95cccef7a74", + "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": "nonepass" + }, { + "id": "6c4429c8-7d82-4d87-a58d-a587cff891f6", + "comment": "", + "command": "click", + "target": "name=submit", + "targets": [ + ["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": "" + }, { + "id": "3eb77106-8fb7-43aa-a72a-27f2960d5393", + "comment": "", + "command": "waitForElementVisible", + "target": "css=p", + "targets": [], + "value": "30000" + }, { + "id": "b826ed10-31a4-487b-ba80-c633ff037839", + "comment": "", + "command": "assertText", + "target": "css=p", + "targets": [ + ["css=p", "css:finder"], + ["xpath=//p", "xpath:position"] + ], + "value": "Your login attempt was not successful, try again.\n\nReason: Bad credentials" + }, { + "id": "5b421e75-d5db-44ff-ac57-2fd8f91c2478", + "comment": "", + "command": "close", + "target": "", + "targets": [], + "value": "" + }] + }], + "suites": [{ + "id": "86d753b7-e7f9-48b0-a95e-ac68deea5457", + "name": "Default Suite", + "persistSession": false, + "parallel": false, + "timeout": 300, + "tests": ["3ee270a9-8a5c-4a17-92e7-ab9b013e7aee"] + }], + "urls": ["http://localhost:10101/"], + "plugins": [] +} diff --git a/backend/src/integration/resources/SHIBUI-1503-3.side b/backend/src/integration/resources/SHIBUI-1503-3.side new file mode 100644 index 000000000..a7d913abd --- /dev/null +++ b/backend/src/integration/resources/SHIBUI-1503-3.side @@ -0,0 +1,192 @@ +{ + "id": "fbdf2699-39a2-4738-85e4-23a058038e05", + "version": "2.0", + "name": "SHIBUI-1503-3", + "url": "http://localhost:10101", + "tests": [{ + "id": "67c3076f-1c47-4104-98ee-d4c3cd6ef870", + "name": "SHIBUI-1503-3", + "commands": [{ + "id": "dd74edbf-87ef-4b2a-8a5a-7b8ab7fc6055", + "comment": "", + "command": "open", + "target": "/login", + "targets": [], + "value": "" + }, { + "id": "4d0aeac6-bdc6-495b-8115-c03b6a818f9c", + "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": "5eda2e43-304c-4e99-9f2a-0d352bb7140d", + "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": "fa54f4c6-f1b4-422c-be58-b6c1fef27a47", + "comment": "", + "command": "click", + "target": "name=submit", + "targets": [ + ["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": "" + }, { + "id": "fe445ea9-b8ac-4186-a814-4cda6968f6d7", + "comment": "", + "command": "waitForElementVisible", + "target": "linkText=Admin", + "targets": [], + "value": "30000" + }, { + "id": "277ab8a3-924d-4f2a-a1d4-7b69ecd623ec", + "comment": "", + "command": "click", + "target": "linkText=Admin", + "targets": [ + ["linkText=Admin", "linkText"], + ["css=.nav-item:nth-child(3) > .nav-link", "css:finder"], + ["xpath=//a[contains(text(),'Admin')]", "xpath:link"], + ["xpath=//a[contains(@href, '/dashboard/admin/management')]", "xpath:href"], + ["xpath=//dashboard-page/div/ul/li[3]/a", "xpath:position"], + ["xpath=//a[contains(.,'Admin')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "659e4909-239b-4895-aa54-8bf3a6bd57cd", + "comment": "", + "command": "waitForElementVisible", + "target": "css=tr:nth-child(3) .form-control", + "targets": [], + "value": "30000" + }, { + "id": "1c973205-111b-4440-afef-bd0e7e13b18c", + "comment": "", + "command": "click", + "target": "css=tr:nth-child(3) .form-control", + "targets": [ + ["css=tr:nth-child(3) .form-control", "css:finder"], + ["xpath=//tr[3]/td[3]/select", "xpath:position"] + ], + "value": "" + }, { + "id": "dc06ff49-c076-4f60-95d1-a42514cc6038", + "comment": "", + "command": "select", + "target": "css=tr:nth-child(3) .form-control", + "targets": [], + "value": "label=ROLE_USER" + }, { + "id": "fb78d880-ffb7-4477-b1af-f9a8593875de", + "comment": "", + "command": "click", + "target": "css=li:nth-child(3) > .nav-link > translate-i18n", + "targets": [ + ["css=li:nth-child(3) > .nav-link > translate-i18n", "css:finder"], + ["xpath=//div[@id='navbar']/ul/li[3]/a/translate-i18n", "xpath:idRelative"], + ["xpath=//li[3]/a/translate-i18n", "xpath:position"], + ["xpath=//translate-i18n[contains(.,'Logout')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "01f6bc37-2698-48c9-82f3-51928069ed58", + "comment": "", + "command": "waitForElementEditable", + "target": "name=username", + "targets": [], + "value": "30000" + }, { + "id": "6916ad6c-11db-423a-bb42-ad81287a71b2", + "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": "none" + }, { + "id": "c8bf8ea5-1f75-4a40-aca4-9dfa6a6056dc", + "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": "nonepass" + }, { + "id": "ba66c45f-2436-4fe7-a5a9-31b55ffe8118", + "comment": "", + "command": "click", + "target": "name=submit", + "targets": [ + ["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": "" + }, { + "id": "16d9ba7b-995c-4383-98c0-07d5e779a27d", + "comment": "", + "command": "waitForElementPresent", + "target": "linkText=Metadata Sources", + "targets": [], + "value": "30000" + }, { + "id": "c2dd7259-7ae0-4b4f-a6b8-2592fa799f9c", + "comment": "", + "command": "assertText", + "target": "linkText=Metadata Sources", + "targets": [ + ["linkText=Metadata Sources", "linkText"], + ["css=.nav-item:nth-child(1) > .nav-link", "css:finder"], + ["xpath=//a[contains(text(),'Metadata Sources')]", "xpath:link"], + ["xpath=//a[contains(@href, '/dashboard/metadata/manager/resolvers')]", "xpath:href"], + ["xpath=//dashboard-page/div/ul/li/a", "xpath:position"], + ["xpath=//a[contains(.,'Metadata Sources')]", "xpath:innerText"] + ], + "value": "Metadata Sources" + }, { + "id": "5b9612bd-d0ea-439b-895f-3dc372023578", + "comment": "", + "command": "close", + "target": "", + "targets": [], + "value": "" + }] + }], + "suites": [{ + "id": "173aaf44-c763-416e-ab3c-d5afd5ffcd29", + "name": "Default Suite", + "persistSession": false, + "parallel": false, + "timeout": 300, + "tests": ["67c3076f-1c47-4104-98ee-d4c3cd6ef870"] + }], + "urls": ["http://localhost:10101/"], + "plugins": [] +} \ No newline at end of file