|
3 | 3 |
|
4 | 4 | /*globals CasperTest, casper */ |
5 | 5 |
|
6 | | -CasperTest.begin('Admin navigation bar is correct', 27, function suite(test) { |
| 6 | +CasperTest.begin('Admin navigation bar is correct', 29, function suite(test) { |
7 | 7 | casper.thenOpenAndWaitForPageLoad('root', function testTitleAndUrl() { |
8 | 8 | test.assertTitle('Ghost Admin', 'Ghost admin has no title'); |
9 | 9 | test.assertUrlMatch(/ghost\/\d+\/$/, 'Landed on the correct URL'); |
10 | 10 | }); |
11 | 11 |
|
12 | 12 | casper.then(function testNavItems() { |
13 | | - var contentHref = this.getElementAttribute('#main-menu li.content a', 'href'), |
| 13 | + var logoHref = this.getElementAttribute('.ghost-logo-link', 'href'), |
| 14 | + contentHref = this.getElementAttribute('#main-menu li.content a', 'href'), |
14 | 15 | editorHref = this.getElementAttribute('#main-menu li.editor a', 'href'), |
15 | 16 | settingsHref = this.getElementAttribute('#main-menu li.settings a', 'href'); |
16 | 17 |
|
17 | 18 | // Logo |
18 | | - test.assertExists('button.ghost-logo', 'Ghost logo home page button exists'); |
| 19 | + test.assertExists('.ghost-logo-button', 'Ghost logo home page button exists'); |
| 20 | + test.assertExists('.ghost-logo-link', 'Ghost logo home page link exists'); |
| 21 | + test.assertEquals(logoHref, '/', 'Ghost logo link href is correct'); |
19 | 22 |
|
20 | 23 | // Content |
21 | 24 | test.assertExists('#main-menu li.content a', 'Content nav item exists'); |
|
0 commit comments