Skip to content

Commit

Permalink
Merge pull request #79 from rakazirut/playwrightFix
Browse files Browse the repository at this point in the history
Playwright fix
  • Loading branch information
rakazirut authored Aug 11, 2024
2 parents bb1203d + b289b33 commit 1230705
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Created Playwright Report Directory
run: mkdir playwright-report
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v4
Expand Down
5 changes: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ dist-ssr
*.njsproj
*.sln
*.sw?
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default defineConfig({
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: "list",
reporter: [["html"], ["list"]],
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
Expand Down
2 changes: 1 addition & 1 deletion playwright/tests/login.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ test.describe("Hivemind: Login Page Tests", { tag: ["@login"] }, () => {
};
await test.step("Attempt to login with invalid credentials", async () => {
await loginPage.login(options);
await expect(loginPage.btnLogin).toHaveText("Login Failed");
await expect(page.getByText("Login Failed")).toBeVisible();
});
},
);
Expand Down

0 comments on commit 1230705

Please sign in to comment.