mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-21 16:38:23 +01:00
new main
This commit is contained in:
parent
828e9076a2
commit
67a5ff0624
72
.github/workflows/testdriver.yml
vendored
Normal file
72
.github/workflows/testdriver.yml
vendored
Normal file
@ -0,0 +1,72 @@
|
||||
name: TestDriver.ai Regression Testing - Waveterm
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
schedule:
|
||||
- cron: 0 21 * * *
|
||||
workflow_dispatch: null
|
||||
|
||||
permissions:
|
||||
contents: read # To allow the action to read repository contents
|
||||
pull-requests: write # To allow the action to create/update pull request comments
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: "TestDriver"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: testdriverai/action@main
|
||||
id: testdriver
|
||||
with:
|
||||
key: ${{secrets.DASHCAM_API}}
|
||||
prerun: |
|
||||
# Navigate to the directory
|
||||
Set-Location "$HOME/actions-runner/_work/testdriver/testdriver/"
|
||||
|
||||
# Install Go using Homebrew
|
||||
brew install go
|
||||
|
||||
# Tap scripthaus-dev/scripthaus and install necessary packages
|
||||
brew tap scripthaus-dev/scripthaus
|
||||
brew install corepack
|
||||
brew install scripthaus
|
||||
|
||||
# Enable Corepack
|
||||
corepack enable
|
||||
|
||||
# Install dependencies using Yarn
|
||||
yarn install
|
||||
|
||||
# Run the build-backend task with scripthaus
|
||||
scripthaus run build-backend
|
||||
Write-Host "Yarn"
|
||||
|
||||
# Run yarn
|
||||
yarn
|
||||
|
||||
Write-Host "Rebuild"
|
||||
# Rebuild Electron
|
||||
scripthaus run electron-rebuild
|
||||
|
||||
Write-Host "Webpack"
|
||||
# Run the Webpack build task
|
||||
scripthaus run webpack-build
|
||||
|
||||
Write-Host "Starting Electron"
|
||||
# Start Electron and redirect output to /dev/null
|
||||
Start-Process -NoNewWindow -FilePath "scripthaus" -ArgumentList "run electron" -RedirectStandardOutput $null -RedirectStandardError $null
|
||||
|
||||
Write-Host "Electron Done"
|
||||
|
||||
# Install testdriverai and dashcam globally using npm
|
||||
npm install testdriverai -g
|
||||
npm install dashcam -g
|
||||
|
||||
# Exit the script
|
||||
exit
|
||||
prompt: |
|
||||
1. /run testdriver/theme.yml
|
39
testdriver/theme.yml
Normal file
39
testdriver/theme.yml
Normal file
@ -0,0 +1,39 @@
|
||||
version: 4.0.0
|
||||
steps:
|
||||
- prompt: "onboarding"
|
||||
commands:
|
||||
- command: focus-application
|
||||
name: Electron
|
||||
- command: hover-text
|
||||
description: Get started CTA
|
||||
text: Get Started
|
||||
action: click
|
||||
- prompt: "change theme"
|
||||
commands:
|
||||
- command: hover-text
|
||||
description: Settings button
|
||||
text: Settings
|
||||
action: click
|
||||
- command: hover-text
|
||||
description: font size 13
|
||||
text: 13px
|
||||
action: click
|
||||
- command: hover-text
|
||||
description: font size 12
|
||||
text: 12px
|
||||
action: click
|
||||
- command: hover-text
|
||||
description: theme selector
|
||||
text: Dark
|
||||
action: click
|
||||
- command: hover-text
|
||||
description: theme color white
|
||||
text: Light
|
||||
action: click
|
||||
- command: hover-text
|
||||
description: workspace
|
||||
text: workspace-1
|
||||
action: click
|
||||
- command: assert
|
||||
expect: the terminal is white
|
||||
|
Loading…
Reference in New Issue
Block a user