Skip to content

Commit

Permalink
PR refinements
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgain committed Mar 1, 2024
1 parent b6e6f1a commit 9f01088
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ describe('Export win user feature groups', () => {
const company = '/companies/00009ae3-1912-e411-8a2b-e4115bead28a/overview'

context('Company page"', () => {
it('should show the "Add export win" button', () => {
it('should show the "Add export win" button when the feature is active', () => {
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', () => {
it('should hide the "Add export win" button when the feature is inactive', () => {
cy.setUserFeatureGroups([])
cy.visit(company)
cy.get('[data-test="header-add-export-win"]').should('not.exist')
Expand Down Expand Up @@ -40,13 +40,13 @@ describe('Export win user feature groups', () => {
cy.intercept('GET', '/api-proxy/v4/export/owner', [])
})

it('should show the "Add export win" link', () => {
it('should show the "Export wins" link when the feature is active', () => {
cy.setUserFeatureGroups(['export-wins'])
cy.visit(urls.exportPipeline.index())
cy.get('[data-test="export-wins"]').should('exist')
})

it('should hide the "Add export win" button', () => {
it('should hide the "Export wins" link when the feature is inactive', () => {
cy.setUserFeatureGroups([])
cy.visit(urls.exportPipeline.index())
cy.get('[data-test="export-wins"]').should('not.exist')
Expand Down

0 comments on commit 9f01088

Please sign in to comment.