From 1da0decc63e933e5429d702de9fe39f2c5aaf661 Mon Sep 17 00:00:00 2001 From: May Shech Date: Thu, 28 Dec 2023 13:34:32 +0200 Subject: [PATCH] Adding cache buster to index.html #445 (#451) --- aatp/peerbook_webrtc/admin.spec.ts | 12 ++++++------ index.html | 3 +++ netlify.toml | 4 ++++ 3 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 netlify.toml diff --git a/aatp/peerbook_webrtc/admin.spec.ts b/aatp/peerbook_webrtc/admin.spec.ts index 9a7a22b1..942be0b7 100644 --- a/aatp/peerbook_webrtc/admin.spec.ts +++ b/aatp/peerbook_webrtc/admin.spec.ts @@ -238,7 +238,7 @@ test.describe('peerbook administration', () => { const fromPeerbook = await page.$$('.from-peerbook') expect(fromPeerbook.length).toBe(0) }) - test('try login with an invalid email', async ({ browser }) => { + test('try subscribe with an invalid email', async ({ browser }) => { // TODO: rename to context2 context = await browser.newContext() page = await context.newPage() @@ -261,7 +261,7 @@ test.describe('peerbook administration', () => { await sleep(100) if (await page.locator('[data-test="twr-minimized"]').isVisible()) await page.click('[data-test="twr-minimized"]') - await page.keyboard.type('login') + await page.keyboard.type('subscribe') await page.keyboard.press("Enter") await sleep(100) let twr = await getTWRBuffer(page) @@ -279,9 +279,9 @@ test.describe('peerbook administration', () => { twr = await getTWRBuffer(page) expect(twr).toMatch(/Invalid credentials/) }) - test('try login with an invalid OTP', async () => { + test('try subscribe with an invalid OTP', async () => { await sleep(100) - await page.keyboard.type('login') + await page.keyboard.type('subscribe') await page.keyboard.press("Enter") await sleep(100) let twr = await getTWRBuffer(page) @@ -299,9 +299,9 @@ test.describe('peerbook administration', () => { twr = await getTWRBuffer(page) expect(twr).toMatch(/Invalid credentials/) }) - test('login with a valid email & OTP', async () => { + test('subscribe with a valid email & OTP', async () => { await sleep(100) - await page.keyboard.type('login') + await page.keyboard.type('subscribe') await page.keyboard.press("Enter") await sleep(100) let twr = await getTWRBuffer(page) diff --git a/index.html b/index.html index d77975d5..f123801d 100644 --- a/index.html +++ b/index.html @@ -3,6 +3,8 @@ Terminal 7 + + @@ -14,6 +16,7 @@ +
diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 00000000..d19f505e --- /dev/null +++ b/netlify.toml @@ -0,0 +1,4 @@ +[[headers]] +for = "/*" +[headers.values] +Cache-Control = "public, max-age=86400"