Skip to content

Commit

Permalink
SHIBUI-1740
Browse files Browse the repository at this point in the history
Final version of 1740 tests. They all pass! Finally!
  • Loading branch information
Bill Smith committed Jul 29, 2021
1 parent 5b57ddb commit c5dc461
Showing 1 changed file with 63 additions and 9 deletions.
72 changes: 63 additions & 9 deletions backend/src/integration/resources/SHIBUI-1740-4.side
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
"id": "6932d7f8-1e1b-4c60-9a8b-09769eb17b62",
"name": "SHIBUI-1740-4",
"commands": [{
"id": "515af1b7-ed2c-4a89-8ac3-34446a0bc871",
"id": "916f36cc-eaee-4ab1-b14b-90caf6aa46cc",
"comment": "",
"command": "open",
"target": "/login",
"targets": [],
"value": ""
}, {
"id": "72231d87-3efa-4e65-af79-11b9e7dea105",
"id": "2fdfe733-4a6d-4189-bfe2-a588e6b95400",
"comment": "",
"command": "type",
"target": "id=username",
Expand All @@ -25,9 +25,9 @@
["xpath=//input[@id='username']", "xpath:attributes"],
["xpath=//input", "xpath:position"]
],
"value": "nonadmin"
"value": "admin"
}, {
"id": "84633f12-7439-42be-a9a0-081e4c6d563c",
"id": "2ae3301d-5ba7-4eef-b765-64b3c7b61924",
"comment": "",
"command": "type",
"target": "id=password",
Expand All @@ -38,9 +38,9 @@
["xpath=//input[@id='password']", "xpath:attributes"],
["xpath=//p[2]/input", "xpath:position"]
],
"value": "nonadminpass"
"value": "adminpass"
}, {
"id": "8168f80c-3ca7-45ec-9a9a-9cbfe320480e",
"id": "4d329c94-2200-44d2-8861-6f3b9e739fd7",
"comment": "",
"command": "sendKeys",
"target": "id=password",
Expand All @@ -53,26 +53,80 @@
],
"value": "${KEY_ENTER}"
}, {
"id": "d54e0170-3343-47d5-8541-b613372ef431",
"id": "76210fb2-ebed-430b-bc73-7c114fef2c34",
"comment": "",
"command": "open",
"target": "/api/heheheheheheheWipeout",
"targets": [],
"value": ""
}, {
"id": "74ecfbbb-07d0-420f-abb9-895b68015645",
"id": "2efd32dd-9894-4b6c-8730-5337c11b512a",
"comment": "",
"command": "assertText",
"target": "css=body",
"targets": [],
"value": "yes, you did it"
}, {
"id": "299da7ff-9249-4d12-82f8-492eb1739d2b",
"id": "6ba7a536-1307-4321-a4f4-009d3715afa0",
"comment": "",
"command": "open",
"target": "/",
"targets": [],
"value": ""
}, {
"id": "15f111a8-69c3-48a1-921e-6f73d2bb5722",
"comment": "",
"command": "click",
"target": "linkText=Logout",
"targets": [
["linkText=Logout", "linkText"],
["css=.nav-link:nth-child(3)", "css:finder"],
["xpath=//a[contains(text(),'Logout')]", "xpath:link"],
["xpath=//div[@id='basic-navbar-nav']/div/a[2]", "xpath:idRelative"],
["xpath=//a[contains(@href, '/logout')]", "xpath:href"],
["xpath=//a[2]", "xpath:position"],
["xpath=//a[contains(.,'Logout')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "72231d87-3efa-4e65-af79-11b9e7dea105",
"comment": "",
"command": "type",
"target": "id=username",
"targets": [
["id=username", "id"],
["name=username", "name"],
["css=#username", "css:finder"],
["xpath=//input[@id='username']", "xpath:attributes"],
["xpath=//input", "xpath:position"]
],
"value": "nonadmin"
}, {
"id": "84633f12-7439-42be-a9a0-081e4c6d563c",
"comment": "",
"command": "type",
"target": "id=password",
"targets": [
["id=password", "id"],
["name=password", "name"],
["css=#password", "css:finder"],
["xpath=//input[@id='password']", "xpath:attributes"],
["xpath=//p[2]/input", "xpath:position"]
],
"value": "nonadminpass"
}, {
"id": "8168f80c-3ca7-45ec-9a9a-9cbfe320480e",
"comment": "",
"command": "sendKeys",
"target": "id=password",
"targets": [
["id=password", "id"],
["name=password", "name"],
["css=#password", "css:finder"],
["xpath=//input[@id='password']", "xpath:attributes"],
["xpath=//p[2]/input", "xpath:position"]
],
"value": "${KEY_ENTER}"
}, {
"id": "6fb9efa3-c73e-4d27-82e6-28b25bf4fb60",
"comment": "",
Expand Down

0 comments on commit c5dc461

Please sign in to comment.