-
-
Notifications
You must be signed in to change notification settings - Fork 591
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
5190ea0
commit a60167e
Showing
2 changed files
with
32 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
describe('Check actions', () => { | ||
beforeEach(() => { | ||
cy.clearLocalStorage(); | ||
cy.visit('/edit'); | ||
cy.contains('Actions').click(); | ||
}); | ||
it('should update markdown code', () => { | ||
cy.get('#markdown') | ||
.invoke('val') | ||
.then((oldText) => { | ||
cy.get('#editor').click('bottom').type('{enter}C --> HistoryTest'); | ||
cy.get('#markdown') | ||
.invoke('val') | ||
.then((newText) => { | ||
expect(oldText).to.not.eq(newText); | ||
}); | ||
}); | ||
}); | ||
}); |
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,13 @@ | ||
describe('Load sample diagrams', () => { | ||
beforeEach(() => { | ||
cy.clearLocalStorage(); | ||
cy.visit('/edit'); | ||
}); | ||
it('should load new diagram clicked', () => { | ||
cy.contains('Sample Diagrams').click(); | ||
cy.contains('Pie Chart').click(); | ||
cy.contains('pie title Pets adopted by volunteers'); | ||
cy.contains('Class Diagram').click(); | ||
cy.contains('classDiagram'); | ||
}); | ||
}); |