Commit 1d105f52 authored by sajolida's avatar sajolida
Browse files

Don't break the test suite when changing the headline of /home (Will-fix: #12156)

The test suite needs a stable <title> but ikiwiki uses [[!meta title]]
for both <title> and the page headline.

This commit overwrites <title> using JavaScript.

Using "Tails" as <title> is generic enough to make sense while
preventing to have to handle translations.
parent 004ba585
......@@ -407,7 +407,7 @@ end
Given /^the Tor Browser loads the (startup page|Tails homepage|Tails roadmap)$/ do |page|
case page
when "startup page"
title = 'Tails - News'
title = 'Tails'
when "Tails homepage"
title = 'Tails - Privacy for anyone anywhere'
when "Tails roadmap"
[[!meta title="News"]]
<!-- Changing this title breaks the test suite. See #12134#note-7. -->
[[!meta title="Welcome to Tails"]]
[[!meta robots="noindex"]]
[[!meta script="home"]]
<div id="tor_check">
<a href="">
[[!img "lib/onion.png" link="no"]]
document.addEventListener('DOMContentLoaded', function() {
document.title = "Tails";
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment