From 6e9d24a96cba9a820669de16a63eeb0f764a781b Mon Sep 17 00:00:00 2001 From: Bill Smith Date: Mon, 22 Jul 2019 10:16:47 -0700 Subject: [PATCH 1/3] SHIBUI-1352 Added automated test for creating Local Dynamic providers. --- .../tier/shibboleth/admin/ui/SeleniumSIDETest.groovy | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 b45f50f29..3400d39b9 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 @@ -106,9 +106,10 @@ class SeleniumSIDETest extends Specification { // 'Create and Delete Name ID Format Regex Filter' | '/CreateAndDeleteNameIDFormatRegexFilter.side' // 'Create and Delete Name ID Format Script Filter' | '/CreateAndDeleteNameIDFormatScriptFilter.side' // 'Create and Modify Filter Order' | '/ModifyFilterOrder.side' - 'SHIBUI-1281: Metadata Source Dashboard' | '/SHIBUI-1281.side' - 'SHIBUI-1311: Metadata Provider Dashboard' | '/SHIBUI-1311.side' - 'SHIBUI-950: Metadata Source from XML w/ digest' | '/SHIBUI-950.side' +// 'SHIBUI-1281: Metadata Source Dashboard' | '/SHIBUI-1281.side' +// 'SHIBUI-1311: Metadata Provider Dashboard' | '/SHIBUI-1311.side' +// 'SHIBUI-950: Metadata Source from XML w/ digest' | '/SHIBUI-950.side' + 'SHIBUI-1352: Create LocalDynamic provider' | '/SHIBUI-1352-1.side' } } From 758b0cd18a100791ed10c6012f5271e9f9cc1ff6 Mon Sep 17 00:00:00 2001 From: Bill Smith Date: Mon, 22 Jul 2019 10:48:40 -0700 Subject: [PATCH 2/3] SHIBUI-1352 Added tests for Local Dynamic and File System. --- .../admin/ui/SeleniumSIDETest.groovy | 7 +- .../integration/resources/SHIBUI-1352-1.side | 399 ++++++++++++++++++ .../integration/resources/SHIBUI-1352-2.side | 350 +++++++++++++++ 3 files changed, 753 insertions(+), 3 deletions(-) create mode 100644 backend/src/integration/resources/SHIBUI-1352-1.side create mode 100644 backend/src/integration/resources/SHIBUI-1352-2.side 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 3400d39b9..42d2cd8db 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 @@ -106,10 +106,11 @@ class SeleniumSIDETest extends Specification { // 'Create and Delete Name ID Format Regex Filter' | '/CreateAndDeleteNameIDFormatRegexFilter.side' // 'Create and Delete Name ID Format Script Filter' | '/CreateAndDeleteNameIDFormatScriptFilter.side' // 'Create and Modify Filter Order' | '/ModifyFilterOrder.side' -// 'SHIBUI-1281: Metadata Source Dashboard' | '/SHIBUI-1281.side' -// 'SHIBUI-1311: Metadata Provider Dashboard' | '/SHIBUI-1311.side' -// 'SHIBUI-950: Metadata Source from XML w/ digest' | '/SHIBUI-950.side' + 'SHIBUI-1281: Metadata Source Dashboard' | '/SHIBUI-1281.side' + 'SHIBUI-1311: Metadata Provider Dashboard' | '/SHIBUI-1311.side' + 'SHIBUI-950: Metadata Source from XML w/ digest' | '/SHIBUI-950.side' 'SHIBUI-1352: Create LocalDynamic provider' | '/SHIBUI-1352-1.side' + 'SHIBUI-1352: Create FileSystem provider' | '/SHIBUI-1352-2.side' } } diff --git a/backend/src/integration/resources/SHIBUI-1352-1.side b/backend/src/integration/resources/SHIBUI-1352-1.side new file mode 100644 index 000000000..f9ba76a0a --- /dev/null +++ b/backend/src/integration/resources/SHIBUI-1352-1.side @@ -0,0 +1,399 @@ +{ + "id": "8e687ea6-de83-4d3d-b1b3-8aae3ab7b70d", + "version": "2.0", + "name": "SHIBUI-1352-1", + "url": "http://localhost:10101", + "tests": [{ + "id": "62117cd1-23bb-4574-b360-1c9217799641", + "name": "SHIBUI-1352-1", + "commands": [{ + "id": "8adb4307-6cca-4f6a-b709-7888b51f422d", + "comment": "", + "command": "open", + "target": "/login", + "targets": [], + "value": "" + }, { + "id": "a3aa8d80-808e-4195-9b6d-021b80d270ca", + "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": "8b55bd69-5323-48a4-b705-5a9bb67fd29e", + "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": "a374544a-2b8e-4c0f-8741-d5ffa51dfc3a", + "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": "8ff3019f-42b4-4ba8-8b63-b9f0f6aa413f", + "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": "c36d95be-7a13-454d-a05e-ef323b530c9d", + "comment": "", + "command": "click", + "target": "linkText=Metadata Provider", + "targets": [ + ["linkText=Metadata Provider", "linkText"], + ["css=.nav-link:nth-child(2)", "css:finder"], + ["xpath=//div[@id='navbar']/ul/li/div/a[2]", "xpath:idRelative"], + ["xpath=(//a[contains(@href, '')])[3]", "xpath:href"], + ["xpath=//a[2]", "xpath:position"] + ], + "value": "" + }, { + "id": "2e8de1a4-a5a3-49fc-8314-206ab7373f14", + "comment": "", + "command": "click", + "target": "xpath=//input", + "targets": [ + ["id=field1", "id"], + ["name=field1", "name"], + ["css=#field1", "css:finder"], + ["xpath=//input[@id='field1']", "xpath:attributes"], + ["xpath=//input", "xpath:position"] + ], + "value": "" + }, { + "id": "88683ce7-ec58-4a98-8138-9003d4275f8b", + "comment": "", + "command": "type", + "target": "xpath=//input", + "targets": [ + ["id=field1", "id"], + ["name=field1", "name"], + ["css=#field1", "css:finder"], + ["xpath=//input[@id='field1']", "xpath:attributes"], + ["xpath=//input", "xpath:position"] + ], + "value": "Test Local Dynamic Provider" + }, { + "id": "fd4257d7-488a-4eed-8d72-7f39034a1c72", + "comment": "", + "command": "select", + "target": "id=field2", + "targets": [], + "value": "label=LocalDynamicMetadataProvider" + }, { + "id": "34cb083d-1dbf-463d-94de-392356f4e68d", + "comment": "", + "command": "click", + "target": "css=.next", + "targets": [ + ["css=.next", "css:finder"], + ["xpath=//li[2]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "205b2459-f8d3-4571-813b-e752ec2295a0", + "comment": "", + "command": "click", + "target": "xpath=//input", + "targets": [ + ["id=field7", "id"], + ["name=field7", "name"], + ["css=#field7", "css:finder"], + ["xpath=//input[@id='field7']", "xpath:attributes"], + ["xpath=//input", "xpath:position"] + ], + "value": "" + }, { + "id": "54554bf5-8354-4737-b96e-6f36ccab6455", + "comment": "", + "command": "type", + "target": "xpath=//input", + "targets": [ + ["id=field7", "id"], + ["name=field7", "name"], + ["css=#field7", "css:finder"], + ["xpath=//input[@id='field7']", "xpath:attributes"], + ["xpath=//input", "xpath:position"] + ], + "value": "test-12345" + }, { + "id": "2510aebf-4351-4bd4-8d57-1b8061a3da93", + "comment": "", + "command": "click", + "target": "xpath=//div[2]/sf-form-element/div/sf-widget-chooser/custom-string/div/input", + "targets": [ + ["id=field8", "id"], + ["name=field8", "name"], + ["css=#field8", "css:finder"], + ["xpath=//input[@id='field8']", "xpath:attributes"], + ["xpath=//div[2]/sf-form-element/div/sf-widget-chooser/custom-string/div/input", "xpath:position"] + ], + "value": "" + }, { + "id": "b020f834-180b-400f-a85a-b3e006337c55", + "comment": "", + "command": "type", + "target": "xpath=//div[2]/sf-form-element/div/sf-widget-chooser/custom-string/div/input", + "targets": [ + ["id=field8", "id"], + ["name=field8", "name"], + ["css=#field8", "css:finder"], + ["xpath=//input[@id='field8']", "xpath:attributes"], + ["xpath=//div[2]/sf-form-element/div/sf-widget-chooser/custom-string/div/input", "xpath:position"] + ], + "value": "%{idp.home}/foo/" + }, { + "id": "8753e5d5-0f5b-4409-8bb9-964541bc9aed", + "comment": "", + "command": "click", + "target": "css=.next", + "targets": [ + ["css=.next", "css:finder"], + ["xpath=//li[3]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "ee0724b9-a055-4aef-a5a2-a58acd017000", + "comment": "", + "command": "click", + "target": "xpath=//input", + "targets": [ + ["id=field11", "id"], + ["name=field11", "name"], + ["css=#field11", "css:finder"], + ["xpath=//input[@id='field11']", "xpath:attributes"], + ["xpath=//input", "xpath:position"] + ], + "value": "" + }, { + "id": "1d3c8b73-97b8-40d2-ba89-9692f443b53d", + "comment": "", + "command": "type", + "target": "xpath=//input", + "targets": [ + ["id=field11", "id"], + ["name=field11", "name"], + ["css=#field11", "css:finder"], + ["xpath=//input[@id='field11']", "xpath:attributes"], + ["xpath=//input", "xpath:position"] + ], + "value": "0.5" + }, { + "id": "59ca3a2c-b9da-4ac6-9b44-d44271355659", + "comment": "", + "command": "click", + "target": "xpath=//div/button/i", + "targets": [ + ["css=#field12-container .fa", "css:finder"], + ["xpath=//div[@id='field12-container']/div/div/button/i", "xpath:idRelative"], + ["xpath=//div/button/i", "xpath:position"] + ], + "value": "" + }, { + "id": "8db04a8f-565a-4fa9-b5c0-8ce4b200b11c", + "comment": "", + "command": "click", + "target": "xpath=//auto-complete/div/ul/li", + "targets": [ + ["id=field12__option--0", "id"], + ["css=#field12__option--0", "css:finder"], + ["xpath=//li[@id='field12__option--0']", "xpath:attributes"], + ["xpath=//ul[@id='field12__listbox']/li", "xpath:idRelative"], + ["xpath=//auto-complete/div/ul/li", "xpath:position"], + ["xpath=//li[contains(.,'PT0S')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "a5274853-084e-438f-8cea-9a74e55fd0b9", + "comment": "", + "command": "click", + "target": "xpath=//div[3]/sf-form-element/div/sf-widget-chooser/datalist-component/div/auto-complete/div/div/div/button/i", + "targets": [ + ["css=#field13-container .fa", "css:finder"], + ["xpath=//div[@id='field13-container']/div/div/button/i", "xpath:idRelative"], + ["xpath=//div[3]/sf-form-element/div/sf-widget-chooser/datalist-component/div/auto-complete/div/div/div/button/i", "xpath:position"] + ], + "value": "" + }, { + "id": "bf7f5914-5aad-485a-8af0-aa510605e1dc", + "comment": "", + "command": "waitForElementVisible", + "target": "xpath=//div[3]/sf-form-element/div/sf-widget-chooser/datalist-component/div/auto-complete/div/ul/li[3]", + "targets": [], + "value": "10000" + }, { + "id": "b2bd8d25-4f3c-47b2-a070-53a364840916", + "comment": "", + "command": "click", + "target": "xpath=//div[3]/sf-form-element/div/sf-widget-chooser/datalist-component/div/auto-complete/div/ul/li[3]", + "targets": [ + ["id=field13__option--2", "id"], + ["css=#field13__option--2", "css:finder"], + ["xpath=//li[@id='field13__option--2']", "xpath:attributes"], + ["xpath=//ul[@id='field13__listbox']/li[3]", "xpath:idRelative"], + ["xpath=//div[3]/sf-form-element/div/sf-widget-chooser/datalist-component/div/auto-complete/div/ul/li[3]", "xpath:position"] + ], + "value": "" + }, { + "id": "9a411cfc-479d-4951-aab2-e8d09ba64b4e", + "comment": "", + "command": "click", + "target": "xpath=//div[4]/sf-form-element/div/sf-widget-chooser/datalist-component/div/auto-complete/div/div/div/button/i", + "targets": [ + ["css=#field14-container .fa", "css:finder"], + ["xpath=//div[@id='field14-container']/div/div/button/i", "xpath:idRelative"], + ["xpath=//div[4]/sf-form-element/div/sf-widget-chooser/datalist-component/div/auto-complete/div/div/div/button/i", "xpath:position"] + ], + "value": "" + }, { + "id": "1176d384-4b0c-4a67-8e43-6cc3cbbcff73", + "comment": "", + "command": "click", + "target": "xpath=//div[4]/sf-form-element/div/sf-widget-chooser/datalist-component/div/auto-complete/div/ul/li[3]", + "targets": [ + ["id=field14__option--2", "id"], + ["css=#field14__option--2", "css:finder"], + ["xpath=//li[@id='field14__option--2']", "xpath:attributes"], + ["xpath=//ul[@id='field14__listbox']/li[3]", "xpath:idRelative"], + ["xpath=//div[4]/sf-form-element/div/sf-widget-chooser/datalist-component/div/auto-complete/div/ul/li[3]", "xpath:position"] + ], + "value": "" + }, { + "id": "ae32fb25-67b1-469b-9f23-3cbca895b956", + "comment": "", + "command": "click", + "target": "xpath=//div[2]/label/input", + "targets": [ + ["id=field15-1", "id"], + ["css=#field15-1", "css:finder"], + ["xpath=//input[@id='field15-1']", "xpath:attributes"], + ["xpath=//div[2]/label/input", "xpath:position"] + ], + "value": "" + }, { + "id": "c30bf781-4d5d-46ad-9bbc-4a5165788870", + "comment": "", + "command": "click", + "target": "xpath=//div[6]/sf-form-element/div/sf-widget-chooser/datalist-component/div/auto-complete/div/div/div/button/i", + "targets": [ + ["css=#field16-container .fa", "css:finder"], + ["xpath=//div[@id='field16-container']/div/div/button/i", "xpath:idRelative"], + ["xpath=//div[6]/sf-form-element/div/sf-widget-chooser/datalist-component/div/auto-complete/div/div/div/button/i", "xpath:position"] + ], + "value": "" + }, { + "id": "7e6e956a-7315-48ea-b3a7-d08396e41582", + "comment": "", + "command": "click", + "target": "xpath=//div[6]/sf-form-element/div/sf-widget-chooser/datalist-component/div/auto-complete/div/ul/li[2]", + "targets": [ + ["id=field16__option--1", "id"], + ["css=#field16__option--1", "css:finder"], + ["xpath=//li[@id='field16__option--1']", "xpath:attributes"], + ["xpath=//ul[@id='field16__listbox']/li[2]", "xpath:idRelative"], + ["xpath=//div[6]/sf-form-element/div/sf-widget-chooser/datalist-component/div/auto-complete/div/ul/li[2]", "xpath:position"] + ], + "value": "" + }, { + "id": "1202602e-9311-4c3c-b836-9a433cbbcd8c", + "comment": "", + "command": "click", + "target": "css=.next", + "targets": [ + ["css=.next", "css:finder"], + ["xpath=//li[3]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "f4b19f08-bf68-47d0-9c1d-d59f6476a468", + "comment": "", + "command": "click", + "target": "css=.custom-control-label", + "targets": [ + ["css=.custom-control-label", "css:finder"], + ["xpath=//label", "xpath:position"], + ["xpath=//label[contains(.,'Enable Metadata Provider?')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "e27e05ac-3a23-47e2-b5b4-51b2ae2f4b31", + "comment": "", + "command": "click", + "target": "css=.save", + "targets": [ + ["css=.save", "css:finder"], + ["xpath=//li[3]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "4bd514f1-9dbf-431f-b797-c8666c7c0889", + "comment": "", + "command": "waitForElementVisible", + "target": "css=.badge", + "targets": [], + "value": "10000" + }, { + "id": "f0232386-eb88-4f6c-98fa-b9065ed422b7", + "comment": "", + "command": "verifyText", + "target": "linkText=Test Local Dynamic Provider", + "targets": [ + ["linkText=Test Local Dynamic Provider", "linkText"], + ["css=td > a", "css:finder"], + ["xpath=//a[contains(text(),'Test Local Dynamic Provider')]", "xpath:link"], + ["xpath=(//a[contains(@href, '')])[10]", "xpath:href"], + ["xpath=//td[2]/a", "xpath:position"], + ["xpath=//a[contains(.,'Test Local Dynamic Provider')]", "xpath:innerText"] + ], + "value": "Test Local Dynamic Provider" + }, { + "id": "5e8993ae-47ee-4e65-b667-b291d7c934ec", + "comment": "", + "command": "verifyText", + "target": "css=td:nth-child(3)", + "targets": [ + ["css=td:nth-child(3)", "css:finder"], + ["xpath=//td[3]", "xpath:position"], + ["xpath=//td[contains(.,'LocalDynamicMetadataResolver')]", "xpath:innerText"] + ], + "value": "LocalDynamicMetadataResolver" + }] + }], + "suites": [{ + "id": "537e85aa-f94d-4fef-bc13-2ecdf5132fa2", + "name": "Default Suite", + "persistSession": false, + "parallel": false, + "timeout": 300, + "tests": ["62117cd1-23bb-4574-b360-1c9217799641"] + }], + "urls": ["http://localhost:10101/"], + "plugins": [] +} \ No newline at end of file diff --git a/backend/src/integration/resources/SHIBUI-1352-2.side b/backend/src/integration/resources/SHIBUI-1352-2.side new file mode 100644 index 000000000..8937709dd --- /dev/null +++ b/backend/src/integration/resources/SHIBUI-1352-2.side @@ -0,0 +1,350 @@ +{ + "id": "314e0ac4-abfa-4280-aee8-dee5dbe6079f", + "version": "2.0", + "name": "SHIBUI-1352-2", + "url": "http://localhost:10101", + "tests": [{ + "id": "505db724-d943-4da1-b393-08f8c036c243", + "name": "SHIBUI-1352-2", + "commands": [{ + "id": "99646b66-4218-4787-a64a-0ec5d6cbb138", + "comment": "", + "command": "open", + "target": "/login", + "targets": [], + "value": "" + }, { + "id": "362ac5d6-1c26-44bc-92ca-1f80d97b8dea", + "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": "25160e72-53ef-4309-8ad3-4aab20a3b7f3", + "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": "7736e7a4-5667-4fcf-97f5-5796af96fdb1", + "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": "1245c352-1466-4b3f-ac54-a71bdd99ed29", + "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": "0a94c3ad-96c3-464c-8db2-04b8d40d07fe", + "comment": "", + "command": "click", + "target": "linkText=Metadata Provider", + "targets": [ + ["linkText=Metadata Provider", "linkText"], + ["css=.nav-link:nth-child(2)", "css:finder"], + ["xpath=//div[@id='navbar']/ul/li/div/a[2]", "xpath:idRelative"], + ["xpath=(//a[contains(@href, '')])[3]", "xpath:href"], + ["xpath=//a[2]", "xpath:position"] + ], + "value": "" + }, { + "id": "230d4089-99c3-4f2e-99a8-b125bbde94aa", + "comment": "", + "command": "click", + "target": "xpath=//input", + "targets": [ + ["id=field4", "id"], + ["name=field4", "name"], + ["css=#field4", "css:finder"], + ["xpath=//input[@id='field4']", "xpath:attributes"], + ["xpath=//input", "xpath:position"] + ], + "value": "" + }, { + "id": "872cc901-9a64-46c8-9a8b-78df25273a29", + "comment": "", + "command": "type", + "target": "xpath=//input", + "targets": [ + ["id=field4", "id"], + ["name=field4", "name"], + ["css=#field4", "css:finder"], + ["xpath=//input[@id='field4']", "xpath:attributes"], + ["xpath=//input", "xpath:position"] + ], + "value": "Test File System Provider" + }, { + "id": "9621e646-308a-4eda-9244-036e8997467a", + "comment": "", + "command": "select", + "target": "xpath=//select", + "targets": [ + ["id=field2", "id"], + ["name=field2", "name"], + ["css=#field2", "css:finder"], + ["xpath=//select[@id='field2']", "xpath:attributes"], + ["xpath=//select", "xpath:position"] + ], + "value": "label=FilesystemMetadataProvider" + }, { + "id": "19b8e1ac-427a-4ced-91c7-226fd2480f46", + "comment": "", + "command": "click", + "target": "css=.next", + "targets": [ + ["css=.next", "css:finder"], + ["xpath=//li[2]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "cb1183c8-8165-4021-b1ff-77cf7ba210a5", + "comment": "", + "command": "click", + "target": "xpath=//input", + "targets": [ + ["id=field7", "id"], + ["name=field7", "name"], + ["css=#field7", "css:finder"], + ["xpath=//input[@id='field7']", "xpath:attributes"], + ["xpath=//input", "xpath:position"] + ], + "value": "" + }, { + "id": "fb136799-b38b-49f7-8cf6-f00de5c56a46", + "comment": "", + "command": "type", + "target": "xpath=//input", + "targets": [ + ["id=field7", "id"], + ["name=field7", "name"], + ["css=#field7", "css:finder"], + ["xpath=//input[@id='field7']", "xpath:attributes"], + ["xpath=//input", "xpath:position"] + ], + "value": "test-12345" + }, { + "id": "dece0246-47b4-4553-b06e-f89e096ef244", + "comment": "", + "command": "click", + "target": "xpath=//div[2]/sf-form-element/div/sf-widget-chooser/custom-string/div/input", + "targets": [ + ["id=field8", "id"], + ["name=field8", "name"], + ["css=#field8", "css:finder"], + ["xpath=//input[@id='field8']", "xpath:attributes"], + ["xpath=//div[2]/sf-form-element/div/sf-widget-chooser/custom-string/div/input", "xpath:position"] + ], + "value": "" + }, { + "id": "614a5542-fafa-4523-aa58-5f4fd3586d76", + "comment": "", + "command": "type", + "target": "xpath=//div[2]/sf-form-element/div/sf-widget-chooser/custom-string/div/input", + "targets": [ + ["id=field8", "id"], + ["name=field8", "name"], + ["css=#field8", "css:finder"], + ["xpath=//input[@id='field8']", "xpath:attributes"], + ["xpath=//div[2]/sf-form-element/div/sf-widget-chooser/custom-string/div/input", "xpath:position"] + ], + "value": "%{idp.home}/foo.xml" + }, { + "id": "88cf741f-0922-4dfb-aaea-9e4c146ed8e1", + "comment": "", + "command": "click", + "target": "css=.justify-content-start", + "targets": [ + ["css=.justify-content-start", "css:finder"], + ["xpath=//boolean-radio/div/label", "xpath:position"] + ], + "value": "" + }, { + "id": "c9b400d6-f7fe-43e3-abe5-9ac687f51b92", + "comment": "", + "command": "click", + "target": "css=.next", + "targets": [ + ["css=.next", "css:finder"], + ["xpath=//li[3]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "d2e09813-fee8-4744-9ac9-72bdbac92b72", + "comment": "", + "command": "click", + "target": "xpath=//div/button", + "targets": [ + ["css=#field12-container .btn", "css:finder"], + ["xpath=(//button[@type='button'])[2]", "xpath:attributes"], + ["xpath=//div[@id='field12-container']/div/div/button", "xpath:idRelative"], + ["xpath=//div/button", "xpath:position"], + ["xpath=//button[contains(.,'Toggle Dropdown')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "d449fec4-84f9-4eda-98e5-2dc40d185a63", + "comment": "", + "command": "click", + "target": "xpath=//auto-complete/div/ul/li[2]", + "targets": [ + ["id=field12__option--1", "id"], + ["css=#field12__option--1", "css:finder"], + ["xpath=//li[@id='field12__option--1']", "xpath:attributes"], + ["xpath=//ul[@id='field12__listbox']/li[2]", "xpath:idRelative"], + ["xpath=//auto-complete/div/ul/li[2]", "xpath:position"], + ["xpath=//li[contains(.,'PT30S')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "54784d87-c835-4e3f-9467-9c39be596bb8", + "comment": "", + "command": "click", + "target": "xpath=//div[2]/sf-form-element/div/sf-widget-chooser/datalist-component/div/auto-complete/div/div/div/button/i", + "targets": [ + ["css=#field13-container .fa", "css:finder"], + ["xpath=//div[@id='field13-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": "119a39c2-6d86-4d94-a093-6669e89e78e4", + "comment": "", + "command": "click", + "target": "xpath=//div[2]/sf-form-element/div/sf-widget-chooser/datalist-component/div/auto-complete/div/ul/li[3]", + "targets": [ + ["id=field13__option--2", "id"], + ["css=#field13__option--2", "css:finder"], + ["xpath=//li[@id='field13__option--2']", "xpath:attributes"], + ["xpath=//ul[@id='field13__listbox']/li[3]", "xpath:idRelative"], + ["xpath=//div[2]/sf-form-element/div/sf-widget-chooser/datalist-component/div/auto-complete/div/ul/li[3]", "xpath:position"] + ], + "value": "" + }, { + "id": "fa8357ce-5c99-483d-8170-bf9987aa81db", + "comment": "", + "command": "click", + "target": "xpath=//custom-string/div/input", + "targets": [ + ["id=field14", "id"], + ["name=field14", "name"], + ["css=#field14", "css:finder"], + ["xpath=//input[@id='field14']", "xpath:attributes"], + ["xpath=//custom-string/div/input", "xpath:position"] + ], + "value": "" + }, { + "id": "415caf46-dca5-41be-9334-f01a0bf42af8", + "comment": "", + "command": "type", + "target": "xpath=//custom-string/div/input", + "targets": [ + ["id=field14", "id"], + ["name=field14", "name"], + ["css=#field14", "css:finder"], + ["xpath=//input[@id='field14']", "xpath:attributes"], + ["xpath=//custom-string/div/input", "xpath:position"] + ], + "value": "0.5" + }, { + "id": "138ac9c7-03ae-4a87-b1f4-73bab4cc1197", + "comment": "", + "command": "click", + "target": "css=.next", + "targets": [ + ["css=.next", "css:finder"], + ["xpath=//li[3]/button", "xpath:position"] + ], + "value": "" + }, { + "id": "6a929cbb-551e-416d-9dd0-aea3d2ff7fa8", + "comment": "", + "command": "click", + "target": "css=.custom-control-label", + "targets": [ + ["css=.custom-control-label", "css:finder"], + ["xpath=//label", "xpath:position"], + ["xpath=//label[contains(.,'Enable Metadata Provider?')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "745769b0-8422-4100-8ce5-5ec1b1a18c25", + "comment": "", + "command": "click", + "target": "css=.direction:nth-child(2)", + "targets": [ + ["css=.direction:nth-child(2)", "css:finder"], + ["xpath=//li[3]/button/span[2]", "xpath:position"] + ], + "value": "" + }, { + "id": "3718c9f8-edb3-412a-9819-f3adc27f1226", + "comment": "", + "command": "waitForElementVisible", + "target": "css=.badge", + "targets": [], + "value": "10000" + }, { + "id": "44749988-e30f-4328-9f78-dc9eaafa891a", + "comment": "", + "command": "verifyText", + "target": "linkText=Test File System Provider", + "targets": [ + ["linkText=Test File System Provider", "linkText"], + ["css=td > a", "css:finder"], + ["xpath=//a[contains(text(),'Test File System Provider')]", "xpath:link"], + ["xpath=(//a[contains(@href, '')])[10]", "xpath:href"], + ["xpath=//td[2]/a", "xpath:position"], + ["xpath=//a[contains(.,'Test File System Provider')]", "xpath:innerText"] + ], + "value": "Test File System Provider" + }, { + "id": "6ddcb09b-9d3b-4a13-bb95-1b79028ba2af", + "comment": "", + "command": "verifyText", + "target": "css=td:nth-child(3)", + "targets": [ + ["css=td:nth-child(3)", "css:finder"], + ["xpath=//td[3]", "xpath:position"], + ["xpath=//td[contains(.,'FilesystemMetadataResolver')]", "xpath:innerText"] + ], + "value": "FilesystemMetadataResolver" + }] + }], + "suites": [{ + "id": "cb217b7c-b7f0-47a4-9860-8731876d2b1a", + "name": "Default Suite", + "persistSession": false, + "parallel": false, + "timeout": 300, + "tests": ["505db724-d943-4da1-b393-08f8c036c243"] + }], + "urls": ["http://localhost:10101/"], + "plugins": [] +} \ No newline at end of file From bb7084661293128bfe31de5b9f24fce2a40657e2 Mon Sep 17 00:00:00 2001 From: Bill Smith Date: Mon, 29 Jul 2019 21:49:08 -0700 Subject: [PATCH 3/3] SHIBUI-1352 Updated selenium scripts to make use of new element ids. --- .../integration/resources/SHIBUI-1352-1.side | 165 +++++++++--------- .../integration/resources/SHIBUI-1352-2.side | 108 ++++++------ 2 files changed, 143 insertions(+), 130 deletions(-) diff --git a/backend/src/integration/resources/SHIBUI-1352-1.side b/backend/src/integration/resources/SHIBUI-1352-1.side index f9ba76a0a..9747f4e9d 100644 --- a/backend/src/integration/resources/SHIBUI-1352-1.side +++ b/backend/src/integration/resources/SHIBUI-1352-1.side @@ -78,12 +78,12 @@ "id": "2e8de1a4-a5a3-49fc-8314-206ab7373f14", "comment": "", "command": "click", - "target": "xpath=//input", + "target": "id=/name", "targets": [ - ["id=field1", "id"], + ["id=/name", "id"], ["name=field1", "name"], - ["css=#field1", "css:finder"], - ["xpath=//input[@id='field1']", "xpath:attributes"], + ["css=#\\/name", "css:finder"], + ["xpath=//input[@id='/name']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "" @@ -91,7 +91,7 @@ "id": "88683ce7-ec58-4a98-8138-9003d4275f8b", "comment": "", "command": "type", - "target": "xpath=//input", + "target": "id=/name", "targets": [ ["id=field1", "id"], ["name=field1", "name"], @@ -104,8 +104,14 @@ "id": "fd4257d7-488a-4eed-8d72-7f39034a1c72", "comment": "", "command": "select", - "target": "id=field2", - "targets": [], + "target": "id=/@type", + "targets": [ + ["id=/@type", "id"], + ["name=field2", "name"], + ["css=#\\/\\@type", "css:finder"], + ["xpath=//select[@id='/@type']", "xpath:attributes"], + ["xpath=//select", "xpath:position"] + ], "value": "label=LocalDynamicMetadataProvider" }, { "id": "34cb083d-1dbf-463d-94de-392356f4e68d", @@ -121,12 +127,12 @@ "id": "205b2459-f8d3-4571-813b-e752ec2295a0", "comment": "", "command": "click", - "target": "xpath=//input", + "target": "id=/xmlId", "targets": [ - ["id=field7", "id"], + ["id=/xmlId", "id"], ["name=field7", "name"], - ["css=#field7", "css:finder"], - ["xpath=//input[@id='field7']", "xpath:attributes"], + ["css=#\\/xmlId", "css:finder"], + ["xpath=//input[@id='/xmlId']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "" @@ -134,7 +140,7 @@ "id": "54554bf5-8354-4737-b96e-6f36ccab6455", "comment": "", "command": "type", - "target": "xpath=//input", + "target": "id=/xmlId", "targets": [ ["id=field7", "id"], ["name=field7", "name"], @@ -147,12 +153,12 @@ "id": "2510aebf-4351-4bd4-8d57-1b8061a3da93", "comment": "", "command": "click", - "target": "xpath=//div[2]/sf-form-element/div/sf-widget-chooser/custom-string/div/input", + "target": "id=/sourceDirectory", "targets": [ - ["id=field8", "id"], + ["id=/sourceDirectory", "id"], ["name=field8", "name"], - ["css=#field8", "css:finder"], - ["xpath=//input[@id='field8']", "xpath:attributes"], + ["css=#\\/sourceDirectory", "css:finder"], + ["xpath=//input[@id='/sourceDirectory']", "xpath:attributes"], ["xpath=//div[2]/sf-form-element/div/sf-widget-chooser/custom-string/div/input", "xpath:position"] ], "value": "" @@ -160,7 +166,7 @@ "id": "b020f834-180b-400f-a85a-b3e006337c55", "comment": "", "command": "type", - "target": "xpath=//div[2]/sf-form-element/div/sf-widget-chooser/custom-string/div/input", + "target": "id=/sourceDirectory", "targets": [ ["id=field8", "id"], ["name=field8", "name"], @@ -183,12 +189,12 @@ "id": "ee0724b9-a055-4aef-a5a2-a58acd017000", "comment": "", "command": "click", - "target": "xpath=//input", + "target": "id=/dynamicMetadataResolverAttributes/refreshDelayFactor", "targets": [ - ["id=field11", "id"], + ["id=/dynamicMetadataResolverAttributes/refreshDelayFactor", "id"], ["name=field11", "name"], - ["css=#field11", "css:finder"], - ["xpath=//input[@id='field11']", "xpath:attributes"], + ["css=#\\/dynamicMetadataResolverAttributes\\/refreshDelayFactor", "css:finder"], + ["xpath=//input[@id='/dynamicMetadataResolverAttributes/refreshDelayFactor']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "" @@ -196,7 +202,7 @@ "id": "1d3c8b73-97b8-40d2-ba89-9692f443b53d", "comment": "", "command": "type", - "target": "xpath=//input", + "target": "id=/dynamicMetadataResolverAttributes/refreshDelayFactor", "targets": [ ["id=field11", "id"], ["name=field11", "name"], @@ -209,115 +215,112 @@ "id": "59ca3a2c-b9da-4ac6-9b44-d44271355659", "comment": "", "command": "click", - "target": "xpath=//div/button/i", + "target": "css=#\\/dynamicMetadataResolverAttributes\\/minCacheDuration-container .btn", "targets": [ - ["css=#field12-container .fa", "css:finder"], - ["xpath=//div[@id='field12-container']/div/div/button/i", "xpath:idRelative"], - ["xpath=//div/button/i", "xpath:position"] + ["css=#\\/dynamicMetadataResolverAttributes\\/minCacheDuration-container .btn", "css:finder"], + ["xpath=(//button[@type='button'])[2]", "xpath:attributes"], + ["xpath=//div[@id='/dynamicMetadataResolverAttributes/minCacheDuration-container']/div/div/button", "xpath:idRelative"], + ["xpath=//div/button", "xpath:position"], + ["xpath=//button[contains(.,'Toggle Dropdown')]", "xpath:innerText"] ], "value": "" }, { "id": "8db04a8f-565a-4fa9-b5c0-8ce4b200b11c", "comment": "", "command": "click", - "target": "xpath=//auto-complete/div/ul/li", + "target": "id=/dynamicMetadataResolverAttributes/minCacheDuration__option--1", "targets": [ - ["id=field12__option--0", "id"], - ["css=#field12__option--0", "css:finder"], - ["xpath=//li[@id='field12__option--0']", "xpath:attributes"], - ["xpath=//ul[@id='field12__listbox']/li", "xpath:idRelative"], - ["xpath=//auto-complete/div/ul/li", "xpath:position"], - ["xpath=//li[contains(.,'PT0S')]", "xpath:innerText"] + ["id=/dynamicMetadataResolverAttributes/minCacheDuration__option--1", "id"], + ["css=#\\/dynamicMetadataResolverAttributes\\/minCacheDuration__option--1", "css:finder"], + ["xpath=//li[@id='/dynamicMetadataResolverAttributes/minCacheDuration__option--1']", "xpath:attributes"], + ["xpath=//ul[@id='/dynamicMetadataResolverAttributes/minCacheDuration__listbox']/li[2]", "xpath:idRelative"], + ["xpath=//auto-complete/div/ul/li[2]", "xpath:position"], + ["xpath=//li[contains(.,'PT30S')]", "xpath:innerText"] ], "value": "" }, { "id": "a5274853-084e-438f-8cea-9a74e55fd0b9", "comment": "", "command": "click", - "target": "xpath=//div[3]/sf-form-element/div/sf-widget-chooser/datalist-component/div/auto-complete/div/div/div/button/i", + "target": "css=#\\/dynamicMetadataResolverAttributes\\/maxCacheDuration-container .btn", "targets": [ - ["css=#field13-container .fa", "css:finder"], - ["xpath=//div[@id='field13-container']/div/div/button/i", "xpath:idRelative"], - ["xpath=//div[3]/sf-form-element/div/sf-widget-chooser/datalist-component/div/auto-complete/div/div/div/button/i", "xpath:position"] + ["css=#\\/dynamicMetadataResolverAttributes\\/maxCacheDuration-container .btn", "css:finder"], + ["xpath=(//button[@type='button'])[3]", "xpath:attributes"], + ["xpath=//div[@id='/dynamicMetadataResolverAttributes/maxCacheDuration-container']/div/div/button", "xpath:idRelative"], + ["xpath=//div[3]/sf-form-element/div/sf-widget-chooser/datalist-component/div/auto-complete/div/div/div/button", "xpath:position"] ], "value": "" }, { "id": "bf7f5914-5aad-485a-8af0-aa510605e1dc", "comment": "", - "command": "waitForElementVisible", - "target": "xpath=//div[3]/sf-form-element/div/sf-widget-chooser/datalist-component/div/auto-complete/div/ul/li[3]", - "targets": [], - "value": "10000" - }, { - "id": "b2bd8d25-4f3c-47b2-a070-53a364840916", - "comment": "", "command": "click", - "target": "xpath=//div[3]/sf-form-element/div/sf-widget-chooser/datalist-component/div/auto-complete/div/ul/li[3]", + "target": "id=/dynamicMetadataResolverAttributes/maxCacheDuration__option--3", "targets": [ - ["id=field13__option--2", "id"], - ["css=#field13__option--2", "css:finder"], - ["xpath=//li[@id='field13__option--2']", "xpath:attributes"], - ["xpath=//ul[@id='field13__listbox']/li[3]", "xpath:idRelative"], - ["xpath=//div[3]/sf-form-element/div/sf-widget-chooser/datalist-component/div/auto-complete/div/ul/li[3]", "xpath:position"] + ["id=/dynamicMetadataResolverAttributes/maxCacheDuration__option--3", "id"], + ["css=#\\/dynamicMetadataResolverAttributes\\/maxCacheDuration__option--3", "css:finder"], + ["xpath=//li[@id='/dynamicMetadataResolverAttributes/maxCacheDuration__option--3']", "xpath:attributes"], + ["xpath=//ul[@id='/dynamicMetadataResolverAttributes/maxCacheDuration__listbox']/li[4]", "xpath:idRelative"], + ["xpath=//div[3]/sf-form-element/div/sf-widget-chooser/datalist-component/div/auto-complete/div/ul/li[4]", "xpath:position"] ], "value": "" }, { - "id": "9a411cfc-479d-4951-aab2-e8d09ba64b4e", + "id": "b2bd8d25-4f3c-47b2-a070-53a364840916", "comment": "", "command": "click", - "target": "xpath=//div[4]/sf-form-element/div/sf-widget-chooser/datalist-component/div/auto-complete/div/div/div/button/i", + "target": "css=#\\/dynamicMetadataResolverAttributes\\/maxIdleEntityData-container .btn", "targets": [ - ["css=#field14-container .fa", "css:finder"], - ["xpath=//div[@id='field14-container']/div/div/button/i", "xpath:idRelative"], - ["xpath=//div[4]/sf-form-element/div/sf-widget-chooser/datalist-component/div/auto-complete/div/div/div/button/i", "xpath:position"] + ["css=#\\/dynamicMetadataResolverAttributes\\/maxIdleEntityData-container .btn", "css:finder"], + ["xpath=(//button[@type='button'])[4]", "xpath:attributes"], + ["xpath=//div[@id='/dynamicMetadataResolverAttributes/maxIdleEntityData-container']/div/div/button", "xpath:idRelative"], + ["xpath=//div[4]/sf-form-element/div/sf-widget-chooser/datalist-component/div/auto-complete/div/div/div/button", "xpath:position"] ], "value": "" }, { - "id": "1176d384-4b0c-4a67-8e43-6cc3cbbcff73", + "id": "9a411cfc-479d-4951-aab2-e8d09ba64b4e", "comment": "", "command": "click", - "target": "xpath=//div[4]/sf-form-element/div/sf-widget-chooser/datalist-component/div/auto-complete/div/ul/li[3]", + "target": "id=/dynamicMetadataResolverAttributes/maxIdleEntityData__option--2", "targets": [ - ["id=field14__option--2", "id"], - ["css=#field14__option--2", "css:finder"], - ["xpath=//li[@id='field14__option--2']", "xpath:attributes"], - ["xpath=//ul[@id='field14__listbox']/li[3]", "xpath:idRelative"], + ["id=/dynamicMetadataResolverAttributes/maxIdleEntityData__option--2", "id"], + ["css=#\\/dynamicMetadataResolverAttributes\\/maxIdleEntityData__option--2", "css:finder"], + ["xpath=//li[@id='/dynamicMetadataResolverAttributes/maxIdleEntityData__option--2']", "xpath:attributes"], + ["xpath=//ul[@id='/dynamicMetadataResolverAttributes/maxIdleEntityData__listbox']/li[3]", "xpath:idRelative"], ["xpath=//div[4]/sf-form-element/div/sf-widget-chooser/datalist-component/div/auto-complete/div/ul/li[3]", "xpath:position"] ], "value": "" }, { - "id": "ae32fb25-67b1-469b-9f23-3cbca895b956", + "id": "1176d384-4b0c-4a67-8e43-6cc3cbbcff73", "comment": "", "command": "click", - "target": "xpath=//div[2]/label/input", + "target": "css=.form-check:nth-child(4) #\\/dynamicMetadataResolverAttributes\\/removeIdleEntityData", "targets": [ - ["id=field15-1", "id"], - ["css=#field15-1", "css:finder"], - ["xpath=//input[@id='field15-1']", "xpath:attributes"], + ["css=.form-check:nth-child(4) #\\/dynamicMetadataResolverAttributes\\/removeIdleEntityData", "css:finder"], + ["xpath=(//input[@id='/dynamicMetadataResolverAttributes/removeIdleEntityData'])[2]", "xpath:attributes"], ["xpath=//div[2]/label/input", "xpath:position"] ], "value": "" }, { - "id": "c30bf781-4d5d-46ad-9bbc-4a5165788870", + "id": "ae32fb25-67b1-469b-9f23-3cbca895b956", "comment": "", "command": "click", - "target": "xpath=//div[6]/sf-form-element/div/sf-widget-chooser/datalist-component/div/auto-complete/div/div/div/button/i", + "target": "css=#\\/dynamicMetadataResolverAttributes\\/cleanupTaskInterval-container .btn", "targets": [ - ["css=#field16-container .fa", "css:finder"], - ["xpath=//div[@id='field16-container']/div/div/button/i", "xpath:idRelative"], - ["xpath=//div[6]/sf-form-element/div/sf-widget-chooser/datalist-component/div/auto-complete/div/div/div/button/i", "xpath:position"] + ["css=#\\/dynamicMetadataResolverAttributes\\/cleanupTaskInterval-container .btn", "css:finder"], + ["xpath=(//button[@type='button'])[5]", "xpath:attributes"], + ["xpath=//div[@id='/dynamicMetadataResolverAttributes/cleanupTaskInterval-container']/div/div/button", "xpath:idRelative"], + ["xpath=//div[6]/sf-form-element/div/sf-widget-chooser/datalist-component/div/auto-complete/div/div/div/button", "xpath:position"] ], "value": "" }, { - "id": "7e6e956a-7315-48ea-b3a7-d08396e41582", + "id": "c30bf781-4d5d-46ad-9bbc-4a5165788870", "comment": "", "command": "click", - "target": "xpath=//div[6]/sf-form-element/div/sf-widget-chooser/datalist-component/div/auto-complete/div/ul/li[2]", + "target": "id=/dynamicMetadataResolverAttributes/cleanupTaskInterval__option--1", "targets": [ - ["id=field16__option--1", "id"], - ["css=#field16__option--1", "css:finder"], - ["xpath=//li[@id='field16__option--1']", "xpath:attributes"], - ["xpath=//ul[@id='field16__listbox']/li[2]", "xpath:idRelative"], + ["id=/dynamicMetadataResolverAttributes/cleanupTaskInterval__option--1", "id"], + ["css=#\\/dynamicMetadataResolverAttributes\\/cleanupTaskInterval__option--1", "css:finder"], + ["xpath=//li[@id='/dynamicMetadataResolverAttributes/cleanupTaskInterval__option--1']", "xpath:attributes"], + ["xpath=//ul[@id='/dynamicMetadataResolverAttributes/cleanupTaskInterval__listbox']/li[2]", "xpath:idRelative"], ["xpath=//div[6]/sf-form-element/div/sf-widget-chooser/datalist-component/div/auto-complete/div/ul/li[2]", "xpath:position"] ], "value": "" @@ -356,8 +359,12 @@ "id": "4bd514f1-9dbf-431f-b797-c8666c7c0889", "comment": "", "command": "waitForElementVisible", - "target": "css=.badge", - "targets": [], + "target": "css=tr > .text-right", + "targets": [ + ["css=tr > .text-right", "css:finder"], + ["xpath=//td[6]", "xpath:position"], + ["xpath=//td[contains(.,'Enabled')]", "xpath:innerText"] + ], "value": "10000" }, { "id": "f0232386-eb88-4f6c-98fa-b9065ed422b7", diff --git a/backend/src/integration/resources/SHIBUI-1352-2.side b/backend/src/integration/resources/SHIBUI-1352-2.side index 8937709dd..d09d81148 100644 --- a/backend/src/integration/resources/SHIBUI-1352-2.side +++ b/backend/src/integration/resources/SHIBUI-1352-2.side @@ -78,12 +78,12 @@ "id": "230d4089-99c3-4f2e-99a8-b125bbde94aa", "comment": "", "command": "click", - "target": "xpath=//input", + "target": "id=/name", "targets": [ - ["id=field4", "id"], - ["name=field4", "name"], - ["css=#field4", "css:finder"], - ["xpath=//input[@id='field4']", "xpath:attributes"], + ["id=/name", "id"], + ["name=field1", "name"], + ["css=#\\/name", "css:finder"], + ["xpath=//input[@id='/name']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "" @@ -91,7 +91,7 @@ "id": "872cc901-9a64-46c8-9a8b-78df25273a29", "comment": "", "command": "type", - "target": "xpath=//input", + "target": "id=/name", "targets": [ ["id=field4", "id"], ["name=field4", "name"], @@ -104,12 +104,12 @@ "id": "9621e646-308a-4eda-9244-036e8997467a", "comment": "", "command": "select", - "target": "xpath=//select", + "target": "id=/@type", "targets": [ - ["id=field2", "id"], + ["id=/@type", "id"], ["name=field2", "name"], - ["css=#field2", "css:finder"], - ["xpath=//select[@id='field2']", "xpath:attributes"], + ["css=#\\/\\@type", "css:finder"], + ["xpath=//select[@id='/@type']", "xpath:attributes"], ["xpath=//select", "xpath:position"] ], "value": "label=FilesystemMetadataProvider" @@ -127,12 +127,12 @@ "id": "cb1183c8-8165-4021-b1ff-77cf7ba210a5", "comment": "", "command": "click", - "target": "xpath=//input", + "target": "id=/xmlId", "targets": [ - ["id=field7", "id"], + ["id=/xmlId", "id"], ["name=field7", "name"], - ["css=#field7", "css:finder"], - ["xpath=//input[@id='field7']", "xpath:attributes"], + ["css=#\\/xmlId", "css:finder"], + ["xpath=//input[@id='/xmlId']", "xpath:attributes"], ["xpath=//input", "xpath:position"] ], "value": "" @@ -140,7 +140,7 @@ "id": "fb136799-b38b-49f7-8cf6-f00de5c56a46", "comment": "", "command": "type", - "target": "xpath=//input", + "target": "id=/xmlId", "targets": [ ["id=field7", "id"], ["name=field7", "name"], @@ -153,12 +153,12 @@ "id": "dece0246-47b4-4553-b06e-f89e096ef244", "comment": "", "command": "click", - "target": "xpath=//div[2]/sf-form-element/div/sf-widget-chooser/custom-string/div/input", + "target": "id=/metadataFile", "targets": [ - ["id=field8", "id"], + ["id=/metadataFile", "id"], ["name=field8", "name"], - ["css=#field8", "css:finder"], - ["xpath=//input[@id='field8']", "xpath:attributes"], + ["css=#\\/metadataFile", "css:finder"], + ["xpath=//input[@id='/metadataFile']", "xpath:attributes"], ["xpath=//div[2]/sf-form-element/div/sf-widget-chooser/custom-string/div/input", "xpath:position"] ], "value": "" @@ -166,7 +166,7 @@ "id": "614a5542-fafa-4523-aa58-5f4fd3586d76", "comment": "", "command": "type", - "target": "xpath=//div[2]/sf-form-element/div/sf-widget-chooser/custom-string/div/input", + "target": "id=/metadataFile", "targets": [ ["id=field8", "id"], ["name=field8", "name"], @@ -179,10 +179,11 @@ "id": "88cf741f-0922-4dfb-aaea-9e4c146ed8e1", "comment": "", "command": "click", - "target": "css=.justify-content-start", + "target": "css=.form-check:nth-child(4) #\\/doInitialization", "targets": [ - ["css=.justify-content-start", "css:finder"], - ["xpath=//boolean-radio/div/label", "xpath:position"] + ["css=.form-check:nth-child(4) #\\/doInitialization", "css:finder"], + ["xpath=(//input[@id='/doInitialization'])[2]", "xpath:attributes"], + ["xpath=//div[2]/label/input", "xpath:position"] ], "value": "" }, { @@ -199,11 +200,11 @@ "id": "d2e09813-fee8-4744-9ac9-72bdbac92b72", "comment": "", "command": "click", - "target": "xpath=//div/button", + "target": "css=#\\/reloadableMetadataResolverAttributes\\/minRefreshDelay-container .btn", "targets": [ - ["css=#field12-container .btn", "css:finder"], + ["css=#\\/reloadableMetadataResolverAttributes\\/minRefreshDelay-container .btn", "css:finder"], ["xpath=(//button[@type='button'])[2]", "xpath:attributes"], - ["xpath=//div[@id='field12-container']/div/div/button", "xpath:idRelative"], + ["xpath=//div[@id='/reloadableMetadataResolverAttributes/minRefreshDelay-container']/div/div/button", "xpath:idRelative"], ["xpath=//div/button", "xpath:position"], ["xpath=//button[contains(.,'Toggle Dropdown')]", "xpath:innerText"] ], @@ -212,12 +213,12 @@ "id": "d449fec4-84f9-4eda-98e5-2dc40d185a63", "comment": "", "command": "click", - "target": "xpath=//auto-complete/div/ul/li[2]", + "target": "id=/reloadableMetadataResolverAttributes/minRefreshDelay__option--1", "targets": [ - ["id=field12__option--1", "id"], - ["css=#field12__option--1", "css:finder"], - ["xpath=//li[@id='field12__option--1']", "xpath:attributes"], - ["xpath=//ul[@id='field12__listbox']/li[2]", "xpath:idRelative"], + ["id=/reloadableMetadataResolverAttributes/minRefreshDelay__option--1", "id"], + ["css=#\\/reloadableMetadataResolverAttributes\\/minRefreshDelay__option--1", "css:finder"], + ["xpath=//li[@id='/reloadableMetadataResolverAttributes/minRefreshDelay__option--1']", "xpath:attributes"], + ["xpath=//ul[@id='/reloadableMetadataResolverAttributes/minRefreshDelay__listbox']/li[2]", "xpath:idRelative"], ["xpath=//auto-complete/div/ul/li[2]", "xpath:position"], ["xpath=//li[contains(.,'PT30S')]", "xpath:innerText"] ], @@ -226,36 +227,37 @@ "id": "54784d87-c835-4e3f-9467-9c39be596bb8", "comment": "", "command": "click", - "target": "xpath=//div[2]/sf-form-element/div/sf-widget-chooser/datalist-component/div/auto-complete/div/div/div/button/i", + "target": "css=#\\/reloadableMetadataResolverAttributes\\/maxRefreshDelay-container .btn", "targets": [ - ["css=#field13-container .fa", "css:finder"], - ["xpath=//div[@id='field13-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"] + ["css=#\\/reloadableMetadataResolverAttributes\\/maxRefreshDelay-container .btn", "css:finder"], + ["xpath=(//button[@type='button'])[3]", "xpath:attributes"], + ["xpath=//div[@id='/reloadableMetadataResolverAttributes/maxRefreshDelay-container']/div/div/button", "xpath:idRelative"], + ["xpath=//div[2]/sf-form-element/div/sf-widget-chooser/datalist-component/div/auto-complete/div/div/div/button", "xpath:position"] ], "value": "" }, { "id": "119a39c2-6d86-4d94-a093-6669e89e78e4", "comment": "", "command": "click", - "target": "xpath=//div[2]/sf-form-element/div/sf-widget-chooser/datalist-component/div/auto-complete/div/ul/li[3]", + "target": "id=/reloadableMetadataResolverAttributes/maxRefreshDelay__option--3", "targets": [ - ["id=field13__option--2", "id"], - ["css=#field13__option--2", "css:finder"], - ["xpath=//li[@id='field13__option--2']", "xpath:attributes"], - ["xpath=//ul[@id='field13__listbox']/li[3]", "xpath:idRelative"], - ["xpath=//div[2]/sf-form-element/div/sf-widget-chooser/datalist-component/div/auto-complete/div/ul/li[3]", "xpath:position"] + ["id=/reloadableMetadataResolverAttributes/maxRefreshDelay__option--3", "id"], + ["css=#\\/reloadableMetadataResolverAttributes\\/maxRefreshDelay__option--3", "css:finder"], + ["xpath=//li[@id='/reloadableMetadataResolverAttributes/maxRefreshDelay__option--3']", "xpath:attributes"], + ["xpath=//ul[@id='/reloadableMetadataResolverAttributes/maxRefreshDelay__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": "fa8357ce-5c99-483d-8170-bf9987aa81db", "comment": "", "command": "click", - "target": "xpath=//custom-string/div/input", + "target": "id=/reloadableMetadataResolverAttributes/refreshDelayFactor", "targets": [ - ["id=field14", "id"], + ["id=/reloadableMetadataResolverAttributes/refreshDelayFactor", "id"], ["name=field14", "name"], - ["css=#field14", "css:finder"], - ["xpath=//input[@id='field14']", "xpath:attributes"], + ["css=#\\/reloadableMetadataResolverAttributes\\/refreshDelayFactor", "css:finder"], + ["xpath=//input[@id='/reloadableMetadataResolverAttributes/refreshDelayFactor']", "xpath:attributes"], ["xpath=//custom-string/div/input", "xpath:position"] ], "value": "" @@ -263,7 +265,7 @@ "id": "415caf46-dca5-41be-9334-f01a0bf42af8", "comment": "", "command": "type", - "target": "xpath=//custom-string/div/input", + "target": "id=/reloadableMetadataResolverAttributes/refreshDelayFactor", "targets": [ ["id=field14", "id"], ["name=field14", "name"], @@ -297,18 +299,22 @@ "id": "745769b0-8422-4100-8ce5-5ec1b1a18c25", "comment": "", "command": "click", - "target": "css=.direction:nth-child(2)", + "target": "css=.save", "targets": [ - ["css=.direction:nth-child(2)", "css:finder"], - ["xpath=//li[3]/button/span[2]", "xpath:position"] + ["css=.save", "css:finder"], + ["xpath=//li[3]/button", "xpath:position"] ], "value": "" }, { "id": "3718c9f8-edb3-412a-9819-f3adc27f1226", "comment": "", "command": "waitForElementVisible", - "target": "css=.badge", - "targets": [], + "target": "css=tr > .text-right", + "targets": [ + ["css=tr > .text-right", "css:finder"], + ["xpath=//td[6]", "xpath:position"], + ["xpath=//td[contains(.,'Enabled')]", "xpath:innerText"] + ], "value": "10000" }, { "id": "44749988-e30f-4328-9f78-dc9eaafa891a",