matrix-art

An image gallery for Matrix
git clone git://archive.git.mtrnord.blog/MTRNord/matrix-art.git
Log | Files | Refs | README | LICENSE

commit 52e760dd7f991c17861c4b6722814983759fd096
parent 3a275b985df6f88e37d4a37e0284416a04ef8cf1
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sat,  5 Feb 2022 19:05:55 +0100

Hopefully make e2ee tests fly again

Diffstat:
Me2e/home.spec.ts | 6+++---
Mnext-i18next.config.js | 2+-
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/e2e/home.spec.ts b/e2e/home.spec.ts @@ -8,7 +8,7 @@ test('test navigation to details', async ({ page }, testInfo) => { page.on('console', msg => console.log(msg.text())); // Go to http://localhost:3000/ - await page.goto('http://localhost:3000/en'); + await page.goto('http://localhost:3000'); // Check for the Home text await expect(page.locator('h1')).toContainText('Home'); // Click text=Flowers@mtrnord:art.midnightthoughts.space @@ -18,7 +18,7 @@ test('test navigation to details', async ({ page }, testInfo) => { ]); - await expect(page).toHaveURL('http://localhost:3000/en/post/%24xoIMe7tUMb2NhCBZaxsZr2CVkptCVu1GaJ_eJMKbJQo'); + await expect(page).toHaveURL('http://localhost:3000/post/%24xoIMe7tUMb2NhCBZaxsZr2CVkptCVu1GaJ_eJMKbJQo'); // Click svg @@ -26,5 +26,5 @@ test('test navigation to details', async ({ page }, testInfo) => { page.waitForNavigation(/*{ url: 'http://localhost:3000/' }*/), page.click('#matrix-art-logo') ]); - await expect(page).toHaveURL('http://localhost:3000/en'); + await expect(page).toHaveURL('http://localhost:3000'); }); \ No newline at end of file diff --git a/next-i18next.config.js b/next-i18next.config.js @@ -1,7 +1,7 @@ module.exports = { i18n: { defaultLocale: 'en', - locales: ['en', 'de-DE'], + locales: process.env.PLAYWRIGHT === "1" ? ['en'] : ['en', 'de-DE'], fallbackLng: 'en', reloadOnPrerender: process.env.NODE_ENV === "production" ? false : true, nsSeparator: false,