-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e6b4c52
commit 5a00d8b
Showing
3 changed files
with
80 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,5 @@ node_modules/ | |
/mainframe.service | ||
|
||
.turbo | ||
|
||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |