Skip to content
Open
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
15 changes: 15 additions & 0 deletions packages/app/cypress/e2e/tests/TestContributerPage.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,18 @@ it("can click on contributor card and click on any commit message and redirected
});
});
});
it.only("can ensure that the contributors page loads with contributor data", () => {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

it.only silently skips the other 3 tests — replace with it.

it.only causes only that test to execute while the rest of the tests in the spec are skipped. This is a development-time debugging artifact; merging it will silently disable the three pre-existing test cases (can hover on contributor card, can click on contributor card and redirected to github profile page, can click on contributor card and click on any commit message…).

🐛 Proposed fix
-it.only("can ensure that the contributors page loads with contributor data", () => {
+it("can ensure that the contributors page loads with contributor data", () => {
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
it.only("can ensure that the contributors page loads with contributor data", () => {
it("can ensure that the contributors page loads with contributor data", () => {
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@packages/app/cypress/e2e/tests/TestContributerPage.cy.js` at line 68, The
test currently uses it.only on the "can ensure that the contributors page loads
with contributor data" spec which causes the other three tests to be skipped;
change the call from it.only(...) to it(...) so the single-test filter is
removed and all tests (including "can hover on contributor card", "can click on
contributor card and redirected to github profile page", and "can click on
contributor card and click on any commit message…") run normally.

// Verify the contributors page loads and displays contributor cards
contributorsPage.contributorCard().should("have.length.greaterThan", 0);

// Verify each contributor card has required elements
contributorsPage.contributorCard().first().within(() => {
contributorsPage.contributorName().should("be.visible"); // Contributor name text
});

// Verify the page renders contributor statistics
cy.contains("Contributors and counting!").should("be.visible");
cy.get("[data-cy='contributor-card']").each(($card) => {
cy.wrap($card).find("[data-cy='contributor-name']").should("exist");
});
});