Skip to content

Commit

Permalink
Add relevant testdriver files
Browse files Browse the repository at this point in the history
  • Loading branch information
andreterron committed Nov 13, 2024
1 parent e6b4c52 commit 5a00d8b
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/testdriver.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: TestDriver.ai

on:
push:
branches: ["main"]
pull_request:
workflow_dispatch:

jobs:
test:
name: "TestDriver"
runs-on: ubuntu-latest
steps:
- uses: testdriverai/action@main
with:
key: ${{secrets.TESTDRIVER_API_KEY}}
prompt: |
1. /run testdriver/test.yml
prerun: |
cd $env:TEMP
npm init -y
npm install dashcam-chrome
git clone https://github.com/testdriverai/mainframe.git
cd mainframe
npm install
npm start
Start-Process "C:/Program Files/Google/Chrome/Application/chrome.exe" -ArgumentList "--start-maximized", "--load-extension=$(pwd)/node_modules/dashcam-chrome/build", "${{ env.LOCALHOST }}"
exit
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FORCE_COLOR: "3"
LOCALHOST: "http://localhost:8744"
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ node_modules/
/mainframe.service

.turbo

.DS_Store
46 changes: 46 additions & 0 deletions testdriver/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
version: 4.1.9
steps:
- prompt: focus chrome
commands:
- command: focus-application
name: Google Chrome
- prompt: >-
click on the input field for the username and enter testdriverai and for
password enter aitesting and click on sign up
commands:
- command: focus-application
name: Google Chrome
- prompt: >-
click on the input field for the username and enter testdriverai and for
password enter aitesting and click on sign up
commands:
- command: hover-text
text: Username
description: username input field
action: click
- command: type
text: testdriverai
- command: hover-text
text: Password
description: password input field
action: click
- command: type
text: aitesting
- command: hover-text
text: Sign up
description: sign up button
action: click
- prompt: >-
click on the input field for the username and enter testdriverai and for
password enter aitesting and click on sign up
commands:
- command: hover-text
text: Username
description: username input field
action: click
- command: type
text: testdriverai
- command: hover-text
text: Password
description: password input field
action: click

0 comments on commit 5a00d8b

Please sign in to comment.