Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,20 @@ jobs:
node-version-file: '.nvmrc'
cache: 'npm'

- name: Install dependencies for web
run: npm install --filter=@tech-companies-portugal/web
- name: Cache Playwright browsers
id: playwright-cache
uses: actions/cache@v3
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ hashFiles('**/package-lock.json') }}

- name: Install Playwright browsers
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: npx playwright install chromium --with-deps

- name: Install dependencies for web
run: npm install --filter=@tech-companies-portugal/web

- name: Run Playwright tests
run: npm run test:e2e:web

Expand Down
2 changes: 1 addition & 1 deletion apps/web/tests/homepage.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ test.describe("Homepage e2e tests", () => {
// check if companies list is visible
await expect(page.getByTestId("companies-list")).toBeVisible();

// check if there are more than 1 company items
// check if there are companies in the list
const companyItems = await page.getByTestId("company-item").all();
expect(companyItems.length).toBeGreaterThan(1);

Expand Down