|
@@ -3,6 +3,7 @@ const { baseUrls } = require('./helpers/env');
|
|
|
|
|
|
|
|
const specialTitle = 'Grüße "Tempo" \'Österreich\'';
|
|
const specialTitle = 'Grüße "Tempo" \'Österreich\'';
|
|
|
const specialTagline = 'No "Flash", <No Java>, No Websockets & No Bullsh*t';
|
|
const specialTagline = 'No "Flash", <No Java>, No Websockets & No Bullsh*t';
|
|
|
|
|
+const apostropheTagline = "It'd rather be fast!";
|
|
|
|
|
|
|
|
test.describe('TITLE and TAGLINE special characters', () => {
|
|
test.describe('TITLE and TAGLINE special characters', () => {
|
|
|
test('modern page title supports umlauts and quotes', async ({ page }) => {
|
|
test('modern page title supports umlauts and quotes', async ({ page }) => {
|
|
@@ -16,4 +17,9 @@ test.describe('TITLE and TAGLINE special characters', () => {
|
|
|
await page.goto(`${baseUrls.standaloneNew}/index-classic.html`);
|
|
await page.goto(`${baseUrls.standaloneNew}/index-classic.html`);
|
|
|
await expect(page.locator('h1').first()).toHaveText(specialTitle);
|
|
await expect(page.locator('h1').first()).toHaveText(specialTitle);
|
|
|
});
|
|
});
|
|
|
|
|
+
|
|
|
|
|
+ test('modern page tagline renders apostrophe correctly', async ({ page }) => {
|
|
|
|
|
+ await page.goto(`${baseUrls.standaloneApostrophe}/index-modern.html`);
|
|
|
|
|
+ await expect(page.locator('main > p.tagline')).toHaveText(apostropheTagline);
|
|
|
|
|
+ });
|
|
|
});
|
|
});
|