Created exactLandingPage scripts
This commit is contained in:
36
exactLandingPage_config.js
Normal file
36
exactLandingPage_config.js
Normal file
@@ -0,0 +1,36 @@
|
||||
//exactLandingPage_config.js
|
||||
|
||||
exports.config = {
|
||||
framework: 'jasmine',
|
||||
seleniumAddress: 'http://localhost:4444/wd/hub',
|
||||
specs: ['exactLandingPage_spec.js'],
|
||||
|
||||
jasmineNodeOpts: {
|
||||
defaultTimeoutInterval: 360000
|
||||
},
|
||||
|
||||
capabilities: {
|
||||
browserName: 'chrome'
|
||||
},
|
||||
|
||||
onPrepare: function() {
|
||||
browser.waitForAngularEnabled(false);
|
||||
browser.sleep(2500);
|
||||
browser.driver.manage().window().maximize();
|
||||
},
|
||||
|
||||
params: {
|
||||
login: 'http://stage.edgate.com/exact/login.php' //QA
|
||||
//login: 'https://correlation.edgate.com/exact/login.php' //PROD
|
||||
}
|
||||
|
||||
/*multiCapabilities: [{
|
||||
browserName: 'chrome'
|
||||
}, {
|
||||
browserName: 'firefox'
|
||||
}]/*, {
|
||||
browserName: 'internet explorer'
|
||||
}], {
|
||||
browserName: 'safari'
|
||||
}]*/
|
||||
}
|
||||
300
exactLandingPage_spec.js
Normal file
300
exactLandingPage_spec.js
Normal file
@@ -0,0 +1,300 @@
|
||||
//exactLandingPage_spec.js
|
||||
|
||||
describe('My Journeys Widget script', function () {
|
||||
//login-journeysmap landing page
|
||||
var UserNameTextBox = element(by.name('username'));
|
||||
var PasswordTextBox = element(by.name('password'));
|
||||
|
||||
//Open browser
|
||||
browser.get(browser.params.login);
|
||||
|
||||
it('should have a title', async function () {
|
||||
await expect(browser.getTitle()).toEqual('ExACT Login');
|
||||
});
|
||||
|
||||
//Sign In
|
||||
ExACT(UserNameTextBox, PasswordTextBox);
|
||||
|
||||
it('should have a title', async function () {
|
||||
await expect(browser.getTitle()).toEqual('ExACT');
|
||||
});
|
||||
|
||||
function ExACT(UserNameTextBox, PasswordTextBox) {
|
||||
it('ExACT, should verify ExACT landing page and log in.', async function () {
|
||||
var EC = protractor.ExpectedConditions;
|
||||
var PageHeaderText = element(by.css('h2 > strong'));
|
||||
var PageSubText = element(by.css('.contents > p:nth-child(2)'));
|
||||
var PageSubTextTwo = element(by.css('p:nth-child(3)'));
|
||||
var AutoAlignImage = element(by.css('.img-responsive'));
|
||||
var AutoAlignText = element(by.xpath("//div[@id='vert-center']/p/strong"));
|
||||
var AutoAlignLinkText = element(by.linkText('ExACT AutoAlign'));
|
||||
var AutoAlignTitle = element(by.css('.row:nth-child(14) h2'));
|
||||
var AutoAlignDescriptionText = element(by.css('.row:nth-child(14) p:nth-child(2)'));
|
||||
var AutoAlignSubTextOne = element(by.css('.row:nth-child(14) p:nth-child(3)'));
|
||||
var AutoAlignSubTextTwo = element(by.css('ul:nth-child(4) > li:nth-child(1)'));
|
||||
var AutoAlignSubTextThree = element(by.css('ul:nth-child(4) > li:nth-child(2)'));
|
||||
var AutoAlignSubTextFour = element(by.css('ul:nth-child(4) > li:nth-child(3)'));
|
||||
var AutoAlignSubTextFive = element(by.css('ul:nth-child(4) > li:nth-child(4)'));
|
||||
var AutoAlignSubTextSix = element(by.css('ul:nth-child(4) > li:nth-child(5)'));
|
||||
var AutoAlignSubTextSeven = element(by.css('ul:nth-child(4) > li:nth-child(6)'));
|
||||
var AutoAlignSubTextEight = element(by.css('.row:nth-child(14) p:nth-child(5)'));
|
||||
var AnalyticsAndReportingImage = element(by.css('.col-md-6:nth-child(4) img'));
|
||||
var AnalyticsAndReportingText = element(by.xpath("(//div[@id='vert-center']/p/strong)[2]"));
|
||||
var AnalyticsAndReportingLinkText = element(by.linkText('Correlation Analytics'));
|
||||
var AnalyticsAndReportingTitle = element(by.css('.page-header'));
|
||||
var AnalyticsAndReportingDescriptionText = element(by.css('.field-item > p:nth-child(1)'));
|
||||
var AnalyticsAndReportingTextOne = element(by.css('ul:nth-child(2) > li:nth-child(1)'));
|
||||
var AnalyticsAndReportingTextTwo = element(by.css('ul:nth-child(2) > li:nth-child(2)'));
|
||||
var AnalyticsAndReportingTextThree = element(by.css('p:nth-child(3)'));
|
||||
var AnalyticsAndReportingTextFour = element(by.css('p:nth-child(4) > strong'));
|
||||
var AnalyticsAndReportingTextFive = element(by.css('.field-item > p:nth-child(5)'));
|
||||
var AnalyticsAndReportingTextSix = element(by.css('p:nth-child(6)'));
|
||||
var AnalyticsAndReportingTextSeven = element(by.css('ul:nth-child(7) > li:nth-child(1)'));
|
||||
var AnalyticsAndReportingTextEight = element(by.css('ul:nth-child(7) > li:nth-child(2)'));
|
||||
var AnalyticsAndReportingTextNine = element(by.css('li:nth-child(3)'));
|
||||
var AnalyticsAndReportingTextTen = element(by.css('p:nth-child(8)'));
|
||||
var InternationalImage = element(by.css('.col-md-6:nth-child(7) img'));
|
||||
var InternationalText = element(by.xpath("(//div[@id='vert-center']/p/strong)[3]"));
|
||||
var InternationalLinkText = element(by.linkText('International Standards'));
|
||||
var InternationalTitle = element(by.css('.page-header'));
|
||||
var AustraliaIcon = element(by.css('.map-au'));
|
||||
var AustraliaTitle = element(by.css('.col-md-3:nth-child(1) > a > h4'));
|
||||
var BermudaIcon = element(by.css('.map-bm'));
|
||||
var BermudaTitle = element(by.css('.col-md-3:nth-child(2) > a > h4'));
|
||||
var BrazilIcon = element(by.css('.map-br'));
|
||||
var BrazilTitle = element(by.css('.col-md-3:nth-child(3) > a > h4'));
|
||||
var CambridgeIcon = element(by.css('a:nth-child(2) > img'));
|
||||
var CambridgeTitle = element(by.css('.col-md-3:nth-child(4) > a > h4'));
|
||||
var CandaIcon = element(by.css('.map-ca'));
|
||||
var CandaTitle = element(by.css('.col-md-3:nth-child(5) > a > h4'));
|
||||
var EnglandIcon = element(by.css('.map-uk-en'));
|
||||
var EnglandTitle = element(by.css('.col-md-3:nth-child(6) > a > h4'));
|
||||
var FinlandIcon = element(by.css('.map-fi'));
|
||||
var FinlandTitle = element(by.css('.col-md-3:nth-child(7) > a > h4'));
|
||||
var IndiaIcon = element(by.css('.map-in'));
|
||||
var IndiaTitle = element(by.css('.col-md-3:nth-child(8) > a > h4'));
|
||||
var IrelandIcon = element(by.css('.map-ie'));
|
||||
var IrelandTitle = element(by.css('.col-md-3:nth-child(9) > a > h4'));
|
||||
var MexicoIcon = element(by.css('.map-mx'));
|
||||
var MexicoTitle = element(by.css('.col-md-3:nth-child(10) > a > h4'));
|
||||
var NewZealandIcon = element(by.css('.map-nz'));
|
||||
var NewZealandTitle = element(by.css('.col-md-3:nth-child(11) > a > h4'));
|
||||
var PuertoRicoIcon = element(by.css('.map-pr'));
|
||||
var PuertoRicoTitle = element(by.css('.col-md-3:nth-child(12) > a > h4'));
|
||||
var ScotlandIcon = element(by.css('.map-uk-sc'));
|
||||
var ScotlandTitle = element(by.css('.col-md-3:nth-child(13) > a > h4'));
|
||||
var SignaporeIcon = element(by.css('.map-sg'));
|
||||
var SignaporeTitle = element(by.css('.col-md-3:nth-child(14) > a > h4'));
|
||||
var TaiwanIcon = element(by.css('.map-tw'));
|
||||
var TaiwanTitle = element(by.css('.col-md-3:nth-child(15) > a > h4'));
|
||||
var ThailandIcon = element(by.css('.map-th'));
|
||||
var ThailandTitle = element(by.css('.col-md-3:nth-child(16) > a > h4'));
|
||||
var UnitedArabEmiratesIcon = element(by.css('.map-ae'));
|
||||
var UnitedArabEmiratesTitle = element(by.css('.col-md-3:nth-child(17) > a > h4'));
|
||||
var UnitedKingdomIcon = element(by.css('.map-uk'));
|
||||
var UnitedKingdomTitle = element(by.css('.col-md-3:nth-child(18) > a > h4'));
|
||||
var ExACTLogo = element(by.css('#formLogin > img'));
|
||||
var LoginButton = element(by.css('.btn'));
|
||||
var LostPasswordLinkText = element(by.linkText('Lost your password?'));
|
||||
var LostPasswordAutoAlignText = element(by.css('.col-md-6:nth-child(2) strong'));
|
||||
var LostPasswordAnalyticsAndReportingText = element(by.css('.col-md-6:nth-child(5) strong'));
|
||||
var LostPasswordInternationalText = element(by.css('.col-md-6:nth-child(8) strong'));
|
||||
var ForgotPasswordTitle = element(by.css('h4'));
|
||||
var ForgotUserNameTextBox = element(by.id('username'));
|
||||
var BackToLoginLinkText = element(by.linkText('< Back to Login'));
|
||||
var ValidationText = element(by.css('.alert'))
|
||||
var EdGateLogo = element(by.css('p > img'));
|
||||
var CopyrightText = element(by.css('#footer-branding > p:nth-child(2)'));
|
||||
var DashboardExACTLogo = element(by.css('.list-group-item:nth-child(6)'));
|
||||
|
||||
browser.wait(EC.visibilityOf(PageHeaderText), 30000).then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await PageHeaderText.getText()).toEqual('Empowering publishers with the ability to correlate their unique content to standards.');
|
||||
expect(await PageSubText.getText()).toEqual('The ExACT platform is the education industry’s most trusted source to globally correlate content to standards and produce content alignment reports.');
|
||||
expect(await PageSubTextTwo.getText()).toEqual('With access to over five million learning outcomes, ExACT’s robust toolset allows end users to discover new markets for their content, find gaps, and adjust alignments for specific opportunities');
|
||||
expect(AutoAlignImage.isPresent()).toBe(true);
|
||||
expect(await AutoAlignText.getText()).toEqual('Learn more about ExACT AutoAlign, the AI-based alignment tool');
|
||||
browser.actions().mouseMove(AutoAlignLinkText).perform().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
await AutoAlignImage.click().then(function() {
|
||||
browser.sleep(5000);
|
||||
});
|
||||
browser.getAllWindowHandles().then(function (handles) {
|
||||
browser.driver.switchTo().window(handles[1]).then(async function () {
|
||||
browser.sleep(5000);
|
||||
expect(await browser.driver.getCurrentUrl()).toEqual('https://correlation.edgate.com/exact-alignment-platform#exact_autoalign');
|
||||
expect(await AutoAlignTitle.getText()).toEqual('ExACT AutoAlign');
|
||||
expect(await AutoAlignDescriptionText.getText()).toEqual('EdGate’s Correlation Recommendation Tool provides a “hands-off” correlation process. As more and more content publishers have approached EdGate regarding the need to align thousands, and in some cases, millions, of educational resources, it became clear that we needed a solution that could handle high volumes of metadata, provides immediate results, and is cost-effective.');
|
||||
expect(await AutoAlignSubTextOne.getText()).toEqual('ExACT AutoAlign offers the following capabilities:');
|
||||
expect(await AutoAlignSubTextTwo.getText()).toEqual('Analysis of metadata associated with a resource and recommendation of educational concepts from the EdGate Taxonomy.');
|
||||
expect(await AutoAlignSubTextThree.getText()).toEqual("The metadata in question can be the item's title, description, or other textual information provided by the client.");
|
||||
expect(await AutoAlignSubTextFour.getText()).toEqual("Concepts are associated with the resource and correlations can then be made to state or national standards using EdGate's patented process.");
|
||||
expect(await AutoAlignSubTextFive.getText()).toEqual('Recommendation of relevant keywords to aid in discoverability of the resource.');
|
||||
expect(await AutoAlignSubTextSix.getText()).toEqual('ExACT AutoAlign correlations are completed in a fraction of the time that a traditional correlation process takes, mapping to millions of machine readable standards in the EdGate database, including to the IMS Global CASE identifiers.');
|
||||
expect(await AutoAlignSubTextSeven.getText()).toEqual('API access or via the ExACT base Correlation Tool through subscription service.');
|
||||
expect(await AutoAlignSubTextEight.getText()).toEqual('ExACT AutoAlign relies on machine learning and provides the most relevant AI-based suggestions in relation to the resource metadata. EdGate subject matter experts (SMEs) use ExACT alignment tool to tag thousands of resources each year. As content is tagged, our system becomes more and more familiar with the relationship between metadata and corresponding educational concepts, making ExACT AutoAlign increasingly accurate.');
|
||||
browser.driver.close();
|
||||
browser.driver.switchTo().window(handles[0]);
|
||||
browser.sleep(2500);
|
||||
});
|
||||
});
|
||||
browser.sleep(2500);
|
||||
expect(AnalyticsAndReportingImage.isPresent()).toBe(true);
|
||||
browser.actions().mouseMove(AnalyticsAndReportingImage).perform().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await AnalyticsAndReportingText.getText()).toEqual('See your Correlation Analytics');
|
||||
await AnalyticsAndReportingLinkText.click().then(function() {
|
||||
browser.sleep(5000);
|
||||
});
|
||||
browser.getAllWindowHandles().then(function (handles) {
|
||||
browser.driver.switchTo().window(handles[1]).then(async function () {
|
||||
browser.sleep(5000);
|
||||
expect(await browser.driver.getCurrentUrl()).toEqual('https://correlation.edgate.com/products_services/analytics-and-reporting');
|
||||
expect(await AnalyticsAndReportingTitle.getText()).toEqual('ExACT Analytics & Reporting offers Business Intelligence and Gap Analysis');
|
||||
expect(await AnalyticsAndReportingDescriptionText.getText()).toEqual('The ExACT reporting tool helps publishers generate and visualize alignment data, to search correlation data and create reports that address geographic requirements. Using the powerful ExACT reporting engine, publishers can create on-demand reports for sales or marketing presentations, RFPs or State Adoptions. Product development teams can respond to instructional questions with confidence, knowing they are backed by EdGate’s expertise. Report results are available in Word, Excel, PDF or HTML. ExACT provides the ability to query both the Standards and Content in the following report options:');
|
||||
expect(await AnalyticsAndReportingTextOne.getText()).toEqual('Content Unit Report – this report displays the correlation data from the resource perspective. The resource is listed followed by all the associated standards. View a sample Content Unit Report.');
|
||||
expect(await AnalyticsAndReportingTextTwo.getText()).toEqual('Standards Report – this report displays the correlation data from the standards perspective. The standards are listed followed by all the associated resources. View a sample Standards Report.');
|
||||
expect(await AnalyticsAndReportingTextThree.getText()).toEqual('For additional reporting features and options please visit ExACT Reporting Feature Set or Custom Reports.');
|
||||
expect(await AnalyticsAndReportingTextFour.getText()).toEqual('Gap Analysis:');
|
||||
expect(await AnalyticsAndReportingTextFive.getText()).toEqual('Gap analysis is the process of identifying "gaps" between standards. In the case of content alignment, the ExACT Gap Analysis feature helps reveal those educational standards that do not correlate to a specific content unit.');
|
||||
expect(await AnalyticsAndReportingTextSix.getText()).toEqual('Clients have the ability to:');
|
||||
expect(await AnalyticsAndReportingTextSeven.getText()).toEqual('View correlated and non-correlated standards');
|
||||
expect(await AnalyticsAndReportingTextEight.getText()).toEqual('Refine correlations');
|
||||
expect(await AnalyticsAndReportingTextNine.getText()).toEqual('Produce statistical reports that reveal content coverage');
|
||||
expect(await AnalyticsAndReportingTextTen.getText()).toEqual('This information can then be used for content development, state or district bids, and general analysis of content coverage for a specific standard. All reports can be easily viewed, printed or exported.');
|
||||
browser.driver.close();
|
||||
browser.driver.switchTo().window(handles[0]);
|
||||
browser.sleep(2500);
|
||||
});
|
||||
});
|
||||
browser.sleep(2500);
|
||||
expect(InternationalImage.isPresent()).toBe(true);
|
||||
expect(await InternationalText.getText()).toEqual('Explore how your Content maps to International Standards');
|
||||
browser.actions().mouseMove(InternationalLinkText).perform().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
await InternationalImage.click().then(function() {
|
||||
browser.sleep(5000);
|
||||
});
|
||||
browser.getAllWindowHandles().then(function (handles) {
|
||||
browser.driver.switchTo().window(handles[1]).then(async function () {
|
||||
browser.sleep(5000);
|
||||
expect(await browser.driver.getCurrentUrl()).toEqual('https://correlation.edgate.com/standards/international.html');
|
||||
expect(await InternationalTitle.getText()).toEqual('International Standards');
|
||||
expect(AustraliaIcon.isPresent()).toBe(true);
|
||||
expect(await AustraliaTitle.getText()).toEqual('Australia');
|
||||
expect(BermudaIcon.isPresent()).toBe(true);
|
||||
expect(await BermudaTitle.getText()).toEqual('Bermuda');
|
||||
expect(BrazilIcon.isPresent()).toBe(true);
|
||||
expect(await BrazilTitle.getText()).toEqual('Brazil');
|
||||
expect(CambridgeIcon.isPresent()).toBe(true);
|
||||
expect(await CambridgeTitle.getText()).toEqual('Cambridge');
|
||||
expect(CandaIcon.isPresent()).toBe(true);
|
||||
expect(await CandaTitle.getText()).toEqual('Canada');
|
||||
expect(EnglandIcon.isPresent()).toBe(true);
|
||||
expect(await EnglandTitle.getText()).toEqual('England');
|
||||
expect(FinlandIcon.isPresent()).toBe(true);
|
||||
expect(await FinlandTitle.getText()).toEqual('Finland');
|
||||
expect(IndiaIcon.isPresent()).toBe(true);
|
||||
expect(await IndiaTitle.getText()).toEqual('India');
|
||||
expect(IrelandIcon.isPresent()).toBe(true);
|
||||
expect(await IrelandTitle.getText()).toEqual('Ireland');
|
||||
expect(MexicoIcon.isPresent()).toBe(true);
|
||||
expect(await MexicoTitle.getText()).toEqual('Mexico');
|
||||
expect(NewZealandIcon.isPresent()).toBe(true);
|
||||
expect(await NewZealandTitle.getText()).toEqual('New Zealand');
|
||||
expect(PuertoRicoIcon.isPresent()).toBe(true);
|
||||
expect(await PuertoRicoTitle.getText()).toEqual('Puerto Rico');
|
||||
expect(ScotlandIcon.isPresent()).toBe(true);
|
||||
expect(await ScotlandTitle.getText()).toEqual('Scotland');
|
||||
expect(SignaporeIcon.isPresent()).toBe(true);
|
||||
expect(await SignaporeTitle.getText()).toEqual('Singapore');
|
||||
expect(TaiwanIcon.isPresent()).toBe(true);
|
||||
expect(await TaiwanTitle.getText()).toEqual('Taiwan');
|
||||
expect(ThailandIcon.isPresent()).toBe(true);
|
||||
expect(await ThailandTitle.getText()).toEqual('Thailand');
|
||||
expect(UnitedArabEmiratesIcon.isPresent()).toBe(true);
|
||||
expect(await UnitedArabEmiratesTitle.getText()).toEqual('United Arab Emirates');
|
||||
expect(UnitedKingdomIcon.isPresent()).toBe(true);
|
||||
expect(await UnitedKingdomTitle.getText()).toEqual('United Kingdom');
|
||||
browser.driver.close();
|
||||
browser.driver.switchTo().window(handles[0]);
|
||||
browser.sleep(2500);
|
||||
});
|
||||
});
|
||||
browser.sleep(2500);
|
||||
expect(ExACTLogo.isPresent()).toBe(true);
|
||||
expect(await UserNameTextBox.getAttribute('placeholder')).toEqual('Username');
|
||||
expect(await PasswordTextBox.getAttribute('placeholder')).toEqual('Password');
|
||||
//expect(await LoginButton.getText()).toEqual('1'); CAN'T READ BUTTON
|
||||
expect(LoginButton.getCssValue('color')).toBe('rgba(233, 237, 239, 1)'); //green
|
||||
expect(await LostPasswordLinkText.getText()).toEqual('Lost your password?');
|
||||
await LostPasswordLinkText.click().then(function() {
|
||||
browser.sleep(5000);
|
||||
});
|
||||
expect(await PageHeaderText.getText()).toEqual('Empowering publishers with the ability to correlate their unique content to standards.');
|
||||
expect(await PageSubText.getText()).toEqual('The ExACT platform is the education industry’s most trusted source to globally correlate content to standards and produce content alignment reports.');
|
||||
expect(await PageSubTextTwo.getText()).toEqual('With access to over five million learning outcomes, ExACT’s robust toolset allows end users to discover new markets for their content, find gaps, and adjust alignments for specific opportunities');
|
||||
expect(AutoAlignImage.isPresent()).toBe(true);
|
||||
expect(await LostPasswordAutoAlignText.getText()).toEqual('Learn more about ExACT AutoAlign, the AI-based alignment tool');
|
||||
expect(AnalyticsAndReportingImage.isPresent()).toBe(true);
|
||||
expect(await LostPasswordAnalyticsAndReportingText.getText()).toEqual('See your Correlation Analytics');
|
||||
expect(InternationalImage.isPresent()).toBe(true);
|
||||
expect(await LostPasswordInternationalText.getText()).toEqual('Explore how your Content maps to International Standards');
|
||||
expect(ExACTLogo.isPresent()).toBe(true);
|
||||
expect(await ForgotPasswordTitle.getText()).toEqual('Forgot Password');
|
||||
expect(await ForgotUserNameTextBox.getAttribute('placeholder')).toEqual('Username');
|
||||
//expect(await LoginButton.getText()).toEqual('1'); CAN'T READ BUTTON
|
||||
expect(LoginButton.getCssValue('color')).toBe('rgba(233, 237, 239, 1)'); //green
|
||||
expect(await BackToLoginLinkText.getText()).toEqual('< Back to Login');
|
||||
await browser.driver.getCurrentUrl().then(async function(actualURL) {
|
||||
if(actualURL.indexOf('http://stage.edgate.com/exact/forgot.php') !== -1) {
|
||||
await ForgotUserNameTextBox.sendKeys('exact_juan').then(function() {
|
||||
browser.sleep(1500);
|
||||
});
|
||||
await LoginButton.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await ValidationText.getText()).toEqual('Your password was successfully sent to jhuerta@edmin.com.');
|
||||
} else {
|
||||
await ForgotUserNameTextBox.sendKeys('exact_ctuser').then(function() {
|
||||
browser.sleep(1500);
|
||||
});
|
||||
await LoginButton.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(await ValidationText.getText()).toEqual('Your password was successfully sent to kideguchi@edgate.com.');
|
||||
}
|
||||
});
|
||||
await BackToLoginLinkText.click().then(function() {
|
||||
browser.sleep(5000);
|
||||
});
|
||||
expect(EdGateLogo.isPresent()).toBe(true);
|
||||
expect(await CopyrightText.getText()).toEqual('© Copyright 2021 EdGate Correlation Services');
|
||||
await browser.driver.getCurrentUrl().then(async function(actualURL) {
|
||||
if(actualURL.indexOf('http://stage.edgate.com/exact/login.php') !== -1) {
|
||||
await UserNameTextBox.sendKeys('exact_juan').then(function() {
|
||||
browser.sleep(1500);
|
||||
});
|
||||
} else {
|
||||
await UserNameTextBox.sendKeys('exact_ctuser').then(function() {
|
||||
browser.sleep(1500);
|
||||
});
|
||||
}
|
||||
});
|
||||
await PasswordTextBox.sendKeys('ex123456').then(function() {
|
||||
browser.sleep(1500);
|
||||
});
|
||||
await LoginButton.click().then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
browser.wait(EC.visibilityOf(DashboardExACTLogo), 30000).then(function() {
|
||||
browser.sleep(2500);
|
||||
});
|
||||
expect(DashboardExACTLogo.isPresent()).toBe(true);
|
||||
});
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user