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 91faafe86..c3132a348 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 = "/CreateAndDeleteNameIDFormatScriptFilter.side" + def file = "/SHIBUI-1058_DelegatedAdmin_SubmitSource.side" def main = new Main() def config = new DefaultConfig([] as String[]).with { System.properties.contains('') @@ -76,7 +76,7 @@ class SeleniumSIDETest extends Specification { 'Delete REGEX Filter' | '/DeleteREGEXFilter.side' 'Delete Incomplete Source' | '/DeleteIncompleteSource.side' 'Admin Login' | '/SHIBUI-1031_AdminLogin.side' - 'Delegated Admin: SubmitSourceWithError' | '/SHIBUI-1058_DelegatedAdmin_SubmitSourceWithError.side' + 'Delegated Admin: SubmitSourceWithError' | '/SHIBUI-1058_DelegatedAdmin_SubmitSource.side' 'Create Filesystem Metadata Resolver' | '/CreateFilesystemMetadataResolver.side' 'Create Local Dynamic Metadata Resolver' | '/CreateLocalDynamicMetadataResolver.side' 'Delete Entity Attributes Script Filter' | '/DeleteScriptFilter.side' diff --git a/backend/src/integration/resources/SHIBUI-1058_DelegatedAdmin_SubmitSource.side b/backend/src/integration/resources/SHIBUI-1058_DelegatedAdmin_SubmitSource.side index f95b7f071..a393329ad 100644 --- a/backend/src/integration/resources/SHIBUI-1058_DelegatedAdmin_SubmitSource.side +++ b/backend/src/integration/resources/SHIBUI-1058_DelegatedAdmin_SubmitSource.side @@ -1023,6 +1023,91 @@ "target": "css=.text-capitalize", "targets": [], "value": "3000" + }, { + "id": "5b7c0b68-781d-4477-b62b-2d35a7028c6f", + "comment": "", + "command": "click", + "target": "css=.btn:nth-child(3)", + "targets": [ + ["css=.btn:nth-child(3)", "css:finder"], + ["xpath=//button[3]", "xpath:position"] + ], + "value": "" + }, { + "id": "523d43a5-97f5-4f3e-b389-24f100e863a1", + "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": "bc01a778-eb05-4292-895f-46f2f49a3df7", + "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": "DelegatedAdmin Edited" + }, { + "id": "79d16410-90d4-4592-9f6d-2f181e62fb30", + "comment": "", + "command": "click", + "target": "css=.btn-info", + "targets": [ + ["css=.btn-info", "css:finder"], + ["xpath=//div[2]/button", "xpath:position"], + ["xpath=//button[contains(.,'Save')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "2a48d614-53d6-4633-b695-ab8be01bbd4d", + "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": "c8b6df66-6f13-4e06-ae53-e674e8ea8223", + "comment": "", + "command": "click", + "target": "css=.text-primary", + "targets": [ + ["css=.text-primary", "css:finder"], + ["xpath=//div/i", "xpath:position"] + ], + "value": "" + }, { + "id": "629884ea-0b8f-430a-aa63-ae0ff52fef9f", + "comment": "", + "command": "waitForElementPresent", + "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": "3000" + }, { + "id": "3acac0f7-992b-47b7-a271-14ce78aabfde", + "comment": "", + "command": "assertText", + "target": "css=.row:nth-child(1) > .col:nth-child(2)", + "targets": [], + "value": "DelegatedAdmin Edited" }, { "id": "f08049e7-7b4e-452c-8091-a7d67e0e1b81", "comment": "", @@ -1048,16 +1133,6 @@ ["xpath=//a[contains(.,'Metadata Sources')]", "xpath:innerText"] ], "value": "" - }, { - "id": "97e9da2d-d3be-4442-ad99-6889369680da", - "comment": "", - "command": "click", - "target": "css=.text-primary", - "targets": [ - ["css=.text-primary", "css:finder"], - ["xpath=//div/i", "xpath:position"] - ], - "value": "" }, { "id": "0383aa75-506c-4309-b074-b28e3ada6c3f", "comment": "", @@ -1074,7 +1149,7 @@ ["css=.row:nth-child(1) > .col:nth-child(2)", "css:finder"], ["xpath=//div[2]/div/div/div/div/div[2]", "xpath:position"] ], - "value": "DelegatedAdmin" + "value": "DelegatedAdmin Edited" }] }], "suites": [{