-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
B 20010 int Add FF for HQ role #12984
Merged
Merged
Changes from 17 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
0471865
Merge branch 'main' of github.com:transcom/mymove into B-20010
r-mettler b84ee7a
adding HEADQUARTERS_ROLE FF
r-mettler 4de9977
adjust hq ff checks
r-mettler dab0267
prevent safety moves privs for hq role
r-mettler 7b705e9
updating safety moves check
r-mettler 3b7e3a9
Merge branch 'main' of github.com:transcom/mymove into B-20010
r-mettler bfa932d
Merge branch 'main' of github.com:transcom/mymove into B-20010
r-mettler 1fa862a
don't display HQ checkbox if FF on
r-mettler 1e4146d
for now we hard code off HQ for Request Account
r-mettler c7d54c1
Merge branch 'main' of github.com:transcom/mymove into B-20010
r-mettler 9c0b950
fix formatting errors
r-mettler 2213792
Merge branch 'main' of github.com:transcom/mymove into B-20010
r-mettler fad195f
fixing bad merge changes
r-mettler a41e211
feature flag failures in js files, moved to admin page, removed offic…
r-mettler cc7c213
Merge branch 'main' of github.com:transcom/mymove into B-20010
r-mettler 7c891c9
Merge branch 'B-20010' of github.com:transcom/mymove into B-20010-INT
r-mettler 6fd72d9
Merge branch 'integrationTesting' into B-20010-INT
r-mettler 99bad7b
fixing merge issue, duplicate if
r-mettler 566d39d
Merge branch 'B-20010-INT' of github.com:transcom/mymove into B-20010…
r-mettler b6148a8
Merge branch 'integrationTesting' of github.com:transcom/mymove into …
r-mettler e4e3db0
Merge branch 'main' of github.com:transcom/mymove into B-20010
r-mettler e522dd5
Merge branch 'integrationTesting' of github.com:transcom/mymove into …
r-mettler cdb7046
Merge branch 'B-20010' of github.com:transcom/mymove into B-20010-INT
r-mettler 057bf25
Merge branch 'integrationTesting' of github.com:transcom/mymove into …
r-mettler 32f1e6d
use const for role and priv checks
r-mettler ebc996e
Merge branch 'main' of github.com:transcom/mymove into B-20010
r-mettler 3938144
Merge branch 'integrationTesting' of github.com:transcom/mymove into …
r-mettler 5c3da10
Merge branch 'B-20010' of github.com:transcom/mymove into B-20010-INT
r-mettler a77a607
Merge branch 'integrationTesting' into B-20010-INT
r-mettler File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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 |
---|---|---|
|
@@ -90,10 +90,6 @@ describe('RequestAccountForm component', () => { | |
const qsaCheckbox = screen.getByTestId('qualityAssuranceAndCustomerSupportCheckBox'); | ||
expect(qsaCheckbox).toBeInstanceOf(HTMLInputElement); | ||
expect(qsaCheckbox).not.toBeChecked(false); | ||
|
||
const hqCheckbox = screen.getByTestId('headquartersCheckBox'); | ||
expect(hqCheckbox).toBeInstanceOf(HTMLInputElement); | ||
expect(hqCheckbox).not.toBeChecked(false); | ||
}); | ||
|
||
it('cancels requesting office account when cancel button is clicked', async () => { | ||
|
@@ -149,51 +145,6 @@ describe('RequestAccountForm component', () => { | |
expect(testProps.onSubmit).toHaveBeenCalled(); | ||
}); | ||
|
||
it('submits Headquarters office account form when submit button is clicked', async () => { | ||
const mockOfficeId = '3210a533-19b8-4805-a564-7eb452afce10'; | ||
const mockHeadquartersOffice = { | ||
address: { | ||
city: 'Test City', | ||
country: 'United States', | ||
id: 'a13806fc-0e7d-4dc3-91ca-b802d9da50f1', | ||
postalCode: '85309', | ||
state: 'AZ', | ||
streetAddress1: '7383 N Litchfield Rd', | ||
streetAddress2: 'Rm 1122', | ||
}, | ||
created_at: '2018-05-28T14:27:39.198Z', | ||
gbloc: 'KKFA', | ||
id: mockOfficeId, | ||
name: 'Tester', | ||
phone_lines: [], | ||
updated_at: '2018-05-28T14:27:39.198Z', | ||
}; | ||
|
||
const mockSearchHeadquartersOfficesOpen = () => Promise.resolve([mockHeadquartersOffice]); | ||
searchTransportationOfficesOpen.mockImplementation(mockSearchHeadquartersOfficesOpen); | ||
|
||
renderWithRouter(<RequestAccountForm {...testProps} />); | ||
|
||
await userEvent.type(screen.getByLabelText('First Name'), 'Bob'); | ||
await userEvent.type(screen.getByLabelText('Last Name'), 'Banks'); | ||
await userEvent.type(screen.getByLabelText('Email'), '[email protected]'); | ||
await userEvent.type(screen.getByLabelText('Telephone'), '333-333-3333'); | ||
await userEvent.type(screen.getByTestId('officeAccountRequestEdipi'), '1111111111'); | ||
await userEvent.type(screen.getByTestId('officeAccountRequestOtherUniqueId'), '1111111111'); | ||
|
||
const transportationOfficeInput = screen.getByLabelText('Transportation Office'); | ||
fireEvent.change(transportationOfficeInput, { target: { value: 'Tester' } }); | ||
await act(() => selectEvent.select(transportationOfficeInput, /Tester/)); | ||
|
||
const tooCheckbox = screen.getByTestId('headquartersCheckBox'); | ||
await userEvent.click(tooCheckbox); | ||
|
||
const submitButton = await screen.getByTestId('requestOfficeAccountSubmitButton'); | ||
await userEvent.click(submitButton); | ||
|
||
expect(testProps.onSubmit).toHaveBeenCalled(); | ||
}); | ||
|
||
it('shows policy error when both TOO and TIO checkboxes are both selected, and goes away after unselecting one of them', async () => { | ||
renderWithRouter(<RequestAccountForm {...testProps} />); | ||
|
||
|
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hard to see in the default diff view but it looks like a weird merge thing caused this
if
block to be duplicated.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ha, figures. It didn't even flag it as a conflict. I'll go fix that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed it. Only did that on this INT branch. Thanks git *sigh