Erstellen einer ersten test-Komponente die in der Mockup-HTML-Seite und in Contao eingebunden werden kann
This commit is contained in:
1 parent
e96c73000d
commit
76e45ac9ad
12 files changed
+217
-114
No files matched your search
@@ -7,6 +7,14 @@ Describe 'Perspektivwerk static route' {
|
||||
(Test-Path -LiteralPath $mockupPath) | Should Be $true
|
||||
}
|
||||
|
||||
It 'embeds the appointment booking component with its public assets' {
|
||||
$mockup = Get-Content -LiteralPath $mockupPath -Raw
|
||||
|
||||
$mockup | Should Match 'href="/booking/booking\.css"'
|
||||
$mockup | Should Match 'data-sufw-booking'
|
||||
$mockup | Should Match 'src="/booking/booking\.js"'
|
||||
}
|
||||
|
||||
It 'routes /perspektivwerk to the static entry point before the Contao fallback' {
|
||||
$htaccess = Get-Content -LiteralPath $htaccessPath -Raw
|
||||
$staticRouteIndex = $htaccess.IndexOf('RewriteRule ^perspektivwerk/?$ perspektivwerk/index.html [L]')
|
||||
|
||||
Reference in new issue
Block a user