fix: remove overly broad error filtering in E2E tests#243
fix: remove overly broad error filtering in E2E tests#243Copilot wants to merge 2 commits intoclaude/pull-and-continue-I9Lk9from
Conversation
Replace `.filter((e) => !e.includes('Warning'))` with direct assertion
that errors array is empty. The previous pattern could hide real runtime
exceptions that happened to contain "Warning" in their message.
Affected files:
- e2e/type-detail.spec.ts
- e2e/ability-detail.spec.ts
- e2e/item-detail.spec.ts
- e2e/nature-detail.spec.ts (also fixed extra closing brace)
- e2e/trainer-detail.spec.ts
- e2e/location-detail.spec.ts
- e2e/move-detail.spec.ts
Addresses feedback: #238 (comment)
Co-authored-by: seandonn-boston <38230468+seandonn-boston@users.noreply.github.com>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot git apply --3way <<'EOF'
EOFa |
These changes have already been applied in commit 2be955d. All 7 E2E test files now use |
The E2E tests were filtering page errors with
.filter((e) => !e.includes('Warning'))before asserting the errors array was empty. This could hide real runtime exceptions that happen to contain "Warning" in their message.Changes
expect(errors).toHaveLength(0)in 7 E2E test filesnature-detail.spec.tsline 70Before/After
Affected test files:
type-detail,ability-detail,item-detail,nature-detail,trainer-detail,location-detail,move-detail💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.