-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add export win button behind a user feature group
- Loading branch information
Showing
3 changed files
with
30 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
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
16 changes: 16 additions & 0 deletions
16
test/functional/cypress/specs/export-win/user-feature-group-spec.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,16 @@ | ||
const company = '/companies/00009ae3-1912-e411-8a2b-e4115bead28a/overview' | ||
|
||
describe('Export win user feature groups', () => { | ||
context('Company page"', () => { | ||
it('should render the "Add export win" button', () => { | ||
cy.setUserFeatureGroups(['export-wins']) | ||
cy.visit(company) | ||
cy.get('[data-test="header-add-export-win"]').should('exist') | ||
}) | ||
it('should hide the "Add export win" button', () => { | ||
cy.setUserFeatureGroups([]) | ||
cy.visit(company) | ||
cy.get('[data-test="header-add-export-win"]').should('not.exist') | ||
}) | ||
}) | ||
}) |