Skip to content

Commit

Permalink
[NOJIRA]
Browse files Browse the repository at this point in the history
Renamed duplicate SubmitSource, replacing original. Updated test runner.
Everything passes now!
  • Loading branch information
Bill Smith committed Mar 8, 2019
1 parent ab61eba commit 84c0af3
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1,273 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ class SeleniumSIDETest extends Specification {
@Value('${local.server.port}')
int randomPort

// @Ignore
@Ignore
def "Selenium: just run one"() {
setup:
def file = "/CreateMetadataSourceFromCopy.side"
def file = "/SHIBUI-1058_DelegatedAdmin_SubmitSource.side"
def main = new Main()
def config = new DefaultConfig([] as String[]).with {
if (System.properties.getProperty('webdriver.driver')) {
Expand Down Expand Up @@ -79,7 +79,7 @@ class SeleniumSIDETest extends Specification {
'Delete REGEX Filter' | '/DeleteREGEXFilter.side'
'Delete Incomplete Source' | '/DeleteIncompleteSource.side'
'Admin Login' | '/SHIBUI-1031_AdminLogin.side'
// 'Delegated Admin: SubmitSource' | '/SHIBUI-1058_DelegatedAdmin_SubmitSource.side' // failing, Selenium not finding the right elements in the right order
'Delegated Admin: SubmitSource' | '/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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1157,12 +1157,12 @@
"id": "38b54b65-e3cb-4711-9914-11947ff491e6",
"comment": "",
"command": "assertText",
"target": "css=.row:nth-child(1) > .col:nth-child(2)",
"target": "css=.col-8 > div: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"]
["css=.col-8 > div:nth-child(2)", "css:finder"],
["xpath=//div/div/div[2]", "xpath:position"]
],
"value": "DelegatedAdmin Edited"
"value": "DelegatedAdmin Edited DelegatedAdmin"
}, {
"id": "169d0a06-e822-476a-b3b8-6d6af0c4fe36",
"comment": "",
Expand All @@ -1177,8 +1177,19 @@
}, {
"id": "f08049e7-7b4e-452c-8091-a7d67e0e1b81",
"comment": "",
"command": "waitForElementPresent",
"target": "css=.text-capitalize",
"targets": [
["css=.text-capitalize", "css:finder"],
["xpath=//div[2]/button", "xpath:position"],
["xpath=//button[contains(.,'Enable')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "f08049e7-7b4e-452c-8091-a7d67e0e1b82",
"comment": "",
"command": "click",
"target": "xpath=//button[contains(.,'Enable')]",
"target": "css=.text-capitalize",
"targets": [
["css=.text-capitalize", "css:finder"],
["xpath=//div[2]/button", "xpath:position"],
Expand Down Expand Up @@ -1210,9 +1221,22 @@
"id": "0383aa75-506c-4309-b074-b28e3ada6c3f",
"comment": "",
"command": "waitForElementPresent",
"target": "css=.row:nth-child(1) > .col:nth-child(2)",
"targets": [],
"target": "css=.col-8 > div:nth-child(2)",
"targets": [
["css=.col-8 > div:nth-child(2)", "css:finder"],
["xpath=//div/div/div/div/div[2]", "xpath:position"]
],
"value": "3000"
}, {
"id": "5341ba03-b351-4a8c-9d8a-50130868f7e7",
"comment": "",
"command": "click",
"target": "css=.text-primary",
"targets": [
["css=.text-primary", "css:finder"],
["xpath=//div/i", "xpath:position"]
],
"value": ""
}, {
"id": "937fd019-c985-47c7-9416-097cd1c0c54d",
"comment": "",
Expand All @@ -1235,4 +1259,4 @@
}],
"urls": ["http://localhost:10101/"],
"plugins": []
}
}
Loading

0 comments on commit 84c0af3

Please sign in to comment.