diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..e5833a4 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,18 @@ +on: [push] + + +jobs: + test: + runs-on: ubuntu-latest + name: Check Tests + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - uses: testomatio/check-tests@master + with: + framework: codeceptjs + tests: "./todomvc-tests/**_test.js" + token: ${{ secrets.GITHUB_TOKEN }} + has-tests-label: true + diff --git a/todomvc-tests/create-todos_test.js b/todomvc-tests/create-todos_test.js index 24066bc..92adc12 100644 --- a/todomvc-tests/create-todos_test.js +++ b/todomvc-tests/create-todos_test.js @@ -17,11 +17,10 @@ Scenario('Create a new todo item', async (I, TodosPage) => { TodosPage.seeNumberOfTodos(1) I.saveScreenshot('create-todo-item.png') -}) +}); Scenario('Create multiple todo items', async (I, TodosPage) => { I.say('Given I have an empty todo list') - I.say('When I create todos "foo", "bar" and "baz"') TodosPage.enterTodo('foo') TodosPage.enterTodo('bar')