Skip to content

Commit

Permalink
Support a name property for pages
Browse files Browse the repository at this point in the history
  • Loading branch information
wildlyinaccurate committed Jun 29, 2023
1 parent 2157316 commit 04ee28a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions config/sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ pages:
- .nw-c-full-story
- .nw-c-most-read

# Pages can be named to make test results easier to read
- path: /news
name: News Index

# Viewport configurations to run tests with
# Each viewport can have the following properties:
# - width (required)
Expand Down
2 changes: 1 addition & 1 deletion src/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = async function test(config) {
const [page, viewport] = pair[0];

q.push((cb) => {
log.notice(`Testing ${page.path} at ${viewport.width}px`);
log.notice(`Testing ${page.name || page.path} at ${viewport.width}px`);

capturePair(driver, pair, config)
.then(diffCaptures)
Expand Down

0 comments on commit 04ee28a

Please sign in to comment.