-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#127 Add opt-out to component, fix tests
- Loading branch information
Showing
4 changed files
with
27 additions
and
10 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 |
---|---|---|
|
@@ -295,10 +295,10 @@ describe('Client Display Leaderboard (with shared data) Tests', () => { | |
}]); | ||
|
||
cy.cdVisit('/[email protected]'); | ||
cy.get('[data-cy="myRank"]') | ||
cy.get('[data-cy="optedOutMessage"]') | ||
.contains('Opted-Out'); | ||
cy.get('[data-cy="myRank"]') | ||
.contains('Your position would be 13 if you opt-in'); | ||
cy.get('[data-cy="optedOutMessage"]') | ||
.contains('Your position would be #13 if you opt-in'); | ||
cy.wait(2000) | ||
cy.matchSnapshotImageForElement('[data-cy="myRank"]', { | ||
name: 'my-rank-opted-out', | ||
|