codeceptjs 3.7.6 → 3.7.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/codecept.js CHANGED
@@ -184,8 +184,6 @@ class Codecept {
184
184
  }
185
185
  }
186
186
 
187
- this.testFiles.sort()
188
-
189
187
  if (this.opts.shuffle) {
190
188
  this.testFiles = this.shuffle(this.testFiles)
191
189
  }
@@ -252,6 +250,9 @@ class Codecept {
252
250
  async run(test) {
253
251
  await container.started()
254
252
 
253
+ // Sort test files alphabetically for consistent execution order
254
+ this.testFiles.sort()
255
+
255
256
  return new Promise((resolve, reject) => {
256
257
  const mocha = container.mocha()
257
258
  mocha.files = this.testFiles
@@ -5,22 +5,26 @@ const Codecept = require('../codecept')
5
5
  const output = require('../output')
6
6
  const { execSync } = require('child_process')
7
7
 
8
+ // Unified regex for both formats (excludes chromium-headless-shell):
9
+ // - 1.58+: "Firefox 146.0.1 (playwright firefox v1509)"
10
+ // - 1.57: "browser: firefox version 144.0.2"
11
+ const playwrightBrowserRegex = /(?:([\d.]+)\s+\(playwright\s+(chromium|firefox|webkit)\s)|(?:browser:\s*(chromium|firefox|webkit)\s+version\s+([\d.]+))/gi
12
+
13
+ function parsePlaywrightBrowsers(output) {
14
+ const versions = []
15
+ const matches = [...output.matchAll(playwrightBrowserRegex)]
16
+ matches.forEach(match => {
17
+ const browser = match[2] || match[3]
18
+ const version = match[1] || match[4]
19
+ versions.push(`${browser}: ${version}`)
20
+ })
21
+ return versions.join(', ')
22
+ }
23
+
8
24
  async function getPlaywrightBrowsers() {
9
25
  try {
10
- const regex = /(chromium|firefox|webkit)\s+version\s+([\d.]+)/gi
11
- let versions = []
12
-
13
26
  const info = execSync('npx playwright install --dry-run').toString().trim()
14
-
15
- const matches = [...info.matchAll(regex)]
16
-
17
- matches.forEach(match => {
18
- const browser = match[1]
19
- const version = match[2]
20
- versions.push(`${browser}: ${version}`)
21
- })
22
-
23
- return versions.join(', ')
27
+ return parsePlaywrightBrowsers(info)
24
28
  } catch (err) {
25
29
  return 'Playwright not installed'
26
30
  }
@@ -73,6 +77,8 @@ module.exports = async function (path) {
73
77
  output.print('***************************************')
74
78
  }
75
79
 
80
+ module.exports.parsePlaywrightBrowsers = parsePlaywrightBrowsers
81
+
76
82
  module.exports.getMachineInfo = async () => {
77
83
  const info = {
78
84
  nodeInfo: await envinfo.helpers.getNodeInfo(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeceptjs",
3
- "version": "3.7.6",
3
+ "version": "3.7.7",
4
4
  "description": "Supercharged End 2 End Testing Framework for NodeJS",
5
5
  "keywords": [
6
6
  "acceptance",
@@ -85,13 +85,13 @@
85
85
  "dependencies": {
86
86
  "@codeceptjs/configure": "1.0.6",
87
87
  "@codeceptjs/helper": "2.0.4",
88
- "@cucumber/cucumber-expressions": "18",
89
- "@cucumber/gherkin": "35.1.0",
90
- "@cucumber/messages": "29.0.1",
88
+ "@cucumber/cucumber-expressions": "19",
89
+ "@cucumber/gherkin": "39.0.0",
90
+ "@cucumber/messages": "32.2.0",
91
91
  "@xmldom/xmldom": "0.9.8",
92
- "acorn": "8.15.0",
92
+ "acorn": "8.16.0",
93
93
  "arrify": "3.0.0",
94
- "axios": "1.13.2",
94
+ "axios": "1.13.6",
95
95
  "chalk": "4.1.2",
96
96
  "cheerio": "^1.0.0",
97
97
  "chokidar": "^4.0.3",
@@ -99,11 +99,11 @@
99
99
  "cross-spawn": "7.0.6",
100
100
  "css-to-xpath": "0.1.0",
101
101
  "csstoxpath": "1.6.0",
102
- "envinfo": "7.15.0",
102
+ "envinfo": "7.21.0",
103
103
  "escape-string-regexp": "4.0.0",
104
104
  "figures": "3.2.0",
105
105
  "fn-args": "4.0.0",
106
- "fs-extra": "11.3.3",
106
+ "fs-extra": "11.3.4",
107
107
  "fuse.js": "^7.0.0",
108
108
  "glob": ">=9.0.0 <12",
109
109
  "html-minifier-terser": "7.2.0",
@@ -133,14 +133,14 @@
133
133
  "@apollo/server": "^5",
134
134
  "@codeceptjs/expect-helper": "^1.0.2",
135
135
  "@codeceptjs/mock-request": "0.3.1",
136
- "@eslint/eslintrc": "3.3.3",
137
- "@eslint/js": "9.39.2",
136
+ "@eslint/eslintrc": "3.3.5",
137
+ "@eslint/js": "9.39.3",
138
138
  "@faker-js/faker": "9.8.0",
139
139
  "@pollyjs/adapter-puppeteer": "6.0.6",
140
140
  "@pollyjs/core": "6.0.6",
141
141
  "@types/chai": "5.2.3",
142
142
  "@types/inquirer": "9.0.9",
143
- "@types/node": "^24.6.2",
143
+ "@types/node": "^25.5.0",
144
144
  "@wdio/sauce-service": "9.12.5",
145
145
  "@wdio/selenium-standalone-service": "8.15.0",
146
146
  "@wdio/utils": "9.19.2",
@@ -149,14 +149,14 @@
149
149
  "chai-as-promised": "7.1.2",
150
150
  "chai-subset": "1.6.0",
151
151
  "documentation": "14.0.3",
152
- "electron": "38.2.0",
152
+ "electron": "41.0.3",
153
153
  "eslint": "^9.36.0",
154
154
  "eslint-plugin-import": "2.32.0",
155
155
  "eslint-plugin-mocha": "11.2.0",
156
- "expect": "30.2.0",
156
+ "expect": "30.3.0",
157
157
  "express": "^5.1.0",
158
- "globals": "16.4.0",
159
- "graphql": "16.12.0",
158
+ "globals": "17.4.0",
159
+ "graphql": "16.13.1",
160
160
  "graphql-tag": "^2.12.6",
161
161
  "husky": "9.1.7",
162
162
  "inquirer-test": "2.0.1",
@@ -170,16 +170,16 @@
170
170
  "qrcode-terminal": "0.12.0",
171
171
  "rosie": "2.1.1",
172
172
  "runok": "0.9.3",
173
- "semver": "7.7.3",
174
- "sinon": "21.0.1",
173
+ "semver": "7.7.4",
174
+ "sinon": "21.0.3",
175
175
  "sinon-chai": "3.7.0",
176
- "testcafe": "3.7.3",
176
+ "testcafe": "3.7.4",
177
177
  "ts-morph": "26.0.0",
178
178
  "ts-node": "10.9.2",
179
179
  "tsd": "^0.33.0",
180
180
  "tsd-jsdoc": "2.5.0",
181
- "typedoc": "0.28.16",
182
- "typedoc-plugin-markdown": "4.9.0",
181
+ "typedoc": "0.28.17",
182
+ "typedoc-plugin-markdown": "4.10.0",
183
183
  "typescript": "5.8.3",
184
184
  "wdio-docker-service": "3.2.1",
185
185
  "webdriverio": "9.12.5",
@@ -199,6 +199,9 @@
199
199
  },
200
200
  "overrides": {
201
201
  "tmp": "0.2.5",
202
- "js-yaml": "^4.1.1"
202
+ "js-yaml": "^4.1.1",
203
+ "serialize-javascript": "7.0.3",
204
+ "axios": "1.13.6",
205
+ "fast-xml-parser": "^5.5.6"
203
206
  }
204
- }
207
+ }