Skip to content

Commit

Permalink
build(nightwatch): Rename /tests to /functional-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lzcabrera committed Feb 7, 2018
1 parent 96b56c8 commit e9e451a
Show file tree
Hide file tree
Showing 7 changed files with 79 additions and 5 deletions.
8 changes: 4 additions & 4 deletions config/nightwatch.conf.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const path = require('path')

module.exports = {
src_folders: path.resolve('tests/specs/'),
globals_path: path.resolve('tests/globals.js'),
output_folder: path.resolve('tests/reports'),
src_folders: path.resolve('functional-tests/specs/'),
globals_path: path.resolve('functional-tests/globals.js'),
output_folder: path.resolve('functional-tests/reports'),
custom_commands_path: [path.resolve('node_modules/nightwatch-accessibility/commands')],
custom_assertions_path: [path.resolve('node_modules/nightwatch-accessibility/assertions')],
page_objects_path: path.resolve('tests/page-objects'),
page_objects_path: path.resolve('functional-tests/page-objects'),
selenium: {
start_process: false,
},
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<?xml version="1.0" encoding="UTF-8" ?>
<testsuites errors="0"
failures="1"
tests="1">

<testsuite name="styleguidist"
errors="0" failures="1" hostname="" id="" package="styleguidist" skipped="0"
tests="1" time="18.84" timestamp="Wed, 07 Feb 2018 22:02:16 GMT">

<testcase name="Goto Styleguidist SPA" classname="styleguidist" time="18.84" assertions="28">















































<failure message="Failed [fail]: (Elements must have sufficient color contrast [&lt;span class=&#34;hljs-string&#34;&gt;&#39;~@telusdigital/tds/dist/scss/colours&#39;&lt;/span&gt;])"></failure>

<failure message="Failed [fail]: (id attribute value must be unique [&lt;input type=&#34;number&#34; min=&#34;0&#34; id=&#34;sc6762&#34; pattern=&#34;\d*&#34; value=&#34;0&#34; class=&#34;selector-counter__value&#34; aria-invalid=&#34;false&#34;&gt;])"></failure>

<failure message="Failed [fail]: (Form elements must have labels [&lt;input type=&#34;number&#34; min=&#34;0&#34; id=&#34;sc6762&#34; pattern=&#34;\d*&#34; value=&#34;0&#34; class=&#34;selector-counter__value&#34; aria-invalid=&#34;false&#34;&gt;])"></failure>

<failure message="div[id=&#34;app&#34;] passes accessibility scan"> at Object.goToStyleguidist [as Goto Styleguidist SPA] (/Users/laura/telus-github/tds/functional-tests/specs/styleguidist.js:22:13)</failure>


</testcase>





</testsuite>
</testsuites>
File renamed without changes.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
"guide/components/**",
"guide/_book/**",
"build/**",
"tests/reports/**"
"**/reports/*.xml"
]
}
}

0 comments on commit e9e451a

Please sign in to comment.