diff --git a/tests/engine/ImportExecutionEngine.e2e.test.ts b/tests/engine/ImportExecutionEngine.e2e.test.ts index d9422ab..9f7c985 100644 --- a/tests/engine/ImportExecutionEngine.e2e.test.ts +++ b/tests/engine/ImportExecutionEngine.e2e.test.ts @@ -1673,7 +1673,7 @@ describe('ImportExecutionEngine E2E Tests', () => { it('should convert absolute media URLs from site domain to relative paths', async () => { // Post with image URL pointing to the site's own media const content = `
Check out this image:
-
+
Nice, right?
`; const report = createPostWithContent(content); @@ -1687,13 +1687,13 @@ describe('ImportExecutionEngine E2E Tests', () => { // Should convert to relative media URL expect(fileContent).toContain(''); // Should NOT contain the absolute URL - expect(fileContent).not.toContain('https://testblog.example.com/wp-content/uploads'); + expect(fileContent).not.toContain('https://testblog/wp-content/uploads'); }); it('should convert linked images with absolute media URLs to relative paths', async () => { // Linked image pattern common in WordPress - thumbnail links to full-size - const content = ` -Own image:
-
+
External image:
`;
@@ -1760,7 +1760,7 @@ describe('ImportExecutionEngine E2E Tests', () => {
it('should convert media URLs in markdown image syntax after HTML conversion', async () => {
// Sometimes WordPress content already has markdown-like syntax in HTML
const content = `Image with title:
-
`;
+
`;
const report = createPostWithContent(content);
await engine.executeImport(report, {});
@@ -1776,9 +1776,9 @@ describe('ImportExecutionEngine E2E Tests', () => {
it('should handle multiple images in same post', async () => {
const content = `Gallery:
-
-
-
`;
+
+
+
`;
const report = createPostWithContent(content);
await engine.executeImport(report, {});
@@ -1793,7 +1793,7 @@ describe('ImportExecutionEngine E2E Tests', () => {
});
it('should handle deep nested upload paths', async () => {
- const content = `
`;
+ const content = `
`;
const report = createPostWithContent(content);
await engine.executeImport(report, {});
@@ -1808,8 +1808,8 @@ describe('ImportExecutionEngine E2E Tests', () => {
it('should NOT convert wp-content/themes or wp-content/plugins URLs', async () => {
// Assets from themes/plugins should stay absolute (they're not imported media)
- const content = `
-
+