Skip to content

Commit

Permalink
Refine prompts and output (#71)
Browse files Browse the repository at this point in the history
* renamed the inquirer prompts to be more imperative
  • Loading branch information
beatfactor committed Nov 18, 2022
1 parent 2eb8a62 commit 0da9fcb
Show file tree
Hide file tree
Showing 17 changed files with 966 additions and 875 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ lib/
.idea
tests_output/
test_output/
nightwatch.conf.js
nightwatch/
chromedriver-mobile/
logs/
7 changes: 3 additions & 4 deletions assets/templates/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
* To learn more about the describe interface, refer to the following link :
* https://nightwatchjs.org/guide/writing-tests/test-syntax.html
*/
describe('The Login Page', () => {
describe('The Login Page', function () {

/**
* This section will always execute before the test suite
* Read More : https://nightwatchjs.org/guide/writing-tests/using-test-hooks.html#before-beforeeach-after-aftereach
*/
before(browser => {

before(function (browser) {
/**
* Navigate to a URL :
* - We need to navigate before performing any actions on the page
Expand Down Expand Up @@ -117,7 +116,7 @@ describe('The Login Page', () => {


/* The following will always execute after the test suite */
after(browser => {
after(function (browser) {
// This is used to close the browser's session
browser.end();
});
Expand Down
6 changes: 3 additions & 3 deletions assets/templates/titleAssertion.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
* To learn more about the describe interface, refer to the following link:
* https://nightwatchjs.org/guide/writing-tests/test-syntax.html
*/
describe('Title Assertion', () => {
describe('Title Assertion', function() {

/**
* This section will always execute before the test suite
* Read More : https://nightwatchjs.org/guide/writing-tests/using-test-hooks.html#before-beforeeach-after-aftereach
*/
before(browser => {
before(function (browser) {
/**
* Navigate to a URL :
* - We need to navigate before performing any actions on the page
Expand Down Expand Up @@ -38,7 +38,7 @@ describe('Title Assertion', () => {


/* The following will always execute after the test suite */
after(browser => {
after(function (browser) {
// This is used to close the browser's session
browser.end();
});
Expand Down
2 changes: 1 addition & 1 deletion nightwatch.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"src_folders": [
"tests"
"test"
],
"unit_tests_mode": true
}
Loading

0 comments on commit 0da9fcb

Please sign in to comment.