Updated due to UI changes

This commit is contained in:
2022-04-26 11:20:30 -07:00
parent 4e8b496ec8
commit dc4afc5fc5
8 changed files with 1908 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
//exactLandingPage_spec.js
//exActLandingPage_spec.js
describe('My Journeys Widget script', function () {
//login-journeysmap landing page
@@ -112,7 +112,7 @@ describe('My Journeys Widget script', function () {
});
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(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() {
@@ -125,7 +125,7 @@ describe('My Journeys Widget script', function () {
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 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.');
@@ -134,7 +134,7 @@ describe('My Journeys Widget script', function () {
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.');
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);
@@ -208,6 +208,9 @@ describe('My Journeys Widget script', function () {
expect(await NewZealandTitle.getText()).toEqual('New Zealand');
expect(PuertoRicoIcon.isPresent()).toBe(true);
expect(await PuertoRicoTitle.getText()).toEqual('Puerto Rico');
browser.executeScript('window.scrollTo(0, 210);').then(function() {
browser.sleep(2500);
});
expect(ScotlandIcon.isPresent()).toBe(true);
expect(await ScotlandTitle.getText()).toEqual('Scotland');
expect(SignaporeIcon.isPresent()).toBe(true);
@@ -237,7 +240,7 @@ describe('My Journeys Widget script', function () {
});
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(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);
@@ -250,6 +253,14 @@ describe('My Journeys Widget script', function () {
//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 ForgotUserNameTextBox.sendKeys('exact_jhuerta').then(function() {
browser.sleep(1500);
});
await LoginButton.click().then(function() {
browser.sleep(2500);
});
expect(await ValidationText.getText()).toEqual('exact_jhuerta was not found. Please check the username you entered and try again.');
browser.sleep(2500);
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() {
@@ -297,4 +308,30 @@ describe('My Journeys Widget script', function () {
expect(DashboardExACTLogo.isPresent()).toBe(true);
});
}
});
//Sign Out
SignOut();
});
function SignOut() {
it(': SignOut, should log out of ExACT', async function () {
var ProfileImage = element(by.css('#navbarDropdown > span'));
var LogOutLinkText = element(by.linkText('Log Out'));
var EC = protractor.ExpectedConditions;
var ExACTLogo = element(by.css('#formLogin > img'));
await ProfileImage.click().then(function() {
browser.sleep(2500);
});
browser.actions().mouseMove(LogOutLinkText).perform().then(function() {
browser.sleep(2500);
});
await LogOutLinkText.click().then(function() {
browser.sleep(2500);
});
browser.wait(EC.visibilityOf(ExACTLogo), 30000).then(function() {
browser.sleep(2500);
});
expect(ExACTLogo.isPresent()).toBe(true);
});
}