-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #193 from autentia/feature/expand_project_types
Add project types attending to billing
- Loading branch information
Showing
28 changed files
with
258 additions
and
61 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
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
37 changes: 37 additions & 0 deletions
37
src/features/binnacle/features/activity/tests/change-billable-activity-form.int.tsx
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,37 @@ | ||
import ActivitiesPage from '../ui/activities-page' | ||
|
||
describe('Change billable type activity', () => { | ||
it('should put not billable when no billable project', () => { | ||
setup() | ||
cy.findByTestId('show_activity_modal').click() | ||
cy.findByRole('button', { name: 'Add role' }).click() | ||
cy.findByTestId('organization_field').type('Test organization\n') | ||
cy.findByTestId('project_field').type('Proyecto C\n') | ||
|
||
cy.findByText('No billable').should('exist') | ||
}) | ||
|
||
it('should closed price when billable project', () => { | ||
setup() | ||
cy.findByTestId('show_activity_modal').click() | ||
cy.findByRole('button', { name: 'Add role' }).click() | ||
cy.findByTestId('organization_field').type('Test organization\n') | ||
cy.findByTestId('project_field').type('Proyecto B\n') | ||
|
||
cy.findByText('Closed price').should('exist') | ||
}) | ||
|
||
it('should change billable field when billable project', () => { | ||
setup() | ||
cy.findByTestId('show_activity_modal').click() | ||
cy.findByRole('button', { name: 'Add role' }).click() | ||
cy.findByTestId('organization_field').type('Test organization\n') | ||
cy.findByTestId('project_field').type('Proyecto A\n') | ||
|
||
cy.findByText('Billable').should('exist') | ||
}) | ||
}) | ||
|
||
function setup() { | ||
cy.mount(<ActivitiesPage />) | ||
} |
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
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
Oops, something went wrong.