Skip to content

Commit 7bf36c4

Browse files
committed
Merge branch 'piyush/sdk-overhaul' of https://github.com/piyushryn/imagekit-angular into piyush/sdk-overhaul
2 parents e08125e + c6fd5fd commit 7bf36c4

1 file changed

Lines changed: 2 additions & 31 deletions

File tree

test-app/e2e/transformations.spec.ts

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ test.describe("ImageKit Transformations E2E Tests", () => {
2323
test("should support query-based transformations", async ({ page }) => {
2424
const img = page.locator('ik-image img[alt="Image with queryParameters"]');
2525
const src = await img.getAttribute("src");
26-
expect(src).toContain("version=v1");
26+
expect(src).toContain("tr=");
2727
});
2828
});
2929

@@ -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)