Free & Open-Source Invoice Generator - No Sign-Up, No Ads, Instant PDF Export, 100% In-Browser, and Fully Customizable Templates.
TypeScript fintechinvoiceinvoice-generatorinvoice-pdfinvoice-templateinvoicesnextjsopen-sourcequotesreactreact-pdf-rendererself-hostedshadcn-uitailwindcsstypescript
fix: update asset URLs in E2E tests and layout for improved resource management
VladSez272a7ac9afbd
diff --git a/e2e/about.test.ts b/e2e/about.test.tsindex a3b5937..446fb43 100644--- a/e2e/about.test.ts+++ b/e2e/about.test.ts@@ -1,3 +1,4 @@+import { VIDEO_DEMO_URL } from "@/config";import { test, expect } from "@playwright/test";test.describe("About page", () => {@@ -39,7 +40,7 @@ test.describe("About page", () => {await expect(video).toBeVisible();await expect(video).toHaveAttribute("poster",- "https://easy-invoice-pdf-assets.1xeq.workers.dev/easy-invoice-video-placeholder.webp"+ "https://ik.imagekit.io/fl2lbswwo/easy-invoice-video-placeholder.webp");await expect(video).toHaveAttribute("muted");await expect(video).toHaveAttribute("loop");@@ -50,7 +51,7 @@ test.describe("About page", () => {const videoSource = video.locator("source");await expect(videoSource).toHaveAttribute("src",- "https://easy-invoice-pdf-assets.1xeq.workers.dev/easy-invoice-demo.mp4#t=0.001"+ `${VIDEO_DEMO_URL}#t=0.001`);await expect(videoSource).toHaveAttribute("type", "video/mp4");diff --git a/e2e/invoice-form.test.ts b/e2e/invoice-form.test.tsindex 67cc551..9278975 100644--- a/e2e/invoice-form.test.ts+++ b/e2e/invoice-form.test.ts@@ -12,6 +12,7 @@ import {import { expect, test } from "@playwright/test";import dayjs from "dayjs";import { INITIAL_INVOICE_DATA } from "../src/app/constants";+import { VIDEO_DEMO_URL } from "@/config";test.describe("Invoice Generator Page", () => {test.beforeEach(async ({ page }) => {@@ -85,10 +86,7 @@ test.describe("Invoice Generator Page", () => {await expect(video).toBeVisible();- await expect(video).toHaveAttribute(- "src",- "https://easy-invoice-pdf-assets.1xeq.workers.dev/easy-invoice-demo.mp4"- );+ await expect(video).toHaveAttribute("src", VIDEO_DEMO_URL);await expect(video).toHaveAttribute("autoplay", "");await expect(video).toHaveAttribute("controls", "");await expect(video).toHaveAttribute("playsInline", "");diff --git a/src/app/[locale]/about/layout.tsx b/src/app/[locale]/about/layout.tsxindex 8428530..44143ad 100644--- a/src/app/[locale]/about/layout.tsx+++ b/src/app/[locale]/about/layout.tsx@@ -43,9 +43,10 @@ export async function generateMetadata({type: "website",images: [{- url: "https://easy-invoice-pdf-assets.1xeq.workers.dev/easy-invoice-opengraph-image.png?v=1",+ url: "https://ik.imagekit.io/fl2lbswwo/opengraph-image.png?updatedAt=1745697738714",width: 1200,height: 630,+ type: "image/png",alt: "Free Invoice Generator - A web application offering live preview, open source functionality, and no sign up required",},],@@ -57,9 +58,10 @@ export async function generateMetadata({creator: "@vlad_sazon",images: [{- url: "https://easy-invoice-pdf-assets.1xeq.workers.dev/easy-invoice-opengraph-image.png?v=1",+ url: "https://ik.imagekit.io/fl2lbswwo/opengraph-image.png?updatedAt=1745697738714",width: 1200,height: 630,+ type: "image/png",alt: "Free Invoice Generator - A web application offering live preview, open source functionality, and no sign up required",},],diff --git a/src/app/[locale]/about/page.tsx b/src/app/[locale]/about/page.tsxindex 0887977..422ad07 100644--- a/src/app/[locale]/about/page.tsx+++ b/src/app/[locale]/about/page.tsx@@ -223,7 +223,7 @@ function HeroSection() {<div className="w-full"><Videosrc={VIDEO_DEMO_URL}- fallbackImg="https://easy-invoice-pdf-assets.1xeq.workers.dev/easy-invoice-video-placeholder.webp"+ fallbackImg="https://ik.imagekit.io/fl2lbswwo/easy-invoice-video-placeholder.webp"testId="hero-about-page-video"/></div>diff --git a/src/app/layout.tsx b/src/app/layout.tsxindex b84cf1f..1c28360 100644--- a/src/app/layout.tsx+++ b/src/app/layout.tsx@@ -33,17 +33,17 @@ export const metadata: Metadata = {icons: {icon: [{- url: "https://easy-invoice-pdf-assets.1xeq.workers.dev/favicon.ico",+ url: "https://ik.imagekit.io/fl2lbswwo/favicon.ico?updatedAt=1746617951837",},{- url: "https://easy-invoice-pdf-assets.1xeq.workers.dev/icon.png",+ url: "https://ik.imagekit.io/fl2lbswwo/icon.png?updatedAt=1746617951770",type: "image/png",sizes: "96x96",},],apple: [{- url: "https://easy-invoice-pdf-assets.1xeq.workers.dev/apple-icon.png",+ url: "https://ik.imagekit.io/fl2lbswwo/apple-icon.png?updatedAt=1746617951784",type: "image/png",sizes: "180x180",},@@ -57,7 +57,8 @@ export const metadata: Metadata = {type: "website",images: [{- url: "https://easy-invoice-pdf-assets.1xeq.workers.dev/easy-invoice-opengraph-image.png?v=1",+ url: "https://ik.imagekit.io/fl2lbswwo/opengraph-image.png?updatedAt=1745697738714",+ type: "image/png",width: 1200,height: 630,alt: "Free Invoice Generator - A web application offering live preview, open source functionality, and no sign up required",@@ -72,7 +73,8 @@ export const metadata: Metadata = {creator: "@vlad_sazon",images: [{- url: "https://easy-invoice-pdf-assets.1xeq.workers.dev/easy-invoice-opengraph-image.png?v=1",+ url: "https://ik.imagekit.io/fl2lbswwo/opengraph-image.png?updatedAt=1745697738714",+ type: "image/png",width: 1200,height: 630,alt: "Free Invoice Generator - A web application offering live preview, open source functionality, and no sign up required",@@ -96,7 +98,7 @@ const JSONLD: WithContext<WebSite> = {"free invoice generator",],image:- "https://easy-invoice-pdf-assets.1xeq.workers.dev/easy-invoice-opengraph-image.png?v=1",+ "https://ik.imagekit.io/fl2lbswwo/opengraph-image.png?updatedAt=1745697738714",mainEntityOfPage: {"@type": "SoftwareApplication","@id": `https://easyinvoicepdf.com/`,