-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- DOM / UI / JS spaghetti state management is just ...
- Loading branch information
Showing
8 changed files
with
26 additions
and
24 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
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 |
---|---|---|
@@ -1,28 +1,27 @@ | ||
describe('Dashboard', () => { | ||
it('Opens dashboard', () => { | ||
cy.resetDB(); | ||
cy.loginAndVisit('/'); | ||
|
||
// List counts. | ||
cy.get('[data-cy=lists] .title').contains('2'); | ||
cy.get('[data-cy=lists]') | ||
.should('contain', '2 Lists') | ||
.and('contain', '1 Public') | ||
.and('contain', '1 Private') | ||
.and('contain', '1 Single opt-in') | ||
.and('contain', '1 Double opt-in'); | ||
|
||
// Campaign counts. | ||
cy.get('[data-cy=campaigns]') | ||
.should('contain', '1 Campaign') | ||
.and('contain', '1 draft'); | ||
cy.get('[data-cy=campaigns] .title').contains('1'); | ||
cy.get('[data-cy=campaigns]').contains('1 draft'); | ||
|
||
// Subscriber counts. | ||
cy.get('[data-cy=subscribers] .title').contains('2'); | ||
cy.get('[data-cy=subscribers]') | ||
.should('contain', '2 Subscribers') | ||
.and('contain', '0 Blocklisted') | ||
.should('contain', '0 Blocklisted') | ||
.and('contain', '0 Orphans'); | ||
|
||
// Message count. | ||
cy.get('[data-cy=messages]') | ||
.should('contain', '0 Messages sent'); | ||
cy.get('[data-cy=messages] .title').contains('0'); | ||
}); | ||
}); |
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
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