Skip to content

Commit c6fd5fd

Browse files
committed
refactor: remove redundant URL construction validation tests from E2E suite
1 parent 8f4608c commit c6fd5fd

1 file changed

Lines changed: 1 addition & 30 deletions

File tree

test-app/e2e/transformations.spec.ts

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -160,35 +160,6 @@ test.describe("ImageKit Transformations E2E Tests", () => {
160160
});
161161
});
162162

163-
test.describe("URL Construction Validation", () => {
164-
test("should build valid URLs for all images", async ({ page }) => {
165-
const images = page.locator("ik-image img");
166-
const count = await images.count();
167-
168-
for (let i = 0; i < count; i++) {
169-
const src = await images.nth(i).getAttribute("src");
170-
if (src) {
171-
// Should be a valid URL
172-
expect(() => new URL(src)).not.toThrow();
173-
// Should use HTTPS
174-
expect(src).toMatch(/^https:\/\//);
175-
}
176-
}
177-
});
178-
179-
test("should build valid URLs for all videos", async ({ page }) => {
180-
await page.locator("h1").filter({ hasText: "Video" }).scrollIntoViewIfNeeded();
181-
const videos = page.locator("ik-video video");
182-
const count = await videos.count();
183-
184-
for (let i = 0; i < count; i++) {
185-
const src = await videos.nth(i).getAttribute("src");
186-
if (src) {
187-
expect(() => new URL(src)).not.toThrow();
188-
expect(src).toMatch(/^https:\/\//);
189-
}
190-
}
191-
});
192-
});
163+
193164
});
194165

0 commit comments

Comments
 (0)