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 b6a8948
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/client/modules/ExportWins/Status/WinsWonTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const WinsWonTable = ({ exportWins }) => (
<Table.Cell>{currencyGBP(total_expected_export_value)}</Table.Cell>
<NoWrapCell>{formatMediumDate(date)}</NoWrapCell>
<NoWrapCell>
{formatMediumDate(customer_response?.created_on)}
{formatMediumDate(customer_response.responded_on)}
</NoWrapCell>
<NoWrapCell>
<Link
Expand Down
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 win" 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 win" 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 b6a8948

Please sign in to comment.