Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
cb48aa4
comment out test
Jakshas Oct 1, 2025
9ae368e
fix sharp
Jakshas Oct 1, 2025
fc46e1b
fix tests
Jakshas Oct 1, 2025
1ef65e7
remove chrome beta
Jakshas Oct 1, 2025
0173926
add sharp to everything
Jakshas Oct 1, 2025
80c16bc
change sharp
Jakshas Oct 1, 2025
2a0ecd4
change order
Jakshas Oct 1, 2025
4271880
remove package lock
Jakshas Oct 1, 2025
d4efbd6
add lock
Jakshas Oct 1, 2025
a29d274
change to image
Jakshas Oct 2, 2025
6428cbb
after install
Jakshas Oct 2, 2025
97ff5cb
remove sharp
Jakshas Oct 2, 2025
7078f0c
check if work
Jakshas Oct 2, 2025
f537cab
add optional
Jakshas Oct 2, 2025
12e8f8a
remove lock
Jakshas Oct 2, 2025
d7ccbc7
fix version
Jakshas Oct 2, 2025
76aeeec
fix install
Jakshas Oct 2, 2025
f4ccf9c
format
Jakshas Oct 2, 2025
4147619
fix version
Jakshas Oct 2, 2025
c7810cc
change to os specific
Jakshas Oct 2, 2025
0a7adde
fix node version
Jakshas Oct 2, 2025
331a915
remove install
Jakshas Oct 2, 2025
5ee1476
fix tests
Jakshas Oct 2, 2025
95b8f8c
add versions
Jakshas Oct 2, 2025
d260208
add installing browsers
Jakshas Oct 3, 2025
21574c6
fix versions
Jakshas Oct 3, 2025
020f46d
bump version of cypess
Jakshas Oct 3, 2025
a118915
fix node version
Jakshas Oct 3, 2025
2a6ebc4
fix
Jakshas Oct 6, 2025
130d81c
remove latest
Jakshas Oct 7, 2025
5447aea
fix chrome
Jakshas Oct 7, 2025
74a05e7
print edge location
Jakshas Oct 7, 2025
a084e23
fix chrome
Jakshas Oct 7, 2025
aad9178
bump axe version
Jakshas Oct 7, 2025
5dd2352
change to path
Jakshas Oct 7, 2025
61d0456
fix version
Jakshas Oct 7, 2025
8d0f1ee
change browser
Jakshas Oct 8, 2025
443bcc1
fix version in plugin
Jakshas Oct 8, 2025
8057acf
revert
Jakshas Oct 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 47 additions & 5 deletions .github/workflows/browser_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ jobs:
strategy:
fail-fast: false
matrix:
browser: [ firefox, chrome, 'chrome:beta', edge ]
# browser: [ firefox, chrome, edge ] #chrome beta causing issues
# browser: [ firefox, chrome, 'chrome:beta', edge ]
browser: [ firefox, chrome-for-testing, edge ] #chrome beta causing issues

steps:
- name: Checkout code
Expand All @@ -20,6 +20,30 @@ jobs:
BRANCH_NAME=$(echo "${{ github.ref }}" | awk -F'/' '{print $3}')
echo "::set-output name=TEST_RUN_NAME::${{ matrix.browser }}-${{ github.workflow }}—$BRANCH_NAME"

- name: Setup Edge
if: ${{ startsWith(matrix.browser, 'edge') }}
id: setup-edge
uses: browser-actions/setup-edge@v1

- name: Print Edge location
if: ${{ startsWith(matrix.browser, 'edge') }}
run: cat ${{ steps.setup-edge.outputs.edge-path }}

- name: Setup Chrome
if: ${{ startsWith(matrix.browser, 'chrome') }}
uses: browser-actions/setup-chrome@v2
with:
install-dependencies: true

- name: Setup Firefox
if: ${{ startsWith(matrix.browser, 'firefox') }}
uses: browser-actions/setup-firefox@v1

- name: Install node version 24
uses: actions/setup-node@v3
with:
node-version: '24'

- name: Install root dependencies
run: npm install

Expand All @@ -28,15 +52,16 @@ jobs:
working-directory: ./test

- name: Install Chrome Beta
if: ${{ startsWith(matrix.browser, 'chrome') }}
if: ${{ startsWith(matrix.browser, 'chrome:beta') }}
run: |
curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome-beta.list
sudo apt-get update
sudo apt-get install google-chrome-beta

- name: Cypress run
uses: cypress-io/github-action@v5
- name: Cypress run chrome or firefox
if: ${{ matrix.browser == 'chrome-for-testing' || startsWith(matrix.browser, 'firefox') }}
uses: cypress-io/github-action@v6
with:
quiet: true
working-directory: ./test
Expand All @@ -50,3 +75,20 @@ jobs:
SBVT_SCM_BRANCH: ${{ github.head_ref || github.ref_name }}
SBVT_SCM_COMMIT_ID: ${{ github.sha }}
DEBUG: TRUE

