Skip to content

Commit

Permalink
error seems to be it can't connect to backend
Browse files Browse the repository at this point in the history
  • Loading branch information
kristianka committed Jun 18, 2024
1 parent 399e460 commit 0ae1a86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/E2E.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ jobs:
- name: Start docker-compose
run: docker-compose up -d

- name: Wait for database to start and migrate
run: sleep 30

- name: Install dependencies
run: cd frontend && npm install

Expand All @@ -49,5 +46,8 @@ jobs:
- name: Install Playwright browsers
run: cd frontend && npx playwright install

- name: Wait for database to start and migrate
run: sleep 120

- name: Run Playwright E2E tests
run: cd frontend && npm run test:playwright
1 change: 1 addition & 0 deletions frontend/e2e/main.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ test.describe("Boxdb-app frontend", async () => {
});

test("You can add a box", async ({ page }) => {
console.log("PAGE", page);
await expect(page.locator('text="No boxes found."')).toHaveCount(1);
await page.click("[data-testid=addBoxButton]");
await page.fill('input[id="width"]', "10");
Expand Down

0 comments on commit 0ae1a86

Please sign in to comment.