Fix Greek lookup test expecting a single 'faith, belief' field
Build and Push Docker Image / build-and-push (push) Successful in 4m7s
Build and Push Docker Image / build-and-push (push) Successful in 4m7s
With no gloss-map entry, the English gloss falls back to the KJV definition, so both English Gloss and Short Definition show it. Assert both instead of failing on the duplicate. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d08c701698
commit
33e3f2bdc6
1 file changed
+3
-1
+3
-1
@@ -322,7 +322,9 @@ describe('Greek word lookup', () => {
|
|||||||
fireEvent.click(screen.getByRole('button', { name: /look up greek/i }));
|
fireEvent.click(screen.getByRole('button', { name: /look up greek/i }));
|
||||||
await screen.findByDisplayValue('πίστις');
|
await screen.findByDisplayValue('πίστις');
|
||||||
expect(screen.getByDisplayValue('pistis')).toBeInTheDocument();
|
expect(screen.getByDisplayValue('pistis')).toBeInTheDocument();
|
||||||
expect(screen.getByDisplayValue('faith, belief')).toBeInTheDocument();
|
// With no gloss-map entry, the English gloss falls back to the KJV
|
||||||
|
// definition, so it matches the Short Definition field.
|
||||||
|
expect(screen.getAllByDisplayValue('faith, belief')).toHaveLength(2);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('shows "No definition found." when the API returns an empty array', async () => {
|
test('shows "No definition found." when the API returns an empty array', async () => {
|
||||||
|
|||||||
Reference in new issue
Block a user