Skip to content

test: add e2e tests for dashboard and events pages#5062

Open
anushkaaaaaaaa wants to merge 4 commits intoasyncapi:masterfrom
anushkaaaaaaaa:dash-events
Open

test: add e2e tests for dashboard and events pages#5062
anushkaaaaaaaa wants to merge 4 commits intoasyncapi:masterfrom
anushkaaaaaaaa:dash-events

Conversation

@anushkaaaaaaaa
Copy link
Contributor

@anushkaaaaaaaa anushkaaaaaaaa commented Feb 2, 2026

Description

  • i have added e2e tests in cypress for dashboard and events pages under community dropdown.

Related issue(s)

Summary by CodeRabbit

  • Tests
    • Added comprehensive end-to-end test coverage for the Dashboard page, including header, sections, and navigation links.
    • Added comprehensive end-to-end test coverage for the Events page, verifying sections, event cards, filters, and external links.
    • Enhanced test infrastructure with new verification utilities for improved test maintainability.

@netlify
Copy link

netlify bot commented Feb 2, 2026

Deploy Preview for asyncapi-website ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit a446bb1
🔍 Latest deploy log https://app.netlify.com/projects/asyncapi-website/deploys/698064fff6c5c500082e881b
😎 Deploy Preview https://deploy-preview-5062--asyncapi-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 2, 2026

📝 Walkthrough

Walkthrough

This PR adds end-to-end test coverage for Dashboard and Events pages using Cypress with the page object pattern. It introduces DashboardPage and EventsPage page objects extending BasePageTools, incorporates two test suites verifying UI elements and functionality, and extends BasePageTools with new verification helper methods.

Changes

Cohort / File(s) Summary
Test Suites
cypress/dashboard.cy.js, cypress/events.cy.js
New Cypress test files that verify page elements and functionality through page object interactions. Dashboard tests check header, sections, and links. Events tests validate sections, filters, calendar links, FAQs, recordings, and event cards across multiple tabs.
Page Objects
cypress/pages/dashboard.js, cypress/pages/events.js
New page object classes extending BasePageTools to model Dashboard and Events pages. Provide navigation methods and verification utilities for header, sections, links, filters, and event cards.
Base Page Tools
cypress/pages/BasePageTools.js
Added three new public verification methods: verifyElementIsVisible() for element visibility, verifyTextVisible() for text presence, and verifyLinkWithText() for validating links with text and href patterns.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~15 minutes

Poem

🐰 With whiskers twitching, I hop through tests,
Page objects hopping at their very best,
Dashboard and events now verified with care,
Links and elements checked everywhere!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely summarizes the main change: adding end-to-end tests for dashboard and events pages using Cypress.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@asyncapi-bot
Copy link
Contributor

asyncapi-bot commented Feb 2, 2026

⚡️ Lighthouse report for the changes in this PR:

Category Score
🔴 Performance 46
🟢 Accessibility 98
🟢 Best practices 92
🟢 SEO 100
🔴 PWA 33

Lighthouse ran on https://deploy-preview-5062--asyncapi-website.netlify.app/

@codecov
Copy link

codecov bot commented Feb 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (229d0b9) to head (a446bb1).

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #5062   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           22        22           
  Lines          796       796           
  Branches       146       146           
=========================================
  Hits           796       796           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To Be Triaged

Development

Successfully merging this pull request may close these issues.

2 participants