Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksey28 committed Oct 27, 2023
1 parent f924899 commit f566d07
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 17 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/deploy-to-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,22 +129,23 @@ jobs:
const tasks = [];
tasks.push('test-client-desktop.yml');
tasks.push('test-client-mobile.yml');
tasks.push('test-functional-docker.yml');
// tasks.push('test-client-desktop.yml');
// tasks.push('test-client-mobile.yml');
// tasks.push('test-functional-docker.yml');
tasks.push('test-functional-local-safari.yml');
tasks.push('test-functional-local-esm.yml');
tasks.push('test-functional-local-chrome.yml');
tasks.push('test-functional-local-edge.yml');
tasks.push('test-functional-local-firefox.yml');
tasks.push('test-functional-local-multiple-windows.yml');
tasks.push('test-functional-local-native-automation.yml');
tasks.push('test-functional-local-headed-browsers.yml');
tasks.push('test-functional-local-legacy.yml');
tasks.push('test-functional-remote-mobile.yml');
tasks.push('test-server-docker.yml');
tasks.push('test-server-minimal.yml');
tasks.push('test-server-latest.yml');
tasks.push('test-functional-local-macos-13.yml');
// tasks.push('test-functional-local-esm.yml');
// tasks.push('test-functional-local-chrome.yml');
// tasks.push('test-functional-local-edge.yml');
// tasks.push('test-functional-local-firefox.yml');
// tasks.push('test-functional-local-multiple-windows.yml');
// tasks.push('test-functional-local-native-automation.yml');
// tasks.push('test-functional-local-headed-browsers.yml');
// tasks.push('test-functional-local-legacy.yml');
// tasks.push('test-functional-remote-mobile.yml');
// tasks.push('test-server-docker.yml');
// tasks.push('test-server-minimal.yml');
// tasks.push('test-server-latest.yml');
await Promise.all(tasks.map(task => dispatchWorkflow(task)));
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/test-functional-local-macos-13.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Test Functional (Local Safari)

on:
workflow_dispatch:
inputs:
sha:
description: 'The test commit SHA or ref'
required: true
default: 'master'
merged_sha:
description: 'The merge commit SHA'
deploy_run_id:
description: 'The ID of a deployment workspace run with artifacts'
jobs:
test:
uses: ./.github/workflows/test-functional.yml
with:
test-script: 'npx gulp test-functional-local-safari-run --steps-as-tasks'
os: 'macos-13'
timeout: 40
2 changes: 1 addition & 1 deletion .github/workflows/test-functional-local-safari.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ jobs:
uses: ./.github/workflows/test-functional.yml
with:
test-script: 'npx gulp test-functional-local-safari-run --steps-as-tasks'
os: 'macos-13'
os: 'macos-latest'
timeout: 40
6 changes: 5 additions & 1 deletion .github/workflows/test-functional.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,13 @@ jobs:
- name: Add permissions on MacOS
run: |
sudo sqlite3 "$HOME/Library/Application Support/com.apple.TCC/TCC.db" "INSERT OR REPLACE INTO access VALUES('kTCCServiceAppleEvents','com.devexpress.testcafe-browser-tools',0,2,3,1,X'fade0c0000000068000000010000000700000007000000080000001443fa4ca5141baeda21aeca1f50894673b440d4690000000800000014f8afcf6e69791b283e55bd0b03e39e422745770e0000000800000014bf4fc1aed64c871a49fc6bc9dd3878ce5d4d17c6',NULL,0,'com.apple.Safari',X'fade0c000000002c00000001000000060000000200000010636f6d2e6170706c652e53616661726900000003',NULL,1687952810);"
sudo sqlite3 "/Library/Application Support/com.apple.TCC/TCC.db" "INSERT OR REPLACE INTO access VALUES('kTCCServiceScreenCapture','com.devexpress.testcafe-browser-tools',0,2,3,1,X'fade0c0000000068000000010000000700000007000000080000001443fa4ca5141baeda21aeca1f50894673b440d4690000000800000014f8afcf6e69791b283e55bd0b03e39e422745770e0000000800000014bf4fc1aed64c871a49fc6bc9dd3878ce5d4d17c6',NULL,0,'UNUSED',NULL,0,1687952810);"
if: ${{ contains(inputs.os, 'mac') }}

- name: Add permissions on MacOS-13
run: |
sudo sqlite3 "/Library/Application Support/com.apple.TCC/TCC.db" "INSERT OR REPLACE INTO access VALUES('kTCCServiceScreenCapture','com.devexpress.testcafe-browser-tools',0,2,3,1,X'fade0c0000000068000000010000000700000007000000080000001443fa4ca5141baeda21aeca1f50894673b440d4690000000800000014f8afcf6e69791b283e55bd0b03e39e422745770e0000000800000014bf4fc1aed64c871a49fc6bc9dd3878ce5d4d17c6',NULL,0,'UNUSED',NULL,0,1687952810);"
if: ${{ contains(inputs.os, 'macos-13') }}

- name: 'Start BrowserStackLocal Tunnel'
if: ${{ inputs.is-browserstack }}
uses: 'browserstack/github-actions/setup-local@master'
Expand Down

0 comments on commit f566d07

Please sign in to comment.