- name: Cypress run edge
if: ${{ startsWith(matrix.browser, 'edge') }}
uses: cypress-io/github-action@v6
with:
quiet: true
working-directory: ./test
spec: cypress/e2e/test-spec/quick-test_*
browser: ${{ steps.setup-edge.outputs.edge-path }}

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PROJECT_TOKEN: ${{ secrets.DEV_EXAMPLE_7 }}
TEST_RUN_NAME: ${{ steps.set-test-run-name.outputs.TEST_RUN_NAME }}
SBVT_SCM_BRANCH: ${{ github.head_ref || github.ref_name }}
SBVT_SCM_COMMIT_ID: ${{ github.sha }}
DEBUG: TRUE
6 changes: 5 additions & 1 deletion .github/workflows/cypress_version-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Install node version 24
uses: actions/setup-node@v3
with:
node-version: '24'

- name: Extract Branch Name and Set Test Run Name
id: set-test-run-name
run: |
Expand Down Expand Up @@ -56,7 +61,6 @@ jobs:
working-directory: ./test/version-control-test/above10
run: npx jest


- name: Cypress run
if: ${{ startsWith(matrix.cypress-version, '10') || startsWith(matrix.cypress-version, '11') || startsWith(matrix.cypress-version, '12') || startsWith(matrix.cypress-version, 'dev') || startsWith(matrix.cypress-version, 'latest') }}
uses: cypress-io/github-action@v5
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/linux_quick-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ jobs:
BRANCH_NAME=$(echo "${{ github.ref }}" | awk -F'/' '{print $3}')
echo "::set-output name=TEST_RUN_NAME::${{ github.workflow }}—$BRANCH_NAME"

- name: Install node version 24
uses: actions/setup-node@v3
with:
node-version: '24'

- name: Install root dependencies
run: npm install

Expand All @@ -23,7 +28,7 @@ jobs:
working-directory: ./test

- name: Cypress run
uses: cypress-io/github-action@v6
uses: cypress-io/github-action@v6.10.2
with:
quiet: true
working-directory: ./test
Expand Down
39 changes: 0 additions & 39 deletions .github/workflows/mac_windows_quick-tests.yml

This file was deleted.

8 changes: 6 additions & 2 deletions .github/workflows/npm-package_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,21 @@ on:

jobs:
cypress-run:
runs-on: ${{ matrix.os }}
runs-on: self-hosted
strategy:
fail-fast: false
matrix:
os: [ windows-latest, macos-latest ]
browser: [ firefox, chrome ]

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install node version 24
uses: actions/setup-node@v3
with:
node-version: '24'

- name: Install Visual Test & Cypress from NPM
run: npm install cypress @smartbear/visualtest-cypress@latest
working-directory: ./test/npm-package-test
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/print_report-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Install node version 24
uses: actions/setup-node@v3
with:
node-version: '24'

- name: Install root dependencies
run: npm install

Expand All @@ -16,7 +21,7 @@ jobs:
working-directory: ./test

- name: Install Cypress
run: npm install cypress@latest
run: npm install cypress
working-directory: ./test

- name: Cypress run
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/sonar-qube.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ jobs:
name: Build
runs-on: self-hosted
steps:
- name: Install node version 24
uses: actions/setup-node@v3
with:
node-version: '24'

- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/typescript-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,21 @@ jobs:
BRANCH_NAME=$(echo "${{ github.ref }}" | awk -F'/' '{print $3}')
echo "::set-output name=TEST_RUN_NAME::${{ github.workflow }}—$BRANCH_NAME"

- name: Install node version 24
uses: actions/setup-node@v3
with:
node-version: '24'

- name: Install root dependencies
run: npm install

- name: Install typescript-test dependencies
run: npm install
working-directory: ./test/typescript-test

- name: Install linux sharp
run: npm install --include=optional sharp

- name: Setup visualtest
run: npx visualtest-setup > visualtest-first-logs.txt
working-directory: ./test/typescript-test
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/violations-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Install node version 24
uses: actions/setup-node@v3
with:
node-version: '24'

- name: Extract Branch Name and Set Test Run Name
id: set-test-run-name
run: |
Expand All @@ -22,6 +27,9 @@ jobs:
run: npm install
working-directory: ./test

- name: Install linux sharp
run: npm install --include=optional sharp

- name: Cypress run
uses: cypress-io/github-action@v6
with:
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/webkit-browser_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: webkit-browser-check
on: [pull_request]
jobs:
cypress-run:
runs-on: macos-latest
runs-on: self-hosted
strategy:
fail-fast: false
matrix:
Expand All @@ -13,9 +13,17 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Install node version 24
uses: actions/setup-node@v3
with:
node-version: '24'

- name: Install root dependencies
run: npm install

- name: Install playwright dependencies
run: npx playwright install-deps

- name: Install test dependencies
run: npm install
working-directory: ./test/webkit-test
Expand Down
4 changes: 3 additions & 1 deletion bin/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ let error = false;
const usersCypressVersion = (() => {
let packageFile, usersCypress;
try {
packageFile = fs.readFileSync(path.resolve(path.dirname(require.resolve('cypress', {paths: [cwd]})), 'package.json'));
let file = path.dirname(require.resolve('cypress', {paths: [cwd]}))
if (file.endsWith("dist")) file = path.resolve(file, '..'); // in cypress 15+ resolve paths to dist folder
packageFile = fs.readFileSync(path.resolve(file, 'package.json'));
usersCypress = JSON.parse(packageFile.toString());
} catch (err) {
error = true;
Expand Down
Loading
Loading