Skip to content

Commit

Permalink
Fixed loginless front-end test
Browse files Browse the repository at this point in the history
  • Loading branch information
felder101 committed Oct 25, 2024
1 parent 3012987 commit 54d600b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions training-front-end/src/components/__tests__/Loginless.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,11 +304,11 @@ describe('Loginless', () => {

const options = wrapper.findAll('option')

expect(options.length).toBe(4)
expect(options[1].text()).toBe('General Services Administration')
expect(options[1].element.value).toBe('1')
expect(options[2].text()).toBe('Department of the Treasury')
expect(options[2].element.value).toBe('2')
expect(options.length).toBe(3)
expect(options[0].text()).toBe('General Services Administration')
expect(options[0].element.value).toBe('1')
expect(options[1].text()).toBe('Department of the Treasury')
expect(options[1].element.value).toBe('2')
})

it('does not show bureau select when agency has none', async () => {
Expand Down Expand Up @@ -341,11 +341,11 @@ describe('Loginless', () => {
const bureau_select = await wrapper.get('[name="bureau"]')
const options = bureau_select.findAll('option')

expect(options.length).toBe(3)
expect(options[1].text()).toBe('United States Mint')
expect(options[1].element.value).toBe('3')
expect(options[2].text()).toBe('Financial Crimes Enforcement')
expect(options[2].element.value).toBe('4')
expect(options.length).toBe(2)
expect(options[0].text()).toBe('United States Mint')
expect(options[0].element.value).toBe('3')
expect(options[1].text()).toBe('Financial Crimes Enforcement')
expect(options[1].element.value).toBe('4')
})

it('sets uses the bureau when selected', async () => {
Expand Down

0 comments on commit 54d600b

Please sign in to comment.