Skip to content

Commit 08ae361

Browse files
author
Dmitriy
committed
chore(config): update Creevey configs with explicit webdriver imports and Selenium Grid 4.28.0
1 parent cdf2af6 commit 08ae361

66 files changed

Lines changed: 1103 additions & 53 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/selenium-template.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,28 @@ jobs:
2525
runs-on: ubuntu-latest
2626
services:
2727
selenium-hub:
28-
image: selenium/hub:4.18.1-20240220
28+
image: selenium/hub:4.28.0-20250120
2929
ports:
3030
- 4444:4444
31+
- 4442:4442
32+
- 4443:4443
3133
options: >-
3234
--health-cmd "curl -f http://localhost:4444/wd/hub/status || exit 1"
3335
--health-interval 10s
3436
--health-timeout 5s
3537
--health-retries 5
3638
selenium-node-chrome:
37-
image: selenium/node-chrome:4.18.1-20240220
39+
image: selenium/node-chrome:4.28.0-20250120
3840
env:
3941
SE_EVENT_BUS_HOST: selenium-hub
4042
SE_EVENT_BUS_PUBLISH_PORT: 4442
4143
SE_EVENT_BUS_SUBSCRIBE_PORT: 4443
42-
HUB_HOST: selenium-hub
43-
HUB_PORT: 4444
44+
SE_NODE_MAX_SESSIONS: 4
45+
SE_NODE_SESSION_TIMEOUT: 300
46+
SCREEN_WIDTH: 1920
47+
SCREEN_HEIGHT: 1080
4448
options: >-
49+
--shm-size=2gb
4550
--health-cmd "curl -f http://localhost:5555/status || exit 1"
4651
--health-interval 10s
4752
--health-timeout 5s

cjs-vite-sb8/creevey.config.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
import { CreeveyConfig } from "creevey";
21
import path from "path";
32
import { fileURLToPath } from "url";
3+
import { SeleniumWebdriver } from "creevey/selenium";
44

55
const __dirname = path.dirname(fileURLToPath(import.meta.url));
66

7-
/** @type {CreeveyConfig} */
7+
/** @type {import('creevey').CreeveyConfig} */
88
const config = {
99
testsDir: path.join(__dirname, "stories"),
10+
webdriver: SeleniumWebdriver,
1011
gridUrl: "http://localhost:4444/wd/hub",
1112
browsers: {
1213
chrome: {
1.95 KB
1.06 KB
1.17 KB
1.45 KB

cjs-webpack-sb8/creevey.config.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
import { CreeveyConfig } from "creevey";
21
import path from "path";
32
import { fileURLToPath } from "url";
3+
import { SeleniumWebdriver } from "creevey/selenium";
44

55
const __dirname = path.dirname(fileURLToPath(import.meta.url));
66

7-
/** @type {CreeveyConfig} */
7+
/** @type {import('creevey').CreeveyConfig} */
88
const config = {
99
testsDir: path.join(__dirname, "stories"),
10+
webdriver: SeleniumWebdriver,
1011
gridUrl: "http://localhost:4444/wd/hub",
1112
browsers: {
1213
chrome: {
1.95 KB
1.06 KB
1.17 KB

0 commit comments

Comments
 (0)