diff --git a/testcafe/Dockerfile b/testcafe/Dockerfile index 0a06154d..96cb58cc 100644 --- a/testcafe/Dockerfile +++ b/testcafe/Dockerfile @@ -8,9 +8,9 @@ COPY package.json package.json RUN echo "Install build deps.." \ && apk --update --no-cache add \ - chromium \ + chromium \ tzdata RUN yarn -CMD ["yarn", "start"] \ No newline at end of file +CMD ["yarn", "start"] diff --git a/testcafe/src/run.ts b/testcafe/src/run.ts index b45eb7d8..438878de 100644 --- a/testcafe/src/run.ts +++ b/testcafe/src/run.ts @@ -7,11 +7,21 @@ const searchResultItem = Selector('li.md-search-result__item'); const searchLabel = Selector('label.md-header__button.md-icon').withAttribute('for', '__search'); -fixture("Check if yamls are valid") +fixture("Verify site") .page`${'http://127.0.0.1:8080/saap'}` .skipJsErrors(); -test(`Accept cookies if cookies consent message is displayed`, async (t) => { +test('Verify index file exists', async t => { + await t + .navigateTo('http://127.0.0.1:8080/saap/index.html'); +}) + +test('Verify custom 404 file exists', async t => { + await t + .navigateTo('http://127.0.0.1:8080/saap/404.html'); +}) + +test('Search for existence of incorrectly rendered fenced code blocks', async (t) => { await t.maximizeWindow(); const acceptButtonExists = await acceptButton.exists; @@ -32,5 +42,5 @@ test(`Accept cookies if cookies consent message is displayed`, async (t) => { await t.typeText(searchInput, "```") const searchResultItemExists = await searchResultItem.exists; - await t.expect(searchResultItemExists).notOk('Invalid yamls exist, failing the test'); -}) \ No newline at end of file + await t.expect(searchResultItemExists).notOk('Fenced code blocks exist in the search result and are therefore incorrectly rendered, failing the test'); +}) diff --git a/theme_common b/theme_common index fcdeb299..e611cfbd 160000 --- a/theme_common +++ b/theme_common @@ -1 +1 @@ -Subproject commit fcdeb2998675e19533d1ff419e4174e73abe0c5c +Subproject commit e611cfbd75bf3b57b44d34401fd714e28ddf98b4