-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1018 from necyberteam/md-dev
Md dev
- Loading branch information
Showing
6 changed files
with
172 additions
and
78 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
tests/cypress/cypress/e2e/accessmatch/community-overview.cy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
This test is specifically focused on the Community Overview Page tested for an unauthenticated user. | ||
This test checks for major functions like: | ||
Page Title, | ||
CTA Functionality | ||
Popular Tags | ||
*/ | ||
|
||
describe("Unauthenticated user tests the Community Overview Page", () => { | ||
it("Should test Community Overview Page for unauthenticated user", () => { | ||
// login user with the "unauthenticated" role | ||
cy.visit("/community/overview"); | ||
|
||
//Page Title | ||
cy.get(".page-title").contains("Community"); | ||
|
||
//Call to action function | ||
cy.verifyCallToActionBlock( | ||
"/community/overview", | ||
"Join the CSSN", | ||
"/user/login?destination=/cssn%23join-cssn" | ||
); | ||
|
||
//Popular Tags tested? | ||
}); | ||
}); |
44 changes: 44 additions & 0 deletions
44
tests/cypress/cypress/e2e/accessmatch/match-overview.cy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* | ||
This test is specifically focused on the Match Overview Page tested for an unauthenticated user. | ||
This test checks for major functions like: | ||
Page Title, | ||
CTA Functionality | ||
Match Enagagements section | ||
*/ | ||
|
||
describe("Unauthenticated user tests the Match Overview Page", () => { | ||
it("Should test Match Overview Page for unauthenticated user", () => { | ||
// login user with the "unauthenticated" role | ||
cy.visit("/match/overview"); | ||
|
||
//Page Title | ||
cy.get(".page-title > .field").contains("Match Services Overview"); | ||
|
||
//Call to action function | ||
cy.verifyCallToActionBlock( | ||
"/match/overview", | ||
"Request an engagement", | ||
"/node/add/match_engagement?type=plus" | ||
); | ||
|
||
//Match Engagements Header | ||
cy.get(".m-0").contains("MATCH Engagements"); | ||
|
||
//Match Engagements Btn | ||
cy.get(".btn") | ||
.should("exist") | ||
.contains("All Engagements") | ||
.should("have.attr", "href", "/match/engagements"); | ||
|
||
//Individual Match Engagement | ||
cy.get(":nth-child(2) > .card > .card-body").contains( | ||
"GPU-accelerated ice sheet flow modeling" | ||
); | ||
cy.get(":nth-child(2) > .card > .card-body").contains( | ||
"University of North Dakota" | ||
); | ||
cy.get(":nth-child(2) > .card > .card-body").contains( | ||
"Status: In Progress" | ||
); | ||
}); | ||
}); |
23 changes: 23 additions & 0 deletions
23
tests/cypress/cypress/e2e/accessmatch/video-learning-center.cy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
This test is specifically focused on the Video Learning Center Page tested for an unauthenticated user. | ||
This test checks for major functions like: | ||
Page Title, | ||
CTA Functionality | ||
*/ | ||
|
||
describe("Unauthenticated user tests the Video Learning Center Page", () => { | ||
it("Should test Video Learning Center Page for unauthenticated user", () => { | ||
// login user with the "unauthenticated" role | ||
cy.visit("/video-learning-center"); | ||
|
||
//Page Title | ||
cy.get(".page-title").contains("ACCESS Support Video Learning Center"); | ||
|
||
//Call to action function | ||
cy.verifyCallToActionBlock( | ||
"/video-learning-center", | ||
"ACCESS CI YouTube Channel", | ||
"https://www.youtube.com/c/ACCESSforCI" | ||
); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters