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

Feature/test scripts signup #9

Open
wants to merge 63 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 53 commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
72d77fc
gitflow-feature-stash: test-scripts-signup
we-satyajeet-s001 Nov 4, 2022
c6f1d6c
specs are added
we-satyajeet-s001 Nov 4, 2022
056f9ad
signin sample code is working
we-satyajeet-s001 Nov 4, 2022
8b29e9d
backup
we-satyajeet-s001 Nov 4, 2022
ca984f3
Merge tag 'HEAD' into feature/test-scripts-signup
we-satyajeet-s001 Nov 4, 2022
11c9f5d
Merge tag 'HEAD' into feature/test-scripts-signup
we-satyajeet-s001 Nov 4, 2022
d1076f5
Merge remote-tracking branch 'origin/feature/test-scripts-signup' int…
we-satyajeet-s001 Nov 4, 2022
6ff0b2a
new methods
we-satyajeet-s001 Nov 4, 2022
ffd8264
new script added
we-satyajeet-s001 Nov 4, 2022
8ba0852
tests in file
we-satyajeet-s001 Nov 5, 2022
6509cbb
SignIn:TestScripts
we-satyajeet-s001 Nov 5, 2022
97daba6
updated
we-satyajeet-s001 Nov 7, 2022
b8d35a0
updated scripts
we-satyajeet-s001 Nov 7, 2022
e772bbb
updated test scripts
we-satyajeet-s001 Nov 7, 2022
f434bfa
Updated test scripts
we-satyajeet-s001 Nov 7, 2022
5ea36e9
updated pom
we-satyajeet-s001 Nov 9, 2022
29e4e08
updated test scripts
we-satyajeet-s001 Nov 9, 2022
698f5d7
updated data and Pom
we-satyajeet-s001 Nov 9, 2022
fc9bfab
updated
we-satyajeet-s001 Nov 9, 2022
3ed23bc
Updated: test scripts
we-satyajeet-s001 Nov 9, 2022
42dedb1
common test list for signin
we-satyajeet-s001 Nov 9, 2022
f190507
updated: Test scripts
we-satyajeet-s001 Nov 9, 2022
4690637
Sign In: Test Scripts(updated)
we-satyajeet-s001 Nov 10, 2022
e1ab7fe
updated
we-satyajeet-s001 Nov 10, 2022
97f7027
updated
we-satyajeet-s001 Nov 10, 2022
29d3805
updated
we-satyajeet-s001 Nov 10, 2022
6b61044
updated signin test scripts
we-satyajeet-s001 Nov 10, 2022
53ee09d
Test scripts update: signin
we-satyajeet-s001 Nov 10, 2022
c0ba796
Sign In : Test Scripts updated
we-satyajeet-s001 Nov 10, 2022
30d4d4a
Sign In: Test Scripts Updated
we-satyajeet-s001 Nov 10, 2022
d8ad68e
UPDATED
we-satyajeet-s001 Nov 10, 2022
9697b30
Updated: Sign In
we-satyajeet-s001 Nov 10, 2022
61a9927
test scripts updated
we-satyajeet-s001 Nov 11, 2022
562dc83
updated scripts
we-satyajeet-s001 Nov 11, 2022
97ac781
Sign In: Test scripts updated
we-satyajeet-s001 Nov 11, 2022
1589fd5
Sign In: Updated Test Scripts and POM
we-satyajeet-s001 Nov 11, 2022
3de7614
Sign In: Test Scripts, Data & POM Updated.
we-satyajeet-s001 Nov 11, 2022
52bf773
Updated POM: Sign In
we-satyajeet-s001 Nov 12, 2022
147660d
Sign Up: First test script
we-satyajeet-s001 Nov 12, 2022
3fa31e1
added test script
we-satyajeet-s001 Nov 12, 2022
134acbf
scripts added.
we-satyajeet-s001 Nov 12, 2022
452558f
scripts added: Sign up
we-satyajeet-s001 Nov 12, 2022
e19a83b
added test scripts.
we-satyajeet-s001 Nov 12, 2022
3fe9275
Sign Up: Test scripts added
we-satyajeet-s001 Nov 14, 2022
1715244
updated files
we-satyajeet-s001 Nov 15, 2022
2a6dda1
added test scripts
we-satyajeet-s001 Nov 15, 2022
44e49a8
updated files
we-satyajeet-s001 Nov 15, 2022
87b85f6
Updated Test scripts and data
we-satyajeet-s001 Nov 16, 2022
de37a02
Sign Up: Updated Test Scripts, POM & Data Files
we-satyajeet-s001 Nov 16, 2022
f840cf4
Sign up: Updated
we-satyajeet-s001 Nov 17, 2022
45c1b3e
Updated Readme.md file
we-satyajeet-s001 Nov 17, 2022
7260854
updated readme.md file
we-satyajeet-s001 Nov 17, 2022
fc6947f
Readme.md file Updated
we-satyajeet-s001 Nov 17, 2022
4d018f1
Updated: Readme.md
we-satyajeet-s001 Nov 17, 2022
a580d10
Forgot Password : First Test Script
we-satyajeet-s001 Nov 17, 2022
885dfd7
Updated Readme.md file
we-satyajeet-s001 Nov 18, 2022
8668ce8
Updated.
we-satyajeet-s001 Nov 18, 2022
b43ebf0
Readme.md file Updated
we-satyajeet-s001 Nov 18, 2022
f4a94e5
Sign In: Updated url and data
we-satyajeet-s001 Nov 18, 2022
a995d35
forgot password : test scripts added
we-satyajeet-s001 Nov 18, 2022
f604299
Updated test scripts
we-satyajeet-s001 Nov 19, 2022
dc667a9
Updated POM and test scripts
we-satyajeet-s001 Nov 23, 2022
afdeaea
forgot password: updated
we-satyajeet-s001 Nov 23, 2022
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
14 changes: 10 additions & 4 deletions Assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,27 @@ const env = require('./../../../wdio.env');

