From 376677effc16c85311d32b1ae862ebb2ebae830b Mon Sep 17 00:00:00 2001 From: Ian Jennings Date: Thu, 29 Aug 2024 13:18:19 -0500 Subject: [PATCH] commit --- .github/workflows/testdriver.yml | 22 ++++++++++++++ .github/workflows/testdriver/test.example.yml | 0 testdriver/test.yml | 30 +++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 .github/workflows/testdriver.yml create mode 100644 .github/workflows/testdriver/test.example.yml create mode 100644 testdriver/test.yml diff --git a/.github/workflows/testdriver.yml b/.github/workflows/testdriver.yml new file mode 100644 index 0000000..a697b46 --- /dev/null +++ b/.github/workflows/testdriver.yml @@ -0,0 +1,22 @@ +name: TestDriver.ai + +on: + push: + branches: ["main"] + pull_request: + workflow_dispatch: + +jobs: + test: + name: "TestDriver" + runs-on: ubuntu-latest + steps: + - uses: testdriverai/agent@main + version: v4.0.0 + key: ${{secrets.TESTDRIVER_API_KEY}} + with: + prompt: | + 1. /run /Users/ec2-user/actions-runner/_work/testdriver/testdriver/testdriver/test.yml + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + FORCE_COLOR: "3" diff --git a/.github/workflows/testdriver/test.example.yml b/.github/workflows/testdriver/test.example.yml new file mode 100644 index 0000000..e69de29 diff --git a/testdriver/test.yml b/testdriver/test.yml new file mode 100644 index 0000000..420c8f3 --- /dev/null +++ b/testdriver/test.yml @@ -0,0 +1,30 @@ +version: 4.0.7 +steps: + - prompt: click new task + commands: + - command: focus-application + name: Google Chrome + - command: hover-text + text: New Task + description: button to create a new task + action: click + - prompt: enter a fake task title and summary then click create task + commands: + - command: focus-application + name: Google Chrome + - command: hover-text + text: Title + description: Title field in the new task form + action: click + - command: type + text: Fake Task Title + - command: hover-text + text: Summary + description: Summary field in the new task form + action: click + - command: type + text: This is a fake task summary. + - command: hover-text + text: Create Task + description: button to create the task + action: click