Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refine prompts and output #71

Merged
merged 5 commits into from
Nov 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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