Enables e2e tests and build test (#1780)

This commit is contained in:
Mihovil Ilakovac 2024-02-19 12:06:31 +01:00 committed by GitHub
parent 39195fc8f3
commit 9800c1cc37
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 7 deletions

View File

@ -137,14 +137,12 @@ jobs:
if: matrix.os == 'macos-latest'
run: export WASP_E2E_TESTS_SKIP_DOCKER=1
- name: Run tests
# TODO: Reenable e2e tests after we merge new e2e tests
- name: Run unit tests
run: cabal test cli-test waspc-test waspls-test
# TODO: Reenable building of todoApp after we merge build fixes
# - name: Ensure todoApp builds
# if: matrix.os == 'ubuntu-20.04' || matrix.os == 'macos-latest'
# run: ./tools/ensure_todoapp_builds.sh
- name: Ensure todoApp builds
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'macos-latest'
run: ./tools/ensure_todoapp_builds.sh
- name: Headless - Cache Node Modules
id: headless-cache-node-modules
@ -193,6 +191,9 @@ jobs:
npm ci
# Runs the tests with the debug flag so that we can see Wasp output
DEBUG=pw:webserver npx playwright test
- name: Run e2e tests
run: cabal test e2e-test
- name: Create binary package (Unix)
if: startsWith(github.ref, 'refs/tags/v') && (matrix.os == 'ubuntu-20.04' || matrix.os == 'macos-latest')

View File

@ -46,7 +46,7 @@ export const MainPage = ({ user }: { user: AuthUser }) => {
)}
<NewTaskForm />
{tasks && <TasksList tasks={tasks} />}
<h2>All</h2>
<h2>Everything</h2>
{allTasks && <TasksList tasks={allTasks} />}
<div className="buttons">
<button