mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Set sensible admin meta title
This commit is contained in:
parent
137a8dfc58
commit
ba0ae3b4d8
6 changed files with 15 additions and 15 deletions
|
@ -5,7 +5,7 @@
|
|||
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||
|
||||
<title>{{siteTitle}} Admin</title>
|
||||
<title>Ghost Admin</title>
|
||||
|
||||
<meta name="HandheldFriendly" content="True">
|
||||
<meta name="MobileOptimized" content="320">
|
||||
|
|
|
@ -55,7 +55,7 @@ casper.test.begin("Ghost admin will load login page", 2, function suite(test) {
|
|||
test.filename = "admin_test.png";
|
||||
|
||||
casper.start(url + "ghost", function testTitleAndUrl() {
|
||||
test.assertTitle("", "Ghost admin has no title");
|
||||
test.assertTitle("Ghost Admin", "Ghost admin has no title");
|
||||
test.assertUrlMatch(/ghost\/signin\/$/, 'If we\'re not already registered, we should be logged in.');
|
||||
}).viewport(1280, 1024);
|
||||
|
||||
|
@ -81,7 +81,7 @@ casper.test.begin("Can't spam it", 4, function suite(test) {
|
|||
test.filename = "login_spam_test.png";
|
||||
|
||||
casper.start(url + "ghost/signin/", function testTitle() {
|
||||
test.assertTitle("", "Ghost admin has no title");
|
||||
test.assertTitle("Ghost Admin", "Ghost admin has no title");
|
||||
}).viewport(1280, 1024);
|
||||
|
||||
casper.waitForOpaque(".login-box",
|
||||
|
@ -117,7 +117,7 @@ casper.test.begin("Can login to Ghost", 4, function suite(test) {
|
|||
test.filename = "login_test.png";
|
||||
|
||||
casper.start(url + "ghost/login/", function testTitle() {
|
||||
test.assertTitle("", "Ghost admin has no title");
|
||||
test.assertTitle("Ghost Admin", "Ghost admin has no title");
|
||||
}).viewport(1280, 1024);
|
||||
|
||||
casper.waitForOpaque(".login-box",
|
||||
|
|
|
@ -4,7 +4,7 @@ casper.test.begin("Ghost editor is correct", 9, function suite(test) {
|
|||
test.filename = "editor_test.png";
|
||||
|
||||
casper.start(url + "ghost/editor/", function testTitleAndUrl() {
|
||||
test.assertTitle("", "Ghost admin has no title");
|
||||
test.assertTitle("Ghost Admin", "Ghost admin has no title");
|
||||
test.assertUrlMatch(/ghost\/editor\/$/, "Ghost doesn't require login this time");
|
||||
test.assertExists(".entry-markdown", "Ghost editor is present");
|
||||
test.assertExists(".entry-preview", "Ghost preview is present");
|
||||
|
@ -55,7 +55,7 @@ casper.test.begin("Haunted markdown in editor works", 3, function suite(test) {
|
|||
test.filename = "markdown_test.png";
|
||||
|
||||
casper.start(url + "ghost/editor/", function testTitleAndUrl() {
|
||||
test.assertTitle("", "Ghost admin has no title");
|
||||
test.assertTitle("Ghost Admin", "Ghost admin has no title");
|
||||
}).viewport(1280, 1024);
|
||||
|
||||
casper.then(function testImage() {
|
||||
|
@ -86,7 +86,7 @@ casper.test.begin("Word count and plurality", 4, function suite(test) {
|
|||
test.filename = "editor_plurality_test.png";
|
||||
|
||||
casper.start(url + "ghost/editor/", function testTitleAndUrl() {
|
||||
test.assertTitle("", "Ghost admin has no title");
|
||||
test.assertTitle("Ghost Admin", "Ghost admin has no title");
|
||||
}).viewport(1280, 1024);
|
||||
|
||||
casper.then(function checkZeroPlural() {
|
||||
|
@ -131,7 +131,7 @@ casper.test.begin('Title Trimming', function suite(test) {
|
|||
test.filename = 'editor_title_trimming_test.png';
|
||||
|
||||
casper.start(url + 'ghost/editor/', function testTitleAndUrl() {
|
||||
test.assertTitle('', 'Ghost admin has no title');
|
||||
test.assertTitle("Ghost Admin", 'Ghost admin has no title');
|
||||
}).viewport(1280, 1024);
|
||||
|
||||
casper.then(function populateTitle() {
|
||||
|
@ -153,7 +153,7 @@ casper.test.begin('Publish menu - new post', function suite(test) {
|
|||
test.filename = 'publish_menu_new_post.png';
|
||||
|
||||
casper.start(url + 'ghost/editor/', function testTitleAndUrl() {
|
||||
test.assertTitle('', 'Ghost admin has no title');
|
||||
test.assertTitle("Ghost Admin", 'Ghost admin has no title');
|
||||
}).viewport(1280, 1024);
|
||||
|
||||
// ... check default option status, label, class
|
||||
|
@ -195,7 +195,7 @@ casper.test.begin('Publish menu - existing post', function suite(test) {
|
|||
|
||||
// Create a post, save it and test refreshed editor
|
||||
casper.start(url + 'ghost/editor/', function testTitleAndUrl() {
|
||||
test.assertTitle('', 'Ghost admin has no title');
|
||||
test.assertTitle("Ghost Admin", 'Ghost admin has no title');
|
||||
}).viewport(1280, 1024);
|
||||
|
||||
casper.then(function createTestPost() {
|
||||
|
|
|
@ -4,7 +4,7 @@ casper.test.begin("Content screen is correct", 17, function suite(test) {
|
|||
test.filename = "content_test.png";
|
||||
|
||||
casper.start(url + "ghost/content/", function testTitleAndUrl() {
|
||||
test.assertTitle("", "Ghost admin has no title");
|
||||
test.assertTitle("Ghost Admin", "Ghost admin has no title");
|
||||
test.assertUrlMatch(/ghost\/content\/$/, "Ghost doesn't require login this time");
|
||||
}).viewport(1280, 1024);
|
||||
|
||||
|
@ -55,7 +55,7 @@ casper.test.begin('Infinite scrolling', 1, function suite(test) {
|
|||
// Placeholder for infinite scrolling/pagination tests (will need to setup 16+ posts).
|
||||
|
||||
casper.start(url + "ghost/content/", function testTitleAndUrl() {
|
||||
test.assertTitle("", "Ghost admin has no title");
|
||||
test.assertTitle("Ghost Admin", "Ghost admin has no title");
|
||||
}).viewport(1280, 1024);
|
||||
|
||||
casper.run(function () {
|
||||
|
|
|
@ -4,7 +4,7 @@ casper.test.begin("Settings screen is correct", 15, function suite(test) {
|
|||
test.filename = "settings_test.png";
|
||||
|
||||
casper.start(url + "ghost/settings/", function testTitleAndUrl() {
|
||||
test.assertTitle("", "Ghost admin has no title");
|
||||
test.assertTitle("Ghost Admin", "Ghost admin has no title");
|
||||
test.assertUrlMatch(/ghost\/settings\/general\/$/, "Ghost doesn't require login this time");
|
||||
}).viewport(1280, 1024);
|
||||
|
||||
|
@ -118,7 +118,7 @@ casper.test.begin("User settings screen validates email", 6, function suite(test
|
|||
test.filename = "user_settings_test.png";
|
||||
|
||||
casper.start(url + "ghost/settings/user/", function testTitleAndUrl() {
|
||||
test.assertTitle("", "Ghost admin has no title");
|
||||
test.assertTitle("Ghost Admin", "Ghost admin has no title");
|
||||
test.assertUrlMatch(/ghost\/settings\/user\/$/, "Ghost doesn't require login this time");
|
||||
}).viewport(1280, 1024);
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ casper.test.begin("Can't spam signin", 3, function suite(test) {
|
|||
test.filename = "spam_test.png";
|
||||
|
||||
casper.start(url + "ghost/signin/", function testTitle() {
|
||||
test.assertTitle("", "Ghost admin has no title");
|
||||
test.assertTitle("Ghost Admin", "Ghost admin has no title");
|
||||
}).viewport(1280, 1024);
|
||||
|
||||
casper.waitFor(function checkOpaque() {
|
||||
|
|
Loading…
Add table
Reference in a new issue