Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
superstar54 committed Dec 13, 2023
1 parent ce75ef3 commit 79ca19f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,17 +106,18 @@ jobs:
- name: Start AiiDA daemon
run: verdi daemon start 2

- name: Install Dependencies
working-directory: aiida_worktree/web/frontend
run: npm install
- name: FastAPI
working-directory: aiida_worktree/web/backend
run: |
python main.py &
- name: Start React Application
- name: Install Dependencies, Start React Application
working-directory: aiida_worktree/web/frontend
run: npm start
background: true

- name: Wait for React App to Start
run: sleep 10
run: |
npm install
# npm run build
npm run start &
sleep 5
- name: Run pytest
env:
Expand Down
3 changes: 2 additions & 1 deletion tests/web/test_frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ def test_homepage(page):
pytest.fail("Element 'a[href='/wortre']' not found on the page")


def test_worktree(page):
def test_worktree(page, wt_calcfunction):
wt_calcfunction.submit(wait=True)
page.goto("http://localhost:3000/worktree")

# Check for the existence of a specific element on the page
Expand Down

0 comments on commit 79ca19f

Please sign in to comment.