From 9f010880531f1238a0ce100fc9f8673b951521c5 Mon Sep 17 00:00:00 2001 From: Paul Gain Date: Fri, 1 Mar 2024 10:18:22 +0000 Subject: [PATCH] PR refinements --- .../cypress/specs/export-win/user-feature-group-spec.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/functional/cypress/specs/export-win/user-feature-group-spec.js b/test/functional/cypress/specs/export-win/user-feature-group-spec.js index 13b9919972d..2533aebface 100644 --- a/test/functional/cypress/specs/export-win/user-feature-group-spec.js +++ b/test/functional/cypress/specs/export-win/user-feature-group-spec.js @@ -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') @@ -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')