Skip to content

Commit a878e23

Browse files
committed
Merge remote-tracking branch 'origin/main' into real-time-network-capture
2 parents d12997d + 7b9fb9c commit a878e23

28 files changed

+3390
-10920
lines changed

.eslintignore

-3
This file was deleted.

.eslintrc.json

-31
This file was deleted.

.github/workflows/deploy-pr-preview.yml

+37-4
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,25 @@ jobs:
3535
node-version-file: '.nvmrc'
3636
cache: 'npm'
3737

38+
- name: Setup Python
39+
uses: actions/setup-python@v5
40+
with:
41+
python-version: '3.12'
42+
43+
- name: Google Cloud Login
44+
uses: google-github-actions/auth@v2
45+
with:
46+
credentials_json: '${{ secrets.RUN_SA_KEY_DEV }}'
47+
48+
- name: Setup Google Cloud SDK
49+
uses: google-github-actions/setup-gcloud@v2
50+
with:
51+
project_id: ${{ secrets.RUN_PROJECT_DEV }}
52+
env:
53+
CLOUDSDK_PYTHON: ${{ env.pythonLocation }}/python
54+
3855
- name: Set Preview Path
39-
run: echo "PREVIEW_PATH=sauce-docs/pr-preview/pr-${{ github.event.number }}" >> "$GITHUB_ENV"
56+
run: echo "PREVIEW_PATH=pr-preview/pr-${{ github.event.number }}" >> "$GITHUB_ENV"
4057

4158
- name: Install Dependencies
4259
if: github.event.action != 'closed' # Skip if the PR was closed
@@ -48,7 +65,23 @@ jobs:
4865
run: |
4966
npm run build
5067
51-
- name: Deploy PR
52-
uses: rossjrw/pr-preview-action@v1
68+
- name: Deploy
69+
if: github.event.action != 'closed' # Skip if the PR was closed
70+
working-directory: build
71+
run: |-
72+
gsutil -m rsync -R -d . ${{ secrets.GCS_DEV_BUCKET }}/${{ env.PREVIEW_PATH }}
73+
74+
- name: Deploy Message
75+
if: github.event.action != 'closed' # Skip if the PR was closed
76+
uses: unsplash/comment-on-pr@master
77+
env:
78+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5379
with:
54-
source-dir: ./build/
80+
msg: |
81+
Deploy preview ready for ${{ github.event.number }}!
82+
https://docs.dev.saucelabs.net/${{ env.PREVIEW_PATH }}
83+
84+
- name: Cleanup
85+
if: github.event.action == 'closed' # Cleanup action only on PR closure
86+
run: |-
87+
gsutil rm -r ${{ secrets.GCS_DEV_BUCKET }}/${{ env.PREVIEW_PATH }}

.husky/pre-commit

-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
41
npx lint-staged

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v18
1+
v20

Dockerfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ WORKDIR /app
44

55
EXPOSE 3000 35729
66
COPY . /app
7-
RUN yarn install && yarn build
7+
RUN npm install && \
8+
npm run build
89

9-
CMD ["yarn", "serve"]
10+
CMD ["npm", "run", "serve"]

cypress.json

-10
This file was deleted.

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

+12-12
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,18 @@ Sauce Labs supports the following test configurations for Cypress:
3434
<th>Supported Browsers</th>
3535
<th>End of Life</th>
3636
</tr>
37+
<tbody>
38+
<tr>
39+
<td rowspan='2'>13.13.3</td>
40+
<td rowspan='2'>20</td>
41+
<td><b>macOS:</b> 11.00, 12, 13</td>
42+
<td rowspan='2'>Chrome, Firefox, Microsoft Edge, Webkit (Experimental)</td>
43+
<td rowspan='2'>August 28, 2025</td>
44+
</tr>
45+
<tr>
46+
<td><b>Windows:</b> 10, 11</td>
47+
</tr>
48+
</tbody>
3749
<tbody>
3850
<tr>
3951
<td rowspan='2'>13.13.1</td>
@@ -154,18 +166,6 @@ Sauce Labs supports the following test configurations for Cypress:
154166
<td><b>Windows:</b> 10, 11</td>
155167
</tr>
156168
</tbody>
157-
<tbody>
158-
<tr>
159-
<td rowspan='2'>12.17.2</td>
160-
<td rowspan='2'>18</td>
161-
<td><b>macOS:</b> 11.00, 12, 13</td>
162-
<td rowspan='2'>Chrome, Firefox, Microsoft Edge, Webkit (Experimental)</td>
163-
<td rowspan='2'>August 1, 2024</td>
164-
</tr>
165-
<tr>
166-
<td><b>Windows:</b> 10, 11</td>
167-
</tr>
168-
</tbody>
169169
</table>
170170

