1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-22 01:46:51 +01:00

test updates

This commit is contained in:
Matthias Kretschmann 2023-10-03 17:51:59 +01:00
parent 4422be28d8
commit 19ac7168f1
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 4 additions and 3 deletions

View File

@ -23,7 +23,7 @@ const descriptionFinal = description
const canonicalURL = const canonicalURL =
Astro.url.pathname === '/' Astro.url.pathname === '/'
? Astro.site?.origin ? Astro.site?.origin
: `${Astro.site?.origin}${Astro.url.pathname.replace}` : `${Astro.site?.origin}${Astro.url.pathname}`
const imageFinal = `${Astro.site?.origin}${ const imageFinal = `${Astro.site?.origin}${
image image

View File

@ -2,7 +2,7 @@ import { test, expect } from '@playwright/test'
import siteConfig from '@config/blog.config' import siteConfig from '@config/blog.config'
const postSlug = 'gatsby-redirect-from' const postSlug = 'gatsby-redirect-from'
const canonical = `${siteConfig.siteUrl}/${postSlug}` const canonical = `${siteConfig.siteUrl}/${postSlug}/`
test.beforeEach(async ({ page }) => { test.beforeEach(async ({ page }) => {
await page.goto(`/${postSlug}/`) await page.goto(`/${postSlug}/`)

View File

@ -26,7 +26,8 @@ export default getViteConfig({
'src/images/components', 'src/images/components',
'src/pages', 'src/pages',
'**/content', '**/content',
'public' 'public',
'**/tmp/**/*'
] ]
} }
} }