From 35858c8b5507269353a39150831e6719ea9b279a Mon Sep 17 00:00:00 2001 From: Sadhana Shree <180205437+SadhanaShree25@users.noreply.github.com> Date: Fri, 20 Mar 2026 16:21:05 +0530 Subject: [PATCH 01/17] Update Lighthouse CI workflow for pull requests Signed-off-by: Sadhana Shree <180205437+SadhanaShree25@users.noreply.github.com> --- .github/workflows/lighthouse_comment.yml | 49 +++++++++++++++++------- 1 file changed, 36 insertions(+), 13 deletions(-) diff --git a/.github/workflows/lighthouse_comment.yml b/.github/workflows/lighthouse_comment.yml index 403ac4e7..a257d73c 100644 --- a/.github/workflows/lighthouse_comment.yml +++ b/.github/workflows/lighthouse_comment.yml @@ -1,29 +1,52 @@ -name: Lighthouse – Comment +name: Lighthouse CI on: - workflow_run: - workflows: ["Lighthouse – Run"] - types: - - completed + pull_request: + branches: [main] permissions: - issues: write + contents: read pull-requests: write jobs: - comment: + lighthouse: runs-on: ubuntu-latest steps: - - name: Download Lighthouse comment artifact - uses: actions/download-artifact@v4 + # 1. Checkout code + - name: Checkout repo + uses: actions/checkout@v4 + + # 2. Setup Node + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 18 + + # 3. Install dependencies (if needed) + - name: Install dependencies + run: npm install + + # 4. Build project (if React/Vite) + - name: Build project + run: npm run build + + # 5. Run Lighthouse CI + - name: Run Lighthouse CI + uses: treosh/lighthouse-ci-action@v11 with: - name: lighthouse-comment - path: . + urls: | + https://your-live-site-url.com + uploadArtifacts: true + temporaryPublicStorage: true - - name: Ensure comment file exists - run: test -f lighthouse-comment.md + # 6. Generate comment file + - name: Create Lighthouse comment + run: | + echo "## 🚀 Lighthouse Report" > lighthouse-comment.md + echo "Check performance report in artifacts." >> lighthouse-comment.md + # 7. Post comment on PR - name: Post Lighthouse comment uses: peter-evans/create-or-update-comment@v4 with: From 4a170e7c0cdf1f0692f7312872836eac33c9806a Mon Sep 17 00:00:00 2001 From: Sadhana Shree <180205437+SadhanaShree25@users.noreply.github.com> Date: Mon, 6 Apr 2026 18:44:44 +0530 Subject: [PATCH 02/17] Update .github/workflows/lighthouse_comment.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Sadhana Shree <180205437+SadhanaShree25@users.noreply.github.com> --- .github/workflows/lighthouse_comment.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/lighthouse_comment.yml b/.github/workflows/lighthouse_comment.yml index a257d73c..851bf172 100644 --- a/.github/workflows/lighthouse_comment.yml +++ b/.github/workflows/lighthouse_comment.yml @@ -7,6 +7,7 @@ on: permissions: contents: read pull-requests: write + issues: write jobs: lighthouse: From 4f73358c6bad22474eb2fe28a9806382762d712e Mon Sep 17 00:00:00 2001 From: Sadhana Shree <180205437+SadhanaShree25@users.noreply.github.com> Date: Mon, 6 Apr 2026 18:44:55 +0530 Subject: [PATCH 03/17] Update .github/workflows/lighthouse_comment.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Sadhana Shree <180205437+SadhanaShree25@users.noreply.github.com> --- .github/workflows/lighthouse_comment.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/lighthouse_comment.yml b/.github/workflows/lighthouse_comment.yml index 851bf172..7de94dc0 100644 --- a/.github/workflows/lighthouse_comment.yml +++ b/.github/workflows/lighthouse_comment.yml @@ -39,7 +39,6 @@ jobs: urls: | https://your-live-site-url.com uploadArtifacts: true - temporaryPublicStorage: true # 6. Generate comment file - name: Create Lighthouse comment From 80d20952b934895b87d54c56544a8c6d442b6390 Mon Sep 17 00:00:00 2001 From: Sadhana Shree <180205437+SadhanaShree25@users.noreply.github.com> Date: Mon, 6 Apr 2026 18:45:12 +0530 Subject: [PATCH 04/17] Update .github/workflows/lighthouse_comment.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Sadhana Shree <180205437+SadhanaShree25@users.noreply.github.com> --- .github/workflows/lighthouse_comment.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/lighthouse_comment.yml b/.github/workflows/lighthouse_comment.yml index 7de94dc0..fb1fbb58 100644 --- a/.github/workflows/lighthouse_comment.yml +++ b/.github/workflows/lighthouse_comment.yml @@ -1,8 +1,7 @@ name: Lighthouse CI on: - pull_request: - branches: [main] + workflow_dispatch: permissions: contents: read From 2a1838c17f0d831aa1ab344a1646be32e51d0c53 Mon Sep 17 00:00:00 2001 From: Deep Shekhar Singh Date: Wed, 25 Mar 2026 15:29:30 +0530 Subject: [PATCH 05/17] feat: setup Playwright e2e testing infrastructure (#328) * feat: setup Playwright e2e testing infrastructure Signed-off-by: DSingh0304 * feat: add environment variables for WordPress API in Playwright config Signed-off-by: DSingh0304 * feat: enhance Playwright tests with new homepage spec and build steps Signed-off-by: DSingh0304 * fix: update Playwright config to use hardcoded WordPress API URLs Signed-off-by: DSingh0304 * fix: update Playwright workflow permissions and add continue-on-error for PR comments Signed-off-by: DSingh0304 * test infrastructure and workflow updates. Signed-off-by: DSingh0304 * test: Add comprehensive Playwright E2E for navigation and more stories component. Signed-off-by: DSingh0304 * Mock node js server Signed-off-by: DSingh0304 * Mock json data Signed-off-by: DSingh0304 * test: extensive Playwright test coverage for components Signed-off-by: DSingh0304 * Fixing CI Failures for webkit browser Signed-off-by: DSingh0304 * Component Test - Footer and Heropost Signed-off-by: DSingh0304 * Fixing flaky and failed test for webkit browser Signed-off-by: DSingh0304 * Playwright test for PostHeader as well as PostBody Signed-off-by: DSingh0304 * Removing the PR commenting feature for now Signed-off-by: DSingh0304 * WebKit error fixed Signed-off-by: DSingh0304 * MoreStories webkit error fixed Signed-off-by: DSingh0304 * Fixing flaky MoreStories webkit test Signed-off-by: DSingh0304 * Update tests/components/PostHeader.spec.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Deep Shekhar Singh * Update tests/components/PostBody.spec.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Deep Shekhar Singh * Refactor viewport checks in Navigation and HomePage tests for improved clarity Signed-off-by: DSingh0304 * Add tests for ScrollToTop component functionality and accessibility Signed-off-by: Deep * Add tests for TableContents component functionality on desktop and mobile Signed-off-by: Deep * Add tests for Tag component functionality and accessibility Signed-off-by: Deep * Add tests for Testimonials component functionality and accessibility Signed-off-by: Deep * Add tests for TopBlogs component functionality and accessibility Signed-off-by: Deep * E2E Test for technology page Signed-off-by: Deep * E2E Test for technology post page Signed-off-by: Deep * Update tests/components/Tag.spec.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Deep Shekhar Singh * Update tests/components/ScrollToTop.spec.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Deep Shekhar Singh * Update tests/components/Tag.spec.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Deep Shekhar Singh * Update tests/pages/TechnologyPostPage.spec.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Deep Shekhar Singh * Update tests/components/TableContents.spec.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Deep Shekhar Singh * Update tests/pages/TechnologyPage.spec.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Deep Shekhar Singh * Refactor navigation logic in PostHeader and ScrollToTop tests to use href attribute for improved reliability Signed-off-by: Deep * Playwright config and CI changes Signed-off-by: Deep * Using build server instead of dev Signed-off-by: Deep * remove waitForTimeout as Playwright natively handles dynamic UI readiness Signed-off-by: Deep * remove waitForTimeout as Playwright natively handles dynamic UI readiness-2 Signed-off-by: Deep * Removing gaurds in core structural elements Signed-off-by: Deep * refactor: simplify visibility checks for LinkedIn and Slack social links in footer tests Signed-off-by: Deep * refactor: add data-testid attributes for improved test targeting in components Signed-off-by: Deep * test: add data-testid attributes for footer and tags sections to improve test targeting Signed-off-by: Deep * Update tests/components/ScrollToTop.spec.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Deep Shekhar Singh * Update tests/components/TopBlogs.spec.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Deep Shekhar Singh * Update tests/components/TableContents.spec.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Deep Shekhar Singh * Update tests/components/MoreStories.spec.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Deep Shekhar Singh * Update tests/components/PostBody.spec.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Deep Shekhar Singh * Update tests/components/ScrollToTop.spec.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Deep Shekhar Singh * Update tests/components/TableContents.spec.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Deep Shekhar Singh * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Deep Shekhar Singh * Add tests for Author Detail Page and Authors Index Page component availability Signed-off-by: Deep * Add tests for Community Page, Community Post Page, and Community Search Page component availability Signed-off-by: Deep * Add tests for Tag Detail Page and Tags Index Page component availability Signed-off-by: Deep * Add tests for Not Found Page and Search Page component availability Signed-off-by: Deep * Add tests for Mobile Layout and Navigation responsiveness Signed-off-by: Deep * Add tests for API Mocking and SEO Meta Tags configuration Signed-off-by: Deep * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Deep Shekhar Singh * Refactor tests for improved visibility checks and assertions in Navigation, PostHeader, ScrollToTop, TableContents, HomePage, and TechnologyPostPage components Signed-off-by: Deep * Update component visibility assertions in various test files for improved accuracy Signed-off-by: Deep * Comment out unused device configurations for Firefox and Webkit in Playwright config Signed-off-by: Deep * Add community posts fixture and update mock server to handle community category queries Signed-off-by: Deep * Simplify Playwright E2E tests configuration by removing browser matrix and hardcoding to chromium Signed-off-by: Deep * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Deep Shekhar Singh * Enhance component tests for improved visibility and accuracy across various pages Signed-off-by: Deep * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Deep Shekhar Singh * Enhance test reliability by adding timeout and visibility checks in various components Signed-off-by: Deep * Update @types/node to version 18.19.130 and add engines field for Node.js compatibility Signed-off-by: Deep * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Deep Shekhar Singh * Enhance mobile layout tests by adding max width checks and improving visibility assertions Signed-off-by: Deep * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Deep Shekhar Singh * Refactor TOC mobile tests to improve dropdown item selection and visibility checks Signed-off-by: Deep * Refactor TOC component tests to remove conditional click and ensure visibility checks for first post Signed-off-by: Deep * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Deep Shekhar Singh * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Deep Shekhar Singh * Refactor Playwright configuration and mobile layout tests to improve horizontal overflow checks Signed-off-by: Deep * Refactor horizontal overflow epsilon to use WIDTH_EPSILON for consistency in mobile layout tests Signed-off-by: Deep * Refactor test interactions to ensure visibility and enablement before clicks across multiple components Signed-off-by: Deep * Refactor tests in ScrollToTop, TableContents, TechnologyPostPage, and MobileNavigation for improved visibility and reliability of elements before interactions Signed-off-by: Deep * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Deep Shekhar Singh * Refactor navigation tests to improve URL wait conditions and enhance locator strategies for better reliability Signed-off-by: Deep * Refactor environment variable loading to improve error handling and provide clearer warnings when .env.test is missing Signed-off-by: Deep * fix: improve test stability by adding timeouts to element visibility checks and refining URL wait conditions in tests. Signed-off-by: Deep * refactor: Enhance Playwright tests by adding data-testid attributes to components and improving test selectors. Signed-off-by: Deep * refactor: enhance Playwright test reliability by using explicit waits for content and data-testid locators. Signed-off-by: Deep --------- Signed-off-by: DSingh0304 Signed-off-by: Deep Shekhar Singh Signed-off-by: Deep Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Deep Co-authored-by: Manas Manohar <21006907+manasmanohar@users.noreply.github.com> --- .env.test.example | 16 + .github/scripts/lighthouse-report.js | 70 ----- .github/workflows/lighthouse_runner.yml | 7 - .github/workflows/playwright.yml | 54 ++++ .gitignore | 12 +- components/AuthorCard.tsx | 1 + components/ScrollToTop.tsx | 1 + components/TableContents.tsx | 2 +- components/avatar.tsx | 2 +- components/footer.tsx | 2 +- components/hero-post.tsx | 2 +- components/navbar/FloatingNavbar.tsx | 2 +- components/navbar/FloatingNavbarClient.tsx | 1 + components/post-body.tsx | 9 +- components/post-card.tsx | 1 + components/post-grid.tsx | 2 +- components/post-preview.tsx | 1 + components/tag.tsx | 4 +- package-lock.json | 104 ++++++- package.json | 15 +- pages/technology/[slug].tsx | 2 +- playwright.config.ts | 122 ++++++++ tests/components/Footer.spec.ts | 131 ++++++++ tests/components/HeroPost.spec.ts | 84 +++++ tests/components/MoreStories.spec.ts | 73 +++++ tests/components/Navigation.spec.ts | 96 ++++++ tests/components/PostBody.spec.ts | 78 +++++ tests/components/PostHeader.spec.ts | 47 +++ tests/components/ScrollToTop.spec.ts | 79 +++++ tests/components/TableContents.spec.ts | 138 +++++++++ tests/components/Tag.spec.ts | 61 ++++ tests/components/Testimonials.spec.ts | 68 +++++ tests/components/TopBlogs.spec.ts | 65 ++++ tests/e2e/ApiMock.spec.ts | 108 +++++++ tests/e2e/SeoMeta.spec.ts | 75 +++++ tests/fixtures/community-posts.json | 126 ++++++++ tests/fixtures/empty-search-response.json | 11 + tests/fixtures/error-response.json | 10 + tests/fixtures/search-success-response.json | 67 ++++ tests/fixtures/single-post.json | 104 +++++++ tests/fixtures/technology-posts.json | 126 ++++++++ tests/mock-server.js | 322 ++++++++++++++++++++ tests/pages/AuthorDetailPage.spec.ts | 47 +++ tests/pages/AuthorsIndexPage.spec.ts | 40 +++ tests/pages/CommunityPage.spec.ts | 39 +++ tests/pages/CommunityPostPage.spec.ts | 45 +++ tests/pages/CommunitySearchPage.spec.ts | 40 +++ tests/pages/HomePage.spec.ts | 92 ++++++ tests/pages/NotFoundPage.spec.ts | 38 +++ tests/pages/SearchPage.spec.ts | 42 +++ tests/pages/TagDetailPage.spec.ts | 40 +++ tests/pages/TagsIndexPage.spec.ts | 47 +++ tests/pages/TechnologyPage.spec.ts | 39 +++ tests/pages/TechnologyPostPage.spec.ts | 47 +++ tests/responsive/MobileLayout.spec.ts | 203 ++++++++++++ tests/responsive/MobileNavigation.spec.ts | 125 ++++++++ 56 files changed, 3083 insertions(+), 102 deletions(-) create mode 100644 .env.test.example delete mode 100644 .github/scripts/lighthouse-report.js create mode 100644 .github/workflows/playwright.yml create mode 100644 playwright.config.ts create mode 100644 tests/components/Footer.spec.ts create mode 100644 tests/components/HeroPost.spec.ts create mode 100644 tests/components/MoreStories.spec.ts create mode 100644 tests/components/Navigation.spec.ts create mode 100644 tests/components/PostBody.spec.ts create mode 100644 tests/components/PostHeader.spec.ts create mode 100644 tests/components/ScrollToTop.spec.ts create mode 100644 tests/components/TableContents.spec.ts create mode 100644 tests/components/Tag.spec.ts create mode 100644 tests/components/Testimonials.spec.ts create mode 100644 tests/components/TopBlogs.spec.ts create mode 100644 tests/e2e/ApiMock.spec.ts create mode 100644 tests/e2e/SeoMeta.spec.ts create mode 100644 tests/fixtures/community-posts.json create mode 100644 tests/fixtures/empty-search-response.json create mode 100644 tests/fixtures/error-response.json create mode 100644 tests/fixtures/search-success-response.json create mode 100644 tests/fixtures/single-post.json create mode 100644 tests/fixtures/technology-posts.json create mode 100644 tests/mock-server.js create mode 100644 tests/pages/AuthorDetailPage.spec.ts create mode 100644 tests/pages/AuthorsIndexPage.spec.ts create mode 100644 tests/pages/CommunityPage.spec.ts create mode 100644 tests/pages/CommunityPostPage.spec.ts create mode 100644 tests/pages/CommunitySearchPage.spec.ts create mode 100644 tests/pages/HomePage.spec.ts create mode 100644 tests/pages/NotFoundPage.spec.ts create mode 100644 tests/pages/SearchPage.spec.ts create mode 100644 tests/pages/TagDetailPage.spec.ts create mode 100644 tests/pages/TagsIndexPage.spec.ts create mode 100644 tests/pages/TechnologyPage.spec.ts create mode 100644 tests/pages/TechnologyPostPage.spec.ts create mode 100644 tests/responsive/MobileLayout.spec.ts create mode 100644 tests/responsive/MobileNavigation.spec.ts diff --git a/.env.test.example b/.env.test.example new file mode 100644 index 00000000..15e66b8f --- /dev/null +++ b/.env.test.example @@ -0,0 +1,16 @@ +# Test Environment Variables +# Copy this file to .env.test and fill in your values + +# WordPress API Configuration +WORDPRESS_API_URL=https://wp.keploy.io/graphql +NEXT_PUBLIC_WORDPRESS_API_URL=https://wp.keploy.io/graphql + +# Test Configuration +# Base URL for the application under test +BASE_URL=http://localhost:3000/blog + +# Timeouts (milliseconds) +TEST_TIMEOUT=30000 +TEST_EXPECT_TIMEOUT=10000 +TEST_ACTION_TIMEOUT=15000 +TEST_NAVIGATION_TIMEOUT=30000 diff --git a/.github/scripts/lighthouse-report.js b/.github/scripts/lighthouse-report.js deleted file mode 100644 index 037110ae..00000000 --- a/.github/scripts/lighthouse-report.js +++ /dev/null @@ -1,70 +0,0 @@ -const fs = require('fs'); -const path = require('path'); - -const dir = '.lighthouseci'; -const files = fs.readdirSync(dir).filter(file => file.endsWith('.report.json')); - -if (files.length < 2) { - console.error('❌ Not enough Lighthouse reports found.'); - process.exit(1); -} - -let mainReport = ''; -let prReport = ''; - -for (const file of files) { - const json = JSON.parse(fs.readFileSync(path.join(dir, file), 'utf8')); - const url = json.finalUrl; - - if (url.includes('3000')) mainReport = json; - else if (url.includes('3001')) prReport = json; -} - -function extract(report) { - return { - performance: report.categories.performance.score * 100, - accessibility: report.categories.accessibility.score * 100, - bestPractices: report.categories['best-practices'].score * 100, - seo: report.categories.seo.score * 100, - }; -} - -const main = extract(mainReport); -const pr = extract(prReport); - -const md = ` -**🔍 Lighthouse Scores** - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Metric⚡ PR Branch📦 Main Branch
Performance${pr.performance}${main.performance}
Accessibility${pr.accessibility}${main.accessibility}
Best Practices${pr.bestPractices}${main.bestPractices}
SEO${pr.seo}${main.seo}
-`; - - -fs.writeFileSync('lighthouse-comment.md', md); -console.log('✅ Comments written to lighthouse-comment.md'); - \ No newline at end of file diff --git a/.github/workflows/lighthouse_runner.yml b/.github/workflows/lighthouse_runner.yml index 9ca7247e..2309cadd 100644 --- a/.github/workflows/lighthouse_runner.yml +++ b/.github/workflows/lighthouse_runner.yml @@ -72,11 +72,4 @@ jobs: http://localhost:3000/blog uploadArtifacts: true - - name: Generate Lighthouse comment - run: node .github/scripts/lighthouse-report.js - - name: Upload Lighthouse comment artifact - uses: actions/upload-artifact@v4 - with: - name: lighthouse-comment - path: lighthouse-comment.md diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml new file mode 100644 index 00000000..793f17da --- /dev/null +++ b/.github/workflows/playwright.yml @@ -0,0 +1,54 @@ +name: Playwright E2E Tests + +on: + pull_request: + branches: [ main, master ] + push: + branches: [ main, master ] + +jobs: + test: + name: E2E Tests (chromium) + timeout-minutes: 20 + runs-on: ubuntu-latest + permissions: + contents: read + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '18' + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Install Playwright Browsers + run: npx playwright install --with-deps chromium + + - name: Run Playwright tests + run: npm run test:e2e -- --project=chromium + env: + CI: true + BASE_URL: http://localhost:3000/blog + + - name: Upload test results + if: failure() + uses: actions/upload-artifact@v4 + with: + name: test-results-chromium + path: test-results/ + retention-days: 7 + + - name: Upload test report + if: failure() + uses: actions/upload-artifact@v4 + with: + name: playwright-report-chromium + path: playwright-report/ + retention-days: 7 + diff --git a/.gitignore b/.gitignore index 53a5bbb9..621ad352 100644 --- a/.gitignore +++ b/.gitignore @@ -27,7 +27,9 @@ yarn-debug.log* yarn-error.log* # local env files -.env* +.env +.env*.local +.env.test # vercel .vercel @@ -37,3 +39,11 @@ yarn-error.log* next-env.d.ts .early.coverage + +# Playwright +node_modules/ +/test-results/ +/playwright-report/ +/blob-report/ +/playwright/.cache/ +/playwright/.auth/ diff --git a/components/AuthorCard.tsx b/components/AuthorCard.tsx index 8a130d49..5ee31e5d 100644 --- a/components/AuthorCard.tsx +++ b/components/AuthorCard.tsx @@ -71,6 +71,7 @@ const AuthorCard: React.FC = ({ return (
diff --git a/components/ScrollToTop.tsx b/components/ScrollToTop.tsx index 8311c511..c88ba0c3 100644 --- a/components/ScrollToTop.tsx +++ b/components/ScrollToTop.tsx @@ -72,6 +72,7 @@ const ScrollToTop = () => { return (
) : ( -