Compare commits

..

1 Commits

Author SHA1 Message Date
claude[bot]
657190e759 fix(frontend): address latest CodeRabbit review suggestions
- Use valid sort value "runs" instead of undefined in MainSearchResultPage
  test defaultProps to match production default and satisfy type contract
- Remove redundant marketplacePage.goto() navigation in E2E test since
  the page is already at /marketplace after login

Co-authored-by: Ubbe <0ubbe@users.noreply.github.com>
2026-02-12 15:02:18 +00:00
5 changed files with 4 additions and 5 deletions

View File

@@ -9,7 +9,7 @@ import {
const defaultProps = {
searchTerm: "test-search",
sort: undefined,
sort: "runs" as const,
};
describe("MainSearchResultPage - Auth State", () => {

View File

@@ -10,7 +10,7 @@ import { create500Handler } from "@/tests/integrations/helpers/create-500-handle
const defaultProps = {
searchTerm: "test-search",
sort: undefined,
sort: "runs" as const,
};
describe("MainSearchResultPage - Error Handling", () => {

View File

@@ -6,7 +6,7 @@ import { http, HttpResponse } from "msw";
const defaultProps = {
searchTerm: "nonexistent-search-term-xyz",
sort: undefined,
sort: "runs" as const,
};
describe("MainSearchResultPage - No Results", () => {

View File

@@ -4,7 +4,7 @@ import { MainSearchResultPage } from "../MainSearchResultPage";
const defaultProps = {
searchTerm: "test-search",
sort: undefined,
sort: "runs" as const,
};
describe("MainSearchResultPage - Rendering", () => {

View File

@@ -22,7 +22,6 @@ test.describe("Marketplace Agent Page - Cross-Page Flows", () => {
const richUser = getTestUserWithLibraryAgents();
await loginPage.login(richUser.email, richUser.password);
await hasUrl(page, "/marketplace");
await marketplacePage.goto(page);
const firstStoreCard = await marketplacePage.getFirstTopAgent();
await firstStoreCard.click();