-
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 #1150 from necyberteam/md-dev
Md dev
- Loading branch information
Showing
22 changed files
with
1,026 additions
and
30 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ccmnet_org |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,15 @@ | ||
/* | ||
CCMnet Homepage for an unauthenticated user. | ||
*/ | ||
describe("Unauthenticated user tests the CCMNet Homepage", () => { | ||
it("Should test the CCMNet Homepage for unauthenticated user", () => { | ||
cy.visit("/"); | ||
|
||
// Site heading | ||
cy.get(".site-heading").contains( | ||
"A peer-to-peer program for CI professionals to make connections and exchange knowledge" | ||
); | ||
|
||
}); | ||
}); | ||
|
36 changes: 36 additions & 0 deletions
36
tests/cypress/cypress/e2e/ccmnet/mentorships/add-mentorship.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,36 @@ | ||
/* | ||
Authenticated user creates a new Mentorship Engagement. | ||
*/ | ||
describe("Authenticated user creates a Mentorship Engagement", () => { | ||
it("Authenticated user creates a Mentorship Engagement", () => { | ||
cy.loginWith("[email protected]", "Pecan") | ||
cy.visit("/node/add/mentorship_engagement") | ||
|
||
// check the box for "I am looking for a mentor" | ||
cy.get("#edit-field-me-looking-for-mentor").check() | ||
|
||
cy.get("#edit-title-0-value").type("Mentorship Title") | ||
|
||
cy.get("#edit-body-0-summary").type("Mentorship Summary") | ||
|
||
cy.get('.form-item-body-0-value .ck-content').then(el => { | ||
const editor = el[0].ckeditorInstance | ||
editor.setData('Mentoring supports the growth of a vibrant HPC community by connecting students with experienced mentors. Matches are based on multiple factors, including research interests, career goals, long-term plans, and general interests. Providing valuable professional advice and resources that will benefit mentees which might include: sharing expertise in your specific research domain/discipline, sharing personal experiences and advice that might benefit your student mentee, encouraging students to stay abreast of scholarly literature and cutting-edge ideas in their field, Encouraging the open exchange of ideas, Facilitating networking opportunities with other faculty or professionals on campus or within the broader research community as appropriate.') | ||
}) | ||
|
||
// get tag suggestions | ||
// cy.get("#field-tags-replace input[type='submit']").click() | ||
|
||
cy.get("details.tags summary").click() | ||
cy.get("#tag-ai").click() | ||
|
||
cy.get('.form-item-field-me-preferred-attributes-0-value .ck-content').then(el => { | ||
const editor = el[0].ckeditorInstance | ||
editor.setData('Be nice.') | ||
}) | ||
|
||
cy.get('#edit-field-me-state').select('Recruiting') | ||
|
||
cy.get(".node-mentorship-engagement-form #edit-submit").click() | ||
}); | ||
}); |
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
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
Oops, something went wrong.