class Assert{

pause()
async pause()
{
if(env.is_human)
{
browser.pause(env.is_human_pause*1000);
await browser.pause(env.is_human_pause*1000);
}
}

pageTitle(text)
async refresh()
{
await browser.refresh();
await browser.pause(2000);
}

async pageTitle(text)
{
return expect(browser).toHaveTitleContaining(text);

}

text(selector, text)
async text(selector, text)
{
return expect(selector).toHaveTextContaining(text);
}
Expand Down
22 changes: 15 additions & 7 deletions Page.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
const chalk = require('chalk');
//const chalk = await import('chalk');
//import {chalk} from "chalk";
let color = require("cli-color");


const env = require('./../../../wdio.env');

/**
* main page object containing all methods, selectors and functionality
* that is shared across all page objects
*/
* main page object containing all methods, selectors and functionality
* that is shared across all page objects
*/
module.exports = class Page {

constructor() {
this.base_url = env.base_url;
this.signup_url = env.signup_url
this.params = {
page: {
id: null,
Expand All @@ -28,6 +33,9 @@ module.exports = class Page {
}
};




}

//-------------------------------------------------
Expand All @@ -37,7 +45,7 @@ module.exports = class Page {
//-------------------------------------------------
highlight(str)
{
return chalk.magenta(str);
return color.blue(str);
}
//-------------------------------------------------
pageId(params)
Expand All @@ -49,7 +57,7 @@ module.exports = class Page {
//-------------------------------------------------
groupId(params)
{
let id = chalk.red(`
let id = color.red(`
---------------------------------------------------------------`);
id += this.pageId(params);
id += `
Expand All @@ -64,7 +72,7 @@ module.exports = class Page {
if(params.test.expect)
{
id += `
${chalk.blue('Expect:')} ${params.test.expect}`;
${color.blue('Expects:')} ${params.test.expect}`;
}


Expand Down
Loading