mirror of
https://github.com/kremalicious/blog.git
synced 2024-11-22 01:46:51 +01:00
test updates
This commit is contained in:
parent
4422be28d8
commit
19ac7168f1
@ -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
|
||||||
|
@ -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}/`)
|
||||||
|
@ -26,7 +26,8 @@ export default getViteConfig({
|
|||||||
'src/images/components',
|
'src/images/components',
|
||||||
'src/pages',
|
'src/pages',
|
||||||
'**/content',
|
'**/content',
|
||||||
'public'
|
'public',
|
||||||
|
'**/tmp/**/*'
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user