Added QA & Prod variables

This commit is contained in:
2020-08-27 10:21:03 -07:00
parent 6f03d808f1
commit 631785d7d5
18 changed files with 284 additions and 86 deletions

View File

@@ -1,15 +1,12 @@
//skillsMatcherResultsWidget_spec.js
describe('Interest Survey Results Widget Script', function () {
//app-journeysmap landing page
describe('Skills Matcher Results Widget Script', function () {
//login-journeysmap landing page
var UserNameTextBox = element(by.css('#txtU'));
var PasswordTextBox = element(by.css('#txtP'));
//Open browser
//browser.driver.manage().window().setSize(1600, 800);
browser.get('https://app-qa.journeysmap.com/Journey/index.html#/login').then(function() {
browser.sleep(1000);
});
browser.get(browser.params.login);
it('should have a title', async function () {
await expect(browser.getTitle()).toEqual('Login');
@@ -26,7 +23,7 @@ describe('Interest Survey Results Widget Script', function () {
expect(await PageGreetingText.getText()).toEqual('Login and start exploring.');
browser.sleep(2500);
await UserNameTextBox.sendKeys('QA_AutomatedRegression').then(function() {
await UserNameTextBox.sendKeys(browser.params.userName).then(function() {
browser.sleep(2500);
});
await PasswordTextBox.sendKeys('3Dm!nAuto').then(function() {