Skip to content

Commit 9e65dc8

Browse files
author
Alex Plischke
authored
docs: improve consistency of timeout documentation (#2482)
* docs: improve consistency of timeout documentation * build: disable prettier for md files * fix: indent
1 parent 4e7937f commit 9e65dc8

File tree

8 files changed

+22
-9
lines changed

8 files changed

+22
-9
lines changed

docs/web-apps/automated-testing/_partials/_advanced-playwright-cucumber.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ When using a tunnel with Cucumber for Playwright, you need to explicitly tell Pl
44
Its value is stored in the `HTTP_PROXY` env var.
55

66
Example:
7+
78
```yaml reference
89
https://github.com/saucelabs/saucectl-playwright-example/blob/main/examples/cucumber/features/support/steps.js#L5-L17
9-
```
10+
```

docs/web-apps/automated-testing/cucumberjs-playwright/advanced.md

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import useBaseUrl from '@docusaurus/useBaseUrl';
1010
import Advanced, {toc as AdvancedTOC} from '../\_partials/\_advanced.md';
1111
import AdvancedPlaywrightCucumber, {toc as AdvancedPlaywrightCucumberTOC} from '../\_partials/\_advanced-playwright-cucumber.md';
1212

13-
1413
<AdvancedPlaywrightCucumber />
1514
<Advanced />
1615

docs/web-apps/automated-testing/cucumberjs-playwright/yaml.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,13 @@ defaults:
8585

8686
<p><small>| OPTIONAL | DURATION |</small></p>
8787

88-
Instructs how long (in `ms`, `s`, `m`, or `h`) `saucectl` should wait for each suite to complete. You can override this setting for individual suites using the `timeout` setting within the [`suites`](#suites) object. If not set, the default value is `0` (unlimited).
88+
Instructs how long `saucectl` should wait for the suite to complete, overriding the default project timeout setting of 30 minutes.
89+
90+
When the suite reaches the timeout limit, its status is set to '?' in the CLI. This does not reflect the actual status of the job in the Sauce Labs web UI or API.
91+
92+
:::note
93+
Setting `0` reverts to the value set in `defaults`.
94+
:::
8995

9096
```yaml
9197
timeout: 15m
@@ -805,6 +811,7 @@ suite:
805811
smartRetry:
806812
failedOnly: true
807813
```
814+
808815
---
809816

810817
### `options`

docs/web-apps/automated-testing/cypress/yaml/v1.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -898,6 +898,7 @@ excludeSpecPattern: ['**/*.*']
898898
```
899899

900900
---
901+
901902
### `headless`
902903

903904
<p><small>| OPTIONAL | BOOLEAN |</small></p>
@@ -911,6 +912,7 @@ Controls whether or not tests are run in headless mode.
911912
```
912913

913914
---
915+
914916
### `shard`
915917

916918
<p><small>| OPTIONAL | STRING |</small></p>
@@ -966,7 +968,9 @@ suites:
966968

967969
<p><small>| OPTIONAL | DURATION |</small></p>
968970

969-
Instructs how long `saucectl` should wait for the suite to complete, potentially overriding the default project timeout setting.
971+
Instructs how long `saucectl` should wait for the suite to complete, overriding the default project timeout setting of 30 minutes.
972+
973+
When the suite reaches the timeout limit, its status is set to '?' in the CLI. This does not reflect the actual status of the job in the Sauce Labs web UI or API.
970974

971975
:::note
972976
Setting `0` reverts to the value set in `defaults`.

docs/web-apps/automated-testing/playwright/yaml.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,6 @@ suites:
823823
grepInvert: "@slow"
824824
```
825825

826-
827826
### `params`
828827

829828
<p><small>| OPTIONAL | OBJECT |</small></p>
@@ -856,6 +855,7 @@ Available browser names: `chromium`, `firefox`, `webkit`, and `chrome`.
856855
:::
857856

858857
---
858+
859859
#### `headless`
860860

861861
<p><small>| OPTIONAL | BOOLEAN |</small></p>
@@ -967,7 +967,7 @@ $ mv artifacts/{your-suite-name}/example-test-1-actual.png tests/example.test.js
967967

968968
<p><small>| OPTIONAL | DURATION |</small></p>
969969

970-
Instructs how long `saucectl` should wait for the suite to complete, potentially overriding the default project timeout setting.
970+
Instructs how long `saucectl` should wait for the suite to complete, overriding the default project timeout setting of 30 minutes.
971971

972972
When the suite reaches the timeout limit, its status is set to '?' in the CLI. This does not reflect the actual status of the job in the Sauce Labs web UI or API.
973973

docs/web-apps/automated-testing/replay/yaml.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ suites:
547547

548548
<p><small>| OPTIONAL | DURATION |</small></p>
549549

550-
Instructs how long `saucectl` should wait for the suite to complete, potentially overriding the default project timeout setting.
550+
Instructs how long `saucectl` should wait for the suite to complete, overriding the default project timeout setting of 30 minutes.
551551

552552
When the suite reaches the timeout limit, its status is set to '?' in the CLI. This does not reflect the actual status of the job in the Sauce Labs web UI or API.
553553

docs/web-apps/automated-testing/testcafe/yaml.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,7 @@ Determines whether to run the test suite in headless mode.
734734
```yaml
735735
headless: true
736736
```
737+
737738
---
738739

739740
### `platformName`
@@ -1003,6 +1004,7 @@ Specifies test compilation settings. The current version of TestCafe can only co
10031004
---
10041005

10051006
#### `typescript`
1007+
10061008
<p><small>| OPTIONAL | OBJECT |</small></p>
10071009

10081010
Specifies the TypeScript options.
@@ -1262,7 +1264,7 @@ Determines whether to prevent the browser from caching page content. See [TestCa
12621264

12631265
<p><small>| OPTIONAL | DURATION |</small></p>
12641266

1265-
Instructs how long `saucectl` should wait for the suite to complete, potentially overriding the default project timeout setting.
1267+
Instructs how long `saucectl` should wait for the suite to complete, overriding the default project timeout setting of 30 minutes.
12661268

12671269
When the suite reaches the timeout limit, its status is set to '?' in the CLI. This does not reflect the actual status of the job in the Sauce Labs web UI or API.
12681270

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"prepare": "husky install"
1515
},
1616
"lint-staged": {
17-
"*.{js,jsx,md,css}": [
17+
"*.{js,jsx,css}": [
1818
"npx prettier --check"
1919
],
2020
"*.{js,jsx,ts,tsx}": [

0 commit comments

Comments
 (0)