Skip to content

Commit 2bf4dd1

Browse files
committed
getting tests passing
1 parent bc18c88 commit 2bf4dd1

File tree

9 files changed

+20
-16
lines changed

9 files changed

+20
-16
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"test:e2e": "jest --testMatch \"**/packages/**/__tests__/**/*.e2e.js\"",
1717
"lint": "pnpm run lint:scripts",
1818
"lint:scripts": "eslint --ignore-pattern node_modules --ignore-pattern third-party --ignore-pattern dist --ignore-pattern build --ignore-pattern json --ext .ts,.tsx --ext .js packages/",
19-
"test:side-runner": "npm-run-bg 'http-server ./tests/static::Available on::5000' 'node ./packages/side-runner/dist/bin.js -t 15000 ./tests/examples/*.side'",
19+
"test:side-runner": "npm-run-bg 'http-server ./tests/static::Available on::8080' 'node ./packages/side-runner/dist/bin.js -t 15000 ./tests/examples/*.side'",
20+
"test:side-runner:ci": "npm-run-bg 'http-server ./tests/static::Available on::8080' 'node ./packages/side-runner/dist/bin.js -c \"goog:chromeOptions.args=[headless,no-sandbox] browserName=chrome\" -t 15000 ./tests/examples/*.side'",
2021
"typecheck": "tsc --noEmit --composite false",
2122
"watch": "run-p watch:ts watch:webpack",
2223
"watch:webpack": "pnpm run --stream --filter @seleniumhq/selenium-ide watch",

packages/side-example-suite/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@
22

33
This contains a project with some nice boilerplate around code export and building
44
custom plugins with types and such.
5+
6+
If you don't care about modifying the export format you're starting from, you can
7+
just import it directly in the bin command:

tests/examples/execute-script.side

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"timeout": 300,
7676
"tests": ["d4059a41-89a5-4266-9cd6-ce6cffe0a683", "c065304c-a1d4-4a78-a8da-2e4c3e71adc5"]
7777
}],
78-
"urls": ["https://en.wikipedia.org/", "http://localhost:5000/"],
78+
"urls": ["https://en.wikipedia.org/", "http://localhost:8080/"],
7979
"plugins": [],
8080
"version": "1.0"
8181
}

tests/examples/mouse-events.side

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,6 @@
122122
"timeout": 300,
123123
"tests": ["13f262bf-d342-4d03-9c5d-3d0b019ae854"]
124124
}],
125-
"urls": ["http://localhost:5000/"],
125+
"urls": ["http://localhost:8080/"],
126126
"plugins": []
127127
}

tests/examples/nginx-examples.side.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "b4675761-fdf4-4799-a7b0-989dd0f481f0",
33
"version": "1.1",
44
"name": "nginx-examples",
5-
"url": "http://nginx/",
5+
"url": "http://localhost:8080/",
66
"tests": [{
77
"id": "d7a82bde-3223-4dd7-8aa1-7dc5c0589f35",
88
"name": "input type text",
@@ -596,6 +596,6 @@
596596
"timeout": 300,
597597
"tests": ["c720eabf-0c0a-4f6e-8aa6-9daca298d726", "4631cfbd-700c-42ea-add5-12e5a33d845e", "0d50f757-df05-4129-ab8b-ff52084c704d"]
598598
}],
599-
"urls": ["https://en.wikipedia.org/", "http://localhost:5000/", "http://nginx/", "http://localhost:8080/"],
599+
"urls": ["https://en.wikipedia.org/", "http://localhost:8080/", "http://nginx/", "http://localhost:8080/"],
600600
"plugins": []
601601
}

tests/examples/plugin.side

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
"id": "fa9bae47-4a7e-4e92-9e02-e6863c13aaf1",
120120
"comment": "",
121121
"command": "assertTitle",
122-
"target": "Selenium IDE · Open source record and playback test automation for the web",
122+
"target": "Selenium IDE Tutorial : Definition, Features, Benefits | BrowserStack",
123123
"targets": [],
124124
"value": ""
125125
}
@@ -142,6 +142,6 @@
142142
"https://www.google.com/"
143143
],
144144
"plugins": [
145-
"../../packages/side-plugin-example/dist/index.js"
145+
"../../packages/side-example-suite/dist/plugins/custom-click/index.js"
146146
]
147147
}

tests/examples/simple-parent.side

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,20 @@
5151
},
5252
{
5353
"command": "assertElementPresent",
54-
"target": "id=hplogo",
54+
"target": "css=.lnXdpd",
5555
"value": "",
5656
"id": "c3a7876e-3202-4cf2-8cbb-f2561d14fca3",
5757
"fallbackTargets": [
5858
[
59-
"id=hplogo",
60-
"id"
59+
"css=[data-iml=\"1681129024592\"]",
60+
"css:data-attr"
6161
],
6262
[
63-
"css=#hplogo",
63+
"css=.lnXdpd",
6464
"css:finder"
6565
],
6666
[
67-
"xpath=(//img[@alt='Seasonal Holidays 2022'])[1]",
67+
"xpath=(//img[@alt='Google'])[1]",
6868
"xpath:img"
6969
],
7070
[

tests/examples/store-examples.side

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
}, {
4848
"id": "3ca83da5-71ac-44cd-91b4-0dff477a2969",
4949
"comment": "",
50-
"command": "storeXpathCount",
50+
"command": "storeElementCount",
5151
"target": "xpath=//span",
5252
"targets": [],
5353
"value": "span_count"
@@ -68,7 +68,7 @@
6868
}, {
6969
"id": "fe8b75e9-f193-4341-9cda-4ee743559acd",
7070
"comment": "",
71-
"command": "storeXpathCount",
71+
"command": "storeElementCount",
7272
"target": "xpath=//div[contains(@class, \"testclass\")]",
7373
"targets": [],
7474
"value": "div_count"
@@ -96,7 +96,7 @@
9696
"timeout": 300,
9797
"tests": ["1f270ca5-5a7c-4067-8f67-b4fc0dcea00b", "e68f3128-4bea-4a35-999f-31466d7b4340"]
9898
}],
99-
"urls": ["https://en.wikipedia.org/", "http://localhost:5000/"],
99+
"urls": ["https://en.wikipedia.org/", "http://localhost:8080/"],
100100
"plugins": [],
101101
"version": "1.0"
102102
}

tests/examples/text-comparison.side

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"timeout": 300,
5151
"tests": ["1f270ca5-5a7c-4067-8f67-b4fc0dcea00b"]
5252
}],
53-
"urls": ["https://en.wikipedia.org/", "http://localhost:5000/"],
53+
"urls": ["https://en.wikipedia.org/", "http://localhost:8080/"],
5454
"plugins": [],
5555
"version": "1.0"
5656
}

0 commit comments

Comments
 (0)