@wdio/cli 9.0.3 → 9.0.5

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.
@@ -130,7 +130,7 @@ export declare const SUPPORTED_BROWSER_RUNNER_PRESETS: ({
130
130
  value: string;
131
131
  } | {
132
132
  name: string;
133
- value: boolean;
133
+ value: null;
134
134
  })[];
135
135
  export declare const TESTING_LIBRARY_PACKAGES: Record<string, string>;
136
136
  export declare enum BackendChoice {
@@ -189,7 +189,7 @@ export declare const QUESTIONNAIRE: ({
189
189
  value: string;
190
190
  } | {
191
191
  name: string;
192
- value: boolean;
192
+ value: null;
193
193
  })[];
194
194
  when: typeof isBrowserRunner;
195
195
  default?: undefined;
package/build/index.js CHANGED
@@ -87,7 +87,7 @@ import { HOOK_DEFINITION } from "@wdio/utils";
87
87
  // package.json
88
88
  var package_default = {
89
89
  name: "@wdio/cli",
90
- version: "9.0.1",
90
+ version: "9.0.4",
91
91
  description: "WebdriverIO testrunner command line interface",
92
92
  author: "Christian Bromann <mail@bromann.dev>",
93
93
  homepage: "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-cli",
@@ -100,7 +100,7 @@ var package_default = {
100
100
  },
101
101
  repository: {
102
102
  type: "git",
103
- url: "git://github.com/webdriverio/webdriverio.git",
103
+ url: "git+https://github.com/webdriverio/webdriverio.git",
104
104
  directory: "packages/wdio-cli"
105
105
  },
106
106
  keywords: [
@@ -304,7 +304,7 @@ var SUPPORTED_BROWSER_RUNNER_PRESETS = [
304
304
  { name: "StencilJS (https://stenciljs.com/)", value: "$--$stencil" },
305
305
  { name: "React (https://reactjs.org/)", value: "@vitejs/plugin-react$--$react" },
306
306
  { name: "Preact (https://preactjs.com/)", value: "@preact/preset-vite$--$preact" },
307
- { name: "Other", value: false }
307
+ { name: "Other", value: null }
308
308
  ];
309
309
  var TESTING_LIBRARY_PACKAGES = {
310
310
  react: "@testing-library/react",
@@ -0,0 +1,12 @@
1
+ Feature: The Internet Guinea Pig Website
2
+
3
+ Scenario Outline: As a user, I can log into the secure area
4
+
5
+ Given I am on the login page
6
+ When I login with <username> and <password>
7
+ Then I should see a flash message saying <message>
8
+
9
+ Examples:
10
+ | username | password | message |
11
+ | tomsmith | SuperSecretPassword! | You logged into a secure area! |
12
+ | foobar | barfoo | Your username is invalid! |
@@ -6,7 +6,7 @@
6
6
  : `const { expect, $ } = require('@wdio/globals')` %>
7
7
  <%
8
8
  /**
9
- * step definition without page objects
9
+ * step definition with page objects
10
10
  */
11
11
  if (answers.usePageObjects) { %>
12
12
  <%- answers.isUsingTypeScript || answers.esmSupport
@@ -30,12 +30,12 @@ When(/^I login with (\w+) and (.+)$/, async (username, password) => {
30
30
 
31
31
  Then(/^I should see a flash message saying (.*)$/, async (message) => {
32
32
  await expect(SecurePage.flashAlert).toBeExisting();
33
- await expect(SecurePage.flashAlert).toHaveTextContaining(message);
33
+ await expect(SecurePage.flashAlert).toHaveText(expect.stringContaining(message));
34
34
  });
35
35
  <% } else {
36
36
 
37
37
  /**
38
- * step definition with page objects
38
+ * step definition without page objects
39
39
  */
40
40
  %>
41
41
  Given(/^I am on the (\w+) page$/, async (page) => {
@@ -50,6 +50,6 @@ When(/^I login with (\w+) and (.+)$/, async (username, password) => {
50
50
 
51
51
  Then(/^I should see a flash message saying (.*)$/, async (message) => {
52
52
  await expect($('#flash')).toBeExisting();
53
- await expect($('#flash')).toHaveTextContaining(message);
53
+ await expect($('#flash')).toHaveText(expect.stringContaining(message));
54
54
  });
55
55
  <% } %>
@@ -14,8 +14,8 @@ describe('My Login application', () => {
14
14
 
15
15
  await LoginPage.login('tomsmith', 'SuperSecretPassword!')
16
16
  await expect(SecurePage.flashAlert).toBeExisting()
17
- await expect(SecurePage.flashAlert).toHaveTextContaining(
18
- 'You logged into a secure area!')<%-
17
+ await expect(SecurePage.flashAlert).toHaveText(
18
+ expect.stringContaining('You logged into a secure area!'))<%-
19
19
  answers.includeVisualTesting ? `
20
20
  await expect(SecurePage.flashAlert).toMatchElementSnapshot('flashAlert')` : '' %>
21
21
  })
@@ -11,8 +11,8 @@ describe('My Login application', () => {
11
11
  await $('button[type="submit"]').click()
12
12
 
13
13
  await expect($('#flash')).toBeExisting()
14
- await expect($('#flash')).toHaveTextContaining(
15
- 'You logged into a secure area!')<%-
14
+ await expect($('#flash')).toHaveText(
15
+ expect.stringContaining('You logged into a secure area!'))<%-
16
16
  answers.includeVisualTesting ? `
17
17
  await expect($('#flash')).toMatchElementSnapshot('flashAlert')` : '' %>
18
18
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/cli",
3
- "version": "9.0.3",
3
+ "version": "9.0.5",
4
4
  "description": "WebdriverIO testrunner command line interface",
5
5
  "author": "Christian Bromann <mail@bromann.dev>",
6
6
  "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-cli",
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "repository": {
15
15
  "type": "git",
16
- "url": "git://github.com/webdriverio/webdriverio.git",
16
+ "url": "git+https://github.com/webdriverio/webdriverio.git",
17
17
  "directory": "packages/wdio-cli"
18
18
  },
19
19
  "keywords": [
@@ -41,12 +41,12 @@
41
41
  "dependencies": {
42
42
  "@types/node": "^20.1.1",
43
43
  "@vitest/snapshot": "^1.2.1",
44
- "@wdio/config": "9.0.0",
45
- "@wdio/globals": "9.0.1",
46
- "@wdio/logger": "9.0.0",
47
- "@wdio/protocols": "9.0.0",
48
- "@wdio/types": "9.0.0",
49
- "@wdio/utils": "9.0.0",
44
+ "@wdio/config": "9.0.5",
45
+ "@wdio/globals": "9.0.5",
46
+ "@wdio/logger": "9.0.4",
47
+ "@wdio/protocols": "9.0.4",
48
+ "@wdio/types": "9.0.4",
49
+ "@wdio/utils": "9.0.5",
50
50
  "async-exit-hook": "^2.0.1",
51
51
  "chalk": "^5.2.0",
52
52
  "chokidar": "^3.5.3",
@@ -62,7 +62,7 @@
62
62
  "read-pkg-up": "^10.0.0",
63
63
  "recursive-readdir": "^2.2.3",
64
64
  "tsx": "^4.7.2",
65
- "webdriverio": "9.0.1",
65
+ "webdriverio": "9.0.5",
66
66
  "yargs": "^17.7.2"
67
67
  },
68
68
  "devDependencies": {
@@ -78,5 +78,5 @@
78
78
  "publishConfig": {
79
79
  "access": "public"
80
80
  },
81
- "gitHead": "e59369c4d66ad87d37e5df5a4770a3438ddf9eb8"
81
+ "gitHead": "5ec4340e8caa435212cf4aede2c12dcc662459a4"
82
82
  }