Skip to content

Commit

Permalink
Merge branch 'main' into DEVX-3037/anchors
Browse files Browse the repository at this point in the history
  • Loading branch information
alexplischke authored Sep 10, 2024
2 parents d85895e + 27ff36d commit 6500a41
Show file tree
Hide file tree
Showing 14 changed files with 165 additions and 18 deletions.
31 changes: 31 additions & 0 deletions docs/web-apps/automated-testing/_partials/_advanced-nodejs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
## Using Node.js Runtime on Sauce Cloud

Since `saucectl` v0.185.0, you can specify a Node.js runtime version on Sauce Cloud.

Only supported test runners can use configurable Node.js versions. Check the following pages for supported framework versions.

- [Cypress](../cypress.md#supported-testing-platforms)
- [Playwright](../playwright.md#supported-testing-platforms)
- [Playwright-Cucumber](../playwright.md#supported-testing-platforms)
- [TestCafe](../testcafe.md#supported-testing-platforms)

### Supported Node.js Versions

Sauce Labs supports the following Node.js versions:

<table id="table-nodejs">
<tr>
<th>Node.js Version</th>
<th>Alias</th>
<th>End of Life</th>
<th>Removal Date</th>
</tr>
<tbody>
<tr>
<td>20.14.0</td>
<td>iron, lts</td>
<td>October 22, 2024</td>
<td>April 30, 2026</td>
</tr>
</tbody>
</table>
8 changes: 4 additions & 4 deletions docs/web-apps/automated-testing/cdp-bidi/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ async function setCookie() {
</TabItem>
</Tabs>

See also [alternative implementations](https://www.selenium.dev/documentation/webdriver/bidirectional/chrome_devtools/cdp_api/#set-cookie)
See also [alternative implementations](https://www.selenium.dev/documentation/webdriver/bidi/cdp/network/#setting-cookies)

### Basic Auth
Basic Auth allows you to test websites that have basic access authentication implemented.
Expand Down Expand Up @@ -145,7 +145,7 @@ async function myTest() {
</TabItem>
</Tabs>

See also [alternative implementations](https://www.selenium.dev/documentation/webdriver/bidirectional/chrome_devtools/cdp_api/#basic-authentication)
See also [alternative implementations](https://www.selenium.dev/documentation/webdriver/bidi/cdp/network/#basic-authentication)


## BiDi API
Expand Down Expand Up @@ -199,7 +199,7 @@ async function captureConsoleLogs() {
</TabItem>
</Tabs>

See also [alternative implementations](https://www.selenium.dev/documentation/webdriver/bidirectional/chrome_devtools/bidi_api/#console-logs-and-errors)
See also [alternative implementations](https://www.selenium.dev/documentation/webdriver/bidi/cdp/logging/#console-logs)

### Network Interception
Network events can be intercepted for both requests and responses in order to consume or transform them.
Expand Down Expand Up @@ -274,4 +274,4 @@ async function captureContentTypes() {
</TabItem>
</Tabs>

See also [alternative implementations](https://www.selenium.dev/documentation/webdriver/bidirectional/chrome_devtools/bidi_api/#response-information) or [WebdriverIO reference on CDP](https://webdriver.io/docs/devtools-service/#chrome-devtools-access)
See also [alternative implementations](https://www.selenium.dev/documentation/webdriver/bidi/cdp/network/#network-interception) or [WebdriverIO reference on CDP](https://webdriver.io/docs/devtools-service/#chrome-devtools-access)
2 changes: 1 addition & 1 deletion docs/web-apps/automated-testing/cdp.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Selenium has stated in their reference that they will eventually move away from

## Enabling CDP / BiDi

In order to make use of the CDP / BiDi functionality, you have three possibilities:
In order to make use of the CDP / BiDi functionality, you have two possibilities:

### 1. Using Selenium

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ import TabItem from '@theme/TabItem';
import useBaseUrl from '@docusaurus/useBaseUrl';
import Advanced, {toc as AdvancedTOC} from '../\_partials/\_advanced.md';
import AdvancedPlaywrightCucumber, {toc as AdvancedPlaywrightCucumberTOC} from '../\_partials/\_advanced-playwright-cucumber.md';
import AdvancedNodejs, {toc as AdvancedNodejsTOC} from '../\_partials/\_advanced-nodejs.md';

<AdvancedNodejs />
<AdvancedPlaywrightCucumber />
<Advanced />

<!-- Using partials breaks table of contents. Using this workaround to get it working again. -->

export const toc = [...AdvancedPlaywrightCucumberTOC, ...AdvancedTOC];
export const toc = [...AdvancedNodejsTOC, ...AdvancedPlaywrightCucumberTOC, ...AdvancedTOC];
19 changes: 19 additions & 0 deletions docs/web-apps/automated-testing/cucumberjs-playwright/yaml.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,25 @@ kind: playwright-cucumberjs

---

## `nodeVersion`

<p><small>| OPTIONAL | STRING |</small></p>

Specifies the Node.js version for Sauce Cloud, supporting SemVer notation and aliases. For more details, refer to the [Advanced Configuration Page](./advanced.md#using-nodejs-runtime-on-sauce-cloud).

Examples: `v20`, `v20.14.0`, `v20.14`, `iron`, `lts`.

:::note
This feature is available in `saucectl` version v0.185.0+ and supported test runners. For details on supported test runners, see [Supported Testing Platforms](../playwright.md#supported-testing-platforms).

:::

```yaml
nodeVersion: v20
```

---

## `showConsoleLog`

<p><small>| OPTIONAL | BOOLEAN |</small></p>
Expand Down
18 changes: 15 additions & 3 deletions docs/web-apps/automated-testing/cypress.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,16 @@ Sauce Labs supports the following test configurations for Cypress:
<tr>
<th>Cypress Version</th>
<th>Node.js Version</th>
<th>Supported Platforms</th>
<th>Supported Browsers</th>
<th>End of Life</th>
<th width="10%">Supports Configurable Node.js</th>
<th width="20%">Supported Platforms</th>
<th width="30%">Supported Browsers</th>
<th width="30%">End of Life</th>
</tr>
<tbody>
<tr>
<td rowspan='2'>13.13.3</td>
<td rowspan='2'>20</td>
<td rowspan='2'>✅</td>
<td><b>macOS:</b> 11.00, 12, 13</td>
<td rowspan='2'>Chrome, Firefox, Microsoft Edge, Webkit (Experimental)</td>
<td rowspan='2'>August 28, 2025</td>
Expand All @@ -50,6 +52,7 @@ Sauce Labs supports the following test configurations for Cypress:
<tr>
<td rowspan='2'>13.13.1</td>
<td rowspan='2'>20</td>
<td rowspan='2'></td>
<td><b>macOS:</b> 11.00, 12, 13</td>
<td rowspan='2'>Chrome, Firefox, Microsoft Edge, Webkit (Experimental)</td>
<td rowspan='2'>July 23, 2025</td>
Expand All @@ -62,6 +65,7 @@ Sauce Labs supports the following test configurations for Cypress:
<tr>
<td rowspan='2'>13.12.0</td>
<td rowspan='2'>20</td>
<td rowspan='2'></td>
<td><b>macOS:</b> 11.00, 12, 13</td>
<td rowspan='2'>Chrome, Firefox, Microsoft Edge, Webkit (Experimental)</td>
<td rowspan='2'>June 26, 2025</td>
Expand All @@ -74,6 +78,7 @@ Sauce Labs supports the following test configurations for Cypress:
<tr>
<td rowspan='2'>13.10.0</td>
<td rowspan='2'>20</td>
<td rowspan='2'></td>
<td><b>macOS:</b> 11.00, 12, 13</td>
<td rowspan='2'>Chrome, Firefox, Microsoft Edge, Webkit (Experimental)</td>
<td rowspan='2'>May 28, 2025</td>
Expand All @@ -86,6 +91,7 @@ Sauce Labs supports the following test configurations for Cypress:
<tr>
<td rowspan='2'>13.7.3</td>
<td rowspan='2'>20</td>
<td rowspan='2'></td>
<td><b>macOS:</b> 11.00, 12, 13</td>
<td rowspan='2'>Chrome, Firefox, Microsoft Edge, Webkit (Experimental)</td>
<td rowspan='2'>April 15, 2025</td>
Expand All @@ -98,6 +104,7 @@ Sauce Labs supports the following test configurations for Cypress:
<tr>
<td rowspan='2'>13.6.6</td>
<td rowspan='2'>20</td>
<td rowspan='2'></td>
<td><b>macOS:</b> 11.00, 12, 13</td>
<td rowspan='2'>Chrome, Firefox, Microsoft Edge, Webkit (Experimental)</td>
<td rowspan='2'>February 28, 2025</td>
Expand All @@ -110,6 +117,7 @@ Sauce Labs supports the following test configurations for Cypress:
<tr>
<td rowspan='2'>13.6.3</td>
<td rowspan='2'>20</td>
<td rowspan='2'></td>
<td><b>macOS:</b> 11.00, 12, 13</td>
<td rowspan='2'>Chrome, Firefox, Microsoft Edge, Webkit (Experimental)</td>
<td rowspan='2'>January 22, 2025</td>
Expand All @@ -122,6 +130,7 @@ Sauce Labs supports the following test configurations for Cypress:
<tr>
<td rowspan='2'>13.6.0</td>
<td rowspan='2'>20</td>
<td rowspan='2'></td>
<td><b>macOS:</b> 11.00, 12, 13</td>
<td rowspan='2'>Chrome, Firefox, Microsoft Edge, Webkit (Experimental)</td>
<td rowspan='2'>December 6, 2024</td>
Expand All @@ -134,6 +143,7 @@ Sauce Labs supports the following test configurations for Cypress:
<tr>
<td rowspan='2'>13.4.0</td>
<td rowspan='2'>20</td>
<td rowspan='2'></td>
<td><b>macOS:</b> 11.00, 12, 13</td>
<td rowspan='2'>Chrome, Firefox, Microsoft Edge, Webkit (Experimental)</td>
<td rowspan='2'>November 7, 2024</td>
Expand All @@ -146,6 +156,7 @@ Sauce Labs supports the following test configurations for Cypress:
<tr>
<td rowspan='2'>13.3.0</td>
<td rowspan='2'>18</td>
<td rowspan='2'></td>
<td><b>macOS:</b> 11.00, 12, 13</td>
<td rowspan='2'>Chrome, Firefox, Microsoft Edge, Webkit (Experimental)</td>
<td rowspan='2'>September 28, 2024</td>
Expand All @@ -158,6 +169,7 @@ Sauce Labs supports the following test configurations for Cypress:
<tr>
<td rowspan='2'>12.17.4</td>
<td rowspan='2'>18</td>
<td rowspan='2'></td>
<td><b>macOS:</b> 11.00, 12, 13</td>
<td rowspan='2'>Chrome, Firefox, Microsoft Edge, Webkit (Experimental)</td>
<td rowspan='2'>August 31, 2024</td>
Expand Down
4 changes: 3 additions & 1 deletion docs/web-apps/automated-testing/cypress/advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ import TabItem from '@theme/TabItem';
import useBaseUrl from '@docusaurus/useBaseUrl';
import Advanced, {toc as AdvancedTOC} from '../\_partials/\_advanced.md';
import AdvancedCypress, {toc as AdvancedCypressTOC} from '../\_partials/\_advanced-cypress.md';
import AdvancedNodejs, {toc as AdvancedNodejsTOC} from '../\_partials/\_advanced-nodejs.md';

<AdvancedNodejs />
<Advanced />
<AdvancedCypress />

<!-- Using partials breaks table of contents. Using this workaround to get it working again. -->

export const toc = [...AdvancedTOC, ...AdvancedCypressTOC];
export const toc = [...AdvancedNodejsTOC, ...AdvancedTOC, ...AdvancedCypressTOC];
19 changes: 19 additions & 0 deletions docs/web-apps/automated-testing/cypress/yaml/v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,25 @@ kind: cypress

---

## `nodeVersion`

<p><small>| OPTIONAL | STRING |</small></p>

Specifies the Node.js version for Sauce Cloud, supporting SemVer notation and aliases. For more details, refer to the [Advanced Configuration Page](../advanced.md#using-nodejs-runtime-on-sauce-cloud).

Examples: `v20`, `v20.14.0`, `v20.14`, `iron`, `lts`.

:::note
This feature is available in `saucectl` version v0.185.0+ and supported test runners. For details on supported test runners, see [Supported Testing Platforms](../../cypress.md#supported-testing-platforms).

:::

```yaml
nodeVersion: v20
```

---

## `showConsoleLog`

<p><small>| OPTIONAL | BOOLEAN |</small></p>
Expand Down
18 changes: 15 additions & 3 deletions docs/web-apps/automated-testing/playwright.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,16 @@ Sauce Labs supports the following test configurations for Playwright:
<tr>
<th>Playwright Version</th>
<th>Node.js Version</th>
<th>Supported Platforms</th>
<th>Supported Browsers</th>
<th>End of Life</th>
<th width="10%">Supports Configurable Node.js</th>
<th width="20%">Supported Platforms</th>
<th width="30%">Supported Browsers</th>
<th width="30%">End of Life</th>
</tr>
<tbody>
<tr>
<td rowspan='2'>1.46.1</td>
<td rowspan='2'>20</td>
<td rowspan='2'>✅</td>
<td><b>macOS:</b> 12, 13</td>
<td rowspan='2'>Chromium, Chrome, Firefox, Webkit</td>
<td rowspan='2'>August 28, 2025</td>
Expand All @@ -51,6 +53,7 @@ Sauce Labs supports the following test configurations for Playwright:
<tr>
<td rowspan='2'>1.45.2</td>
<td rowspan='2'>20</td>
<td rowspan='2'></td>
<td><b>macOS:</b> 12, 13</td>
<td rowspan='2'>Chromium, Chrome, Firefox, Webkit</td>
<td rowspan='2'>July 23, 2025</td>
Expand All @@ -63,6 +66,7 @@ Sauce Labs supports the following test configurations for Playwright:
<tr>
<td rowspan='2'>1.45.0</td>
<td rowspan='2'>20</td>
<td rowspan='2'></td>
<td><b>macOS:</b> 12, 13</td>
<td rowspan='2'>Chromium, Chrome, Firefox, Webkit</td>
<td rowspan='2'>June 26, 2025</td>
Expand All @@ -75,6 +79,7 @@ Sauce Labs supports the following test configurations for Playwright:
<tr>
<td rowspan='2'>1.44.0</td>
<td rowspan='2'>20</td>
<td rowspan='2'></td>
<td><b>macOS:</b> 12, 13</td>
<td rowspan='2'>Chromium, Chrome, Firefox, Webkit</td>
<td rowspan='2'>May 28, 2025</td>
Expand All @@ -87,6 +92,7 @@ Sauce Labs supports the following test configurations for Playwright:
<tr>
<td rowspan='2'>1.43.1</td>
<td rowspan='2'>20</td>
<td rowspan='2'></td>
<td><b>macOS:</b> 11.00, 12, 13</td>
<td rowspan='2'>Chromium, Chrome, Firefox, Webkit</td>
<td rowspan='2'>April 15, 2025</td>
Expand All @@ -99,6 +105,7 @@ Sauce Labs supports the following test configurations for Playwright:
<tr>
<td rowspan='2'>1.41.2</td>
<td rowspan='2'>20</td>
<td rowspan='2'></td>
<td><b>macOS:</b> 11.00, 12, 13</td>
<td rowspan='2'>Chromium, Chrome, Firefox, Webkit</td>
<td rowspan='2'>February 28, 2025</td>
Expand All @@ -111,6 +118,7 @@ Sauce Labs supports the following test configurations for Playwright:
<tr>
<td rowspan='2'>1.41.0</td>
<td rowspan='2'>20</td>
<td rowspan='2'></td>
<td><b>macOS:</b> 11.00, 12, 13</td>
<td rowspan='2'>Chromium, Chrome, Firefox, Webkit</td>
<td rowspan='2'>January 22, 2025</td>
Expand All @@ -123,6 +131,7 @@ Sauce Labs supports the following test configurations for Playwright:
<tr>
<td rowspan='2'>1.40.1</td>
<td rowspan='2'>20</td>
<td rowspan='2'></td>
<td><b>macOS:</b> 11.00, 12, 13</td>
<td rowspan='2'>Chromium, Chrome, Firefox, Webkit</td>
<td rowspan='2'>December 6, 2024</td>
Expand All @@ -135,6 +144,7 @@ Sauce Labs supports the following test configurations for Playwright:
<tr>
<td rowspan='2'>1.39.0</td>
<td rowspan='2'>20</td>
<td rowspan='2'></td>
<td><b>macOS:</b> 11.00, 12, 13</td>
<td rowspan='2'>Chromium, Chrome, Firefox, Webkit</td>
<td rowspan='2'>November 7, 2024</td>
Expand All @@ -147,6 +157,7 @@ Sauce Labs supports the following test configurations for Playwright:
<tr>
<td rowspan='2'>1.38.1</td>
<td rowspan='2'>18</td>
<td rowspan='2'></td>
<td><b>macOS:</b> 11.00, 12, 13</td>
<td rowspan='2'>Chromium, Chrome, Firefox, Webkit</td>
<td rowspan='2'>September 28, 2024</td>
Expand All @@ -159,6 +170,7 @@ Sauce Labs supports the following test configurations for Playwright:
<tr>
<td rowspan='2'>1.37.1</td>
<td rowspan='2'>18</td>
<td rowspan='2'></td>
<td><b>macOS:</b> 11.00, 12, 13</td>
<td rowspan='2'>Chromium, Chrome, Firefox, Webkit</td>
<td rowspan='2'>August 31, 2024</td>
Expand Down
4 changes: 3 additions & 1 deletion docs/web-apps/automated-testing/playwright/advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ import TabItem from '@theme/TabItem';
import useBaseUrl from '@docusaurus/useBaseUrl';
import Advanced, {toc as AdvancedTOC} from '../\_partials/\_advanced.md';
import AdvancedPlaywright, {toc as AdvancedPlaywrightTOC} from '../\_partials/\_advanced-playwright.md';
import AdvancedNodejs, {toc as AdvancedNodejsTOC} from '../\_partials/\_advanced-nodejs.md';

<AdvancedNodejs />
<Advanced />
<AdvancedPlaywright />

<!-- Using partials breaks table of contents. Using this workaround to get it working again. -->

export const toc = [...AdvancedTOC, ...AdvancedPlaywrightTOC];
export const toc = [...AdvancedNodejsTOC, ...AdvancedTOC, ...AdvancedPlaywrightTOC];
19 changes: 19 additions & 0 deletions docs/web-apps/automated-testing/playwright/yaml.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,25 @@ kind: playwright

---

## `nodeVersion`

<p><small>| OPTIONAL | STRING |</small></p>

Specifies the Node.js version for Sauce Cloud, supporting SemVer notation and aliases. For more details, refer to the [Advanced Configuration Page](./advanced.md#using-nodejs-runtime-on-sauce-cloud).

Examples: `v20`, `v20.14.0`, `v20.14`, `iron`, `lts`.

:::note
This feature is available in `saucectl` version v0.185.0+ and supported test runners. For details on supported test runners, see [Supported Testing Platforms](../playwright.md#supported-testing-platforms).

:::

```yaml
nodeVersion: v20
```

---

## `showConsoleLog`

<p><small>| OPTIONAL | BOOLEAN |</small></p>
Expand Down
Loading

0 comments on commit 6500a41

Please sign in to comment.