Skip to content

Commit

Permalink
feat: update MiniMarket e2e test to handle error messages and improve…
Browse files Browse the repository at this point in the history
… type definitions
  • Loading branch information
TBardini committed Jan 17, 2025
1 parent 8f34d60 commit f2fcc05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ test.describe("Mini Market @smoke", () => {
testInfo.snapshotSuffix;

// Custom report screenshot name & path
let imageName;
let imageName: string = "";
const pathScreenshot = `next-test-report/public/test-report`;

try {
Expand Down Expand Up @@ -95,7 +95,7 @@ test.describe("Mini Market @smoke", () => {
pathScreenshot: pathScreenshot,
imageName: imageName,
jiraRef: "TICKET-001",
errorMessage: error,
errorMessage: error instanceof Error ? error.message : String(error),
});
}
});
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"moduleResolution": "Node",
"outDir": "./dist",
"resolveJsonModule": true,
"types": ["@playwright/test"]
"types": ["@playwright/test", "node"]
},
"include": ["tests/**/*.ts", "utils/**/*.ts", "playwright.config.ts"],
"exclude": ["node_modules", "dist", "next-js", "script"]
Expand Down

0 comments on commit f2fcc05

Please sign in to comment.