171171
## How to Get Started

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

+12-12
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,18 @@ Sauce Labs supports the following test configurations for Playwright:
3535
<th>Supported Browsers</th>
3636
<th>End of Life</th>
3737
</tr>
38+
<tbody>
39+
<tr>
40+
<td rowspan='2'>1.46.1</td>
41+
<td rowspan='2'>20</td>
42+
<td><b>macOS:</b> 12, 13</td>
43+
<td rowspan='2'>Chromium, Chrome, Firefox, Webkit</td>
44+
<td rowspan='2'>August 28, 2025</td>
45+
</tr>
46+
<tr>
47+
<td><b>Windows:</b> 10, 11</td>
48+
</tr>
49+
</tbody>
3850
<tbody>
3951
<tr>
4052
<td rowspan='2'>1.45.2</td>
@@ -155,18 +167,6 @@ Sauce Labs supports the following test configurations for Playwright:
155167
<td><b>Windows:</b> 10, 11</td>
156168
</tr>
157169
</tbody>
158-
<tbody>
159-
<tr>
160-
<td rowspan='2'>1.36.2</td>
161-
<td rowspan='2'>18</td>
162-
<td><b>macOS:</b> 11.00, 12, 13</td>
163-
<td rowspan='2'>Chromium, Chrome, Firefox, Webkit</td>
164-
<td rowspan='2'>August 1, 2024</td>
165-
</tr>
166-
<tr>
167-
<td><b>Windows:</b> 10, 11</td>
168-
</tr>
169-
</tbody>
170170
</table>
171171

172172
## How to Get Started

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

+1-18
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Sauce Labs supports the following test configurations for TestCafe:
4040
<td rowspan='3'>20</td>
4141
<td><b>macOS:</b> 11.00, 12, 13</td>
4242
<td>Safari, Chrome, Firefox, Microsoft Edge</td>
43-
<td rowspan='3'>July 23, 2025</td>
43+
<td rowspan='3'>August 28, 2025</td>
4444
</tr>
4545
<tr>
4646
<td><b>Windows:</b> 10, 11</td>
@@ -153,23 +153,6 @@ Sauce Labs supports the following test configurations for TestCafe:
153153
<td>Safari</td>
154154
</tr>
155155
</tbody>
156-
<tbody>
157-
<tr>
158-
<td rowspan='3'>3.0.1</td>
159-
<td rowspan='3'>18</td>
160-
<td><b>macOS:</b> 11.00, 12, 13</td>
161-
<td>Safari, Chrome, Firefox, Microsoft Edge</td>
162-
<td rowspan='3'>August 1, 2024</td>
163-
</tr>
164-
<tr>
165-
<td><b>Windows:</b> 10, 11</td>
166-
<td>Chrome, Firefox, Microsoft Edge</td>
167-
</tr>
168-
<tr>
169-
<td><b>iOS:</b> 13.4, 14.5, 15.4, 16.0, 16.1</td>
170-
<td>Safari</td>
171-
</tr>
172-
</tbody>
173156
</table>
174157

175158
## How to Get Started

eslint.config.mjs

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
import react from 'eslint-plugin-react';
2+
import prettierRecommended from 'eslint-plugin-prettier/recommended';
3+
import globals from 'globals';
4+
import js from '@eslint/js';
5+
import pluginPromise from 'eslint-plugin-promise';
6+
7+
export default [
8+
js.configs.recommended,
9+
pluginPromise.configs['flat/recommended'],
10+
prettierRecommended,
11+
{
12+
files: ['**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}'],
13+
...react.configs.flat.recommended,
14+
},
15+
{
16+
ignores: ['.docusaurus/', '**/*tests/', '**/*build/'],
17+
},
18+
{
19+
languageOptions: {
20+
globals: {
21+
...globals.browser,
22+
...globals.node,
23+
},
24+
25+
ecmaVersion: 'latest',
26+
sourceType: 'module',
27+
},
28+
29+
settings: {
30+
react: {
31+
version: 'detect',
32+
},
33+
},
34+
35+
rules: {
36+
'react/prop-types': 'off',
37+
'prettier/prettier': ['error'],
38+
},
39+
},
40+
];

0 commit comments

Comments
 (0)