-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
103 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<footer> | ||
<p>This is the footer</p> | ||
</footer> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Test Website</title> | ||
</head> | ||
<body> | ||
<header> | ||
<h1>Test Website (base header)</h1> | ||
</header> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<main> | ||
<h1>Another page</h1> | ||
<p>Look. Another page!</p> | ||
</main> |
10 changes: 10 additions & 0 deletions
10
test/Acceptance/HeaderFooter/src/Page/View/directory-with-own-header/_header.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Test Website</title> | ||
</head> | ||
<body> | ||
<header> | ||
<h1>Test Website (overridden header)</h1> | ||
</header> |
4 changes: 4 additions & 0 deletions
4
test/Acceptance/HeaderFooter/src/Page/View/directory-with-own-header/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<main> | ||
<h1>Non-shared nested page</h1> | ||
<p>This page should have its own header.</p> | ||
</main> |
4 changes: 4 additions & 0 deletions
4
test/Acceptance/HeaderFooter/src/Page/View/directory-with-shared-header-footer/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<main> | ||
<h1>Nested page</h1> | ||
<p>Look. A nested page!</p> | ||
</main> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<main> | ||
<h1>Homepage</h1> | ||
<p>Look. The homepage!</p> | ||
</main> |
5 changes: 5 additions & 0 deletions
5
test/Acceptance/HeaderFooter/test/Acceptance/Behat/FeatureContext.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?php | ||
use Behat\MinkExtension\Context\MinkContext; | ||
|
||
class FeatureContext extends MinkContext { | ||
}# |
28 changes: 28 additions & 0 deletions
28
test/Acceptance/HeaderFooter/test/Acceptance/Features/render.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Feature: Test that HTML headers and footers are included | ||
In order to re-use common HTML | ||
As a developer | ||
I should be able to share HTML prefix and suffix files | ||
|
||
Scenario: Open homepage | ||
Given I go to the homepage | ||
Then I should see "Look. The homepage!" | ||
And I should see "Test Website (base header)" | ||
And I should see "This is the footer" | ||
|
||
Scenario: Open another page | ||
Given I go to "another-page" | ||
Then I should see "Look. Another page!" | ||
And I should see "Test Website (base header)" | ||
And I should see "This is the footer" | ||
|
||
Scenario: Open nested page with shared header footer | ||
Given I go to "/directory-with-shared-header-footer" | ||
Then I should see "Look. A nested page!" | ||
And I should see "Test Website (base header)" | ||
And I should see "This is the footer" | ||
|
||
Scenario: Open nested page with own footer | ||
Given I go to "/directory-with-own-header" | ||
Then I should see "This page should have its own header" | ||
And I should see "Test Website (overridden header)" | ||
And I should see "This is the footer" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
default: | ||
paths: | ||
features: Features | ||
bootstrap: %behat.paths.base%/Behat | ||
extensions: | ||
Behat\MinkExtension\Extension: | ||
base_url: http://localhost:8089 | ||
goutte: | ||
guzzle_parameters: | ||
ssl.certificate_authority: false | ||
curl.options: | ||
CURLOPT_PORT: 8089 | ||
SensioLabs\Behat\PageObjectExtension\Extension: ~ | ||
context: | ||
parameters: | ||
screenshot_dir: %behat.paths.base%/Report | ||
filters: | ||
tags: ~@disabled | ||
formatter: | ||
name: pretty | ||
parameters: | ||
output_path: null,%behat.paths.base%/Report/index.html |