Skip to content

Commit 4a69072

Browse files
committed
Fixes webcompat#1412: Add page titles and test for issue page title
1 parent 0c348d8 commit 4a69072

File tree

10 files changed

+18
-1
lines changed

10 files changed

+18
-1
lines changed

tests/functional/issues-non-auth.js

+9
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,15 @@ define([
101101
assert.notInclude(className, "wc-Comment-content-nsfw--display");
102102
})
103103
.end();
104+
},
105+
106+
"Issue page title matches actual issue number": function() {
107+
var issueNumber = '100';
108+
return FunctionalHelpers.openPage(this, url("/issues/" + issueNumber), ".js-Issue")
109+
.getPageTitle()
110+
.then(function(title) {
111+
assert.include(title, "Issue #" + issueNumber + " | webcompat.com");
112+
});
104113
}
105114
});
106115
});

webcompat/templates/about.html

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{% extends "layout.html" %}
2+
{% block title %}About | {% endblock %}
23
{% block body %}
34
{% include "shared/nav.html" %}
45
<main class="wc-UIContent" role="main">

webcompat/templates/contributors.html

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{% extends "layout.html" %}
2+
{% block title %}Contributors | {% endblock %}
23
{% block body %}
34
<div>
45
{% include "shared/nav.html" %}

webcompat/templates/cssfixme.html

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{% extends "layout.html" %}
2+
{% block title %}CSS Fix Me | {% endblock %}
23
{% block body %}
34
{% include "shared/nav.html" %}
45
<main class="wc-UIContent" role="main">

webcompat/templates/issue.html

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{% extends "layout.html" %}
2+
{% block title %}Issue #{{ number }} | {% endblock %}
23
{% block body %}
34
{% include "shared/nav.html" %}
45
<main class="wc-UISection wc-UISection--backgroundColor" role="main">

webcompat/templates/layout.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
<title>webcompat.com</title>
4+
<title>{% block title %}{% endblock %}webcompat.com</title>
55
<meta charset="utf-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<meta name="description" content="Open source community for web compatibility. Report bugs from websites or for browsers and help us move the web forward.">

webcompat/templates/list-issue.html

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{% extends "layout.html" %}
2+
{% block title %}Issues | {% endblock %}
23
{% block body %}
34
<div class="wc-SearchIssue js-SearchIssue" data-username="{{ session.username }}">
45
{% include "shared/nav.html" %}

webcompat/templates/new-issue.html

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{%- extends "layout.html" -%}
2+
{% block title %}New Issue | {% endblock %}
23
{%- block body -%}
34
{% include "topbar.html" %}
45
<main role="main">

webcompat/templates/privacy.html

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{% extends "layout.html" %}
2+
{% block title %}Privacy Policy | {% endblock %}
23
{% block body %}
34
{% include "shared/nav.html" %}
45
<main class="wc-UIContent" role="main">

webcompat/templates/user-activity.html

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{% extends "layout.html" %}
2+
{% block title %}{{user}}'s Activity | {% endblock %}
23
{% block body %}
34
{% include "shared/nav.html" %}
45
<main role="main">

0 commit comments

Comments
 (0)