-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a9ecb64
commit ad78469
Showing
4 changed files
with
4 additions
and
7 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 |
---|---|---|
|
@@ -8,28 +8,26 @@ describe('create and change a course', () => { | |
cy.get('#addCourse').click() | ||
// fill in the fields | ||
cy.get('#courseName').type('test course') | ||
cy.get('#uploadStudent').get('#email').type('[email protected]') | ||
cy.get('#uploadStudent').get('#add').click() | ||
cy.get('#save').click() | ||
cy.get('#confirm').click() | ||
// check if course was added | ||
cy.get('#logo').click(); | ||
cy.contains('test course').should('exist') | ||
cy.contains('Students: 1').should('exist') | ||
cy.contains('Students: 0').should('exist') | ||
}) | ||
|
||
it('alter course', () => { | ||
|
||
cy.contains('test course').click() | ||
cy.get('#editButton').click() | ||
// add a student | ||
cy.get('#uploadStudent').get('#email').type('student1@testing.com') // make sure there is a student 1 in the db | ||
cy.get('#uploadStudent').get('#email').type('student@testing.com') | ||
cy.get('#uploadStudent').get('#add').click() | ||
// save course | ||
cy.get('#save').click() | ||
cy.get('#confirm').click() | ||
// check if the student was added | ||
cy.get('#logo').click(); | ||
cy.contains('Students: 2').should('exist') | ||
cy.contains('Students: 1').should('exist') | ||
}) | ||
}) |
Binary file not shown.
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