Skip to content

Free & Open-Source Invoice Generator - No Sign-Up, No Ads, Instant PDF Export, 100% In-Browser, and Fully Customizable Templates.

chore: remove demo video assets and update video source links to cdn (#93)

Vlad Sazonaua5568f88c9bb
diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml
index bca8a48..6773c1f 100644
--- a/.github/workflows/e2e.yml
+++ b/.github/workflows/e2e.yml
@@ -85,7 +85,7 @@ jobs:
Result: ${{ steps.playwright.outcome == 'success' && '✅ Passed' || '❌ Failed' }}
Playwright Browser Binaries Installation Time: ${{ steps.playwright-install.outputs.duration_formatted }}
- Playwright Tests Duration: ${{ steps.playwright.outputs.duration_formatted }}
+ ${{ steps.playwright.outcome == 'success' && format('Playwright Tests Duration: {0}', steps.playwright.outputs.duration_formatted) }}
For more details, please check the GitHub Actions run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
attachments: playwright-output/report/index.html
diff --git a/e2e/about.test.ts b/e2e/about.test.ts
index 42e8567..41a1ae1 100644
--- a/e2e/about.test.ts
+++ b/e2e/about.test.ts
@@ -37,7 +37,10 @@ test.describe("About page", () => {
const video = heroSection.getByTestId("hero-about-page-video");
await expect(video).toBeVisible();
- await expect(video).toHaveAttribute("poster", "/easy-invoice-hero.webp");
+ await expect(video).toHaveAttribute(
+ "poster",
+ "https://ik.imagekit.io/fl2lbswwo/easy-invoice/easy-invoice-hero.webp"
+ );
await expect(video).toHaveAttribute("muted");
await expect(video).toHaveAttribute("loop");
await expect(video).toHaveAttribute("playsinline");
@@ -47,7 +50,7 @@ test.describe("About page", () => {
const videoSource = video.locator("source");
await expect(videoSource).toHaveAttribute(
"src",
- "/easy-invoice-demo.mp4#t=0.001"
+ "https://ik.imagekit.io/fl2lbswwo/easy-invoice/easy-invoice-demo.mp4#t=0.001"
);
await expect(videoSource).toHaveAttribute("type", "video/mp4");
diff --git a/e2e/invoice-form.test.ts b/e2e/invoice-form.test.ts
index 139229c..fcadc6f 100644
--- a/e2e/invoice-form.test.ts
+++ b/e2e/invoice-form.test.ts
@@ -76,7 +76,10 @@ test.describe("Invoice Generator Page", () => {
await expect(video).toBeVisible();
- await expect(video).toHaveAttribute("src", "/easy-invoice-demo.mp4");
+ await expect(video).toHaveAttribute(
+ "src",
+ "https://ik.imagekit.io/fl2lbswwo/easy-invoice/easy-invoice-demo.mp4"
+ );
await expect(video).toHaveAttribute("autoplay", "");
await expect(video).toHaveAttribute("controls", "");
await expect(video).toHaveAttribute("playsInline", "");
diff --git a/public/easy-invoice-demo.mp4 b/public/easy-invoice-demo.mp4
deleted file mode 100644
index 415fe5f..0000000
Binary files a/public/easy-invoice-demo.mp4 and /dev/null differ
diff --git a/public/easy-invoice-hero.webp b/public/easy-invoice-hero.webp
deleted file mode 100644
index 6965a97..0000000
Binary files a/public/easy-invoice-hero.webp and /dev/null differ
diff --git a/src/app/[locale]/about/page.tsx b/src/app/[locale]/about/page.tsx
index 4462c98..c4deb42 100644
--- a/src/app/[locale]/about/page.tsx
+++ b/src/app/[locale]/about/page.tsx
@@ -109,8 +109,8 @@ function HeroSection() {
</div>
<Video
- src="/easy-invoice-demo.mp4"
- fallbackImg="/easy-invoice-hero.webp"
+ src="https://ik.imagekit.io/fl2lbswwo/easy-invoice/easy-invoice-demo.mp4"
+ fallbackImg="https://ik.imagekit.io/fl2lbswwo/easy-invoice/easy-invoice-hero.webp"
testId="hero-about-page-video"
/>
</div>
diff --git a/src/app/[locale]/app/page.client.tsx b/src/app/[locale]/app/page.client.tsx
index 6acd1e7..817951e 100644
--- a/src/app/[locale]/app/page.client.tsx
+++ b/src/app/[locale]/app/page.client.tsx
@@ -439,7 +439,7 @@ function ProjectInfo() {
</DialogHeader>
<div className="aspect-video w-full overflow-hidden">
<video
- src="/easy-invoice-demo.mp4"
+ src="https://ik.imagekit.io/fl2lbswwo/easy-invoice/easy-invoice-demo.mp4"
muted
controls
autoPlay