Skip to content

Commit 9a40221

Browse files
takaokoujiclaude
andcommitted
fix: resolve Jest integration test failures
- Remove duplicate mock file causing Jest warnings - Add missing urlFor method to SeleniumHelper class - Fix 'urlFor is not a function' errors in Ruby tab tests 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent a315129 commit 9a40221

File tree

2 files changed

+9
-22
lines changed

2 files changed

+9
-22
lines changed

src/lib/themes/dark/__mocks__/index.js

Lines changed: 0 additions & 22 deletions
This file was deleted.

test/helpers/selenium-helper.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,15 @@ class SeleniumHelper {
408408
throw await enhanceError(outerError, cause);
409409
}
410410
}
411+
412+
urlFor (path) {
413+
switch (path) {
414+
case '/':
415+
return pathModule.resolve(__dirname, '../../build/index.html');
416+
default:
417+
throw new Error(`Invalid path: ${path}`);
418+
}
419+
}
411420
}
412421

413422
export default SeleniumHelper;

0 commit comments

Comments
 (0)