Skip to content

Commit

Permalink
remove unnecessary mock in settings test
Browse files Browse the repository at this point in the history
  • Loading branch information
fmaclen committed Apr 11, 2024
1 parent fee31ff commit 32b42ea
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions tests/settings.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect, test } from '@playwright/test';
import { MOCK_API_TAGS_RESPONSE, mockTagsResponse } from './utils';
import { mockTagsResponse } from './utils';

test.beforeEach(async ({ page }) => {
await mockTagsResponse(page);
Expand Down Expand Up @@ -36,15 +36,6 @@ test('handles server status updates correctly', async ({ page }) => {
await page.goto('/');
await page.waitForSelector('label:has-text("Server")');

// Mock the API to return a successful response
await page.route('**/api/tags', async (route) => {
await route.fulfill({
status: 200,
contentType: 'application/json',
body: JSON.stringify(MOCK_API_TAGS_RESPONSE)
});
});

// Trigger a new API request by typing in the input field
await page.fill('input[placeholder="http://localhost:11434"]', 'http://example.com');

Expand Down

0 comments on commit 32b42ea

Please sign in to comment.