Added sitemap
This commit is contained in:
parent
c3bc4e604a
commit
346016b5c4
7 changed files with 78 additions and 1 deletions
14
cucumber/features/general.feature
Normal file
14
cucumber/features/general.feature
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
Feature: This app should generate a correct sitemap, etc
|
||||
|
||||
@watch
|
||||
Scenario: I verify that a sitemap is generated correctly
|
||||
Given the page sitemap.xml
|
||||
Then I check that exist this list of pages in the sitemap
|
||||
| license | License |
|
||||
| terms | Terms of Service |
|
||||
| credits | Credits |
|
||||
| privacy | Privacy Policy |
|
||||
| fires | Active Fires |
|
||||
| login | Login |
|
||||
| signup | Signup |
|
||||
# And should be spiderables
|
||||
|
|
@ -1,4 +1,3 @@
|
|||
@watch
|
||||
Feature: Test all secundary pages
|
||||
|
||||
Scenario: Check that all secondary pages work well
|
||||
|
|
|
|||
20
cucumber/features/steps_definitions/general.js
Normal file
20
cucumber/features/steps_definitions/general.js
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
/* global module expect require process client */
|
||||
|
||||
module.exports = function doSteps() {
|
||||
let pages;
|
||||
|
||||
this.Then(/^I check that exist this list of pages in the sitemap$/, (table, callback) => {
|
||||
// Write code here that turns the phrase above into concrete actions
|
||||
pages = table.raw();
|
||||
for (let i = 0; i < pages.length; i += 1) {
|
||||
// TODO download sitemap and parse
|
||||
// client.waitForText('.text', pages[i][0]);
|
||||
}
|
||||
callback();
|
||||
});
|
||||
|
||||
this.Given(/^the page sitemap\.xml$/, (callback) => {
|
||||
client.url(`${process.env.ROOT_URL}/sitemap.xml`);
|
||||
callback();
|
||||
});
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue