Skip to content

Commit

Permalink
Adding filter functionality.
Browse files Browse the repository at this point in the history
  • Loading branch information
jedgar1mx committed Mar 8, 2024
1 parent 478cdf9 commit d6ef569
Show file tree
Hide file tree
Showing 8 changed files with 163 additions and 181 deletions.
2 changes: 1 addition & 1 deletion build/assets/js/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/assets/js/main.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/assets/js/runtime.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/assets/js/vendors.terraformer-arcgis-parser.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/assets/js/vendors.terraformer.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/assets/js/vendors.turf.js

Large diffs are not rendered by default.

96 changes: 1 addition & 95 deletions cypress/e2e/test.js
Original file line number Diff line number Diff line change
@@ -1,99 +1,5 @@
describe('Basic test for address result', () => {
describe('District 6 map tests', () => {
it('successfully loads', () => {
cy.visit('/')
cy.get('my-home-info')
.contains('It’s all here. All in one place.')
})

it('Test address and panel switch', () => {
cy.visit('/')
cy.get('my-home-info')
.get('#geocoder input').type('1104 military{enter}')
cy.wait(3000)
cy.get('my-home-info')
.contains('1104 Military St, Detroit, MI, 48209')
cy.get('my-home-info')
.get('cod-button[data-nav-value="special areas and zones"]').click()
cy.wait(3000)
cy.get('my-home-info')
.contains('SPECIAL AREAS AND ZONES')
})


it('Test invalid address', () => {
cy.visit('/')
cy.get('my-home-info')
.get('#geocoder input').type('3213 sdfasf{enter}')
cy.wait(3000)
cy.get('my-home-info')
.contains('No Information found on this address. Please close and try again.')
})

it('Test printing functionality', () => {
cy.visit('/')
cy.get('my-home-info')
.get('#geocoder input').type('1104 military{enter}')
cy.wait(3000)
cy.get('my-home-info')
.contains('1104 Military St, Detroit, MI, 48209')
cy.get('my-home-info')
.get('cod-button[data-nav-value="print"]').click()
})

it('Test map feature', () => {
cy.visit('/')
cy.get('my-home-info')
.get('#geocoder input').type('1104 military{enter}')
cy.wait(3000)
cy.get('my-home-info')
.contains('1104 Military St, Detroit, MI, 48209')
cy.get('my-home-info')
.get('cod-button[data-nav-value="things nearby"]').click()
cy.wait(3000)
cy.get('my-home-info')
.contains('THINGS NEARBY')
cy.get('my-home-info')
.contains('View Map')
cy.get('my-home-info')
.get('cod-button[data-map-active-data="schools"]')
.click()
})

it('Check geospatial sorting', () => {
cy.visit('/')
cy.get('my-home-info')
.get('#geocoder input').type('1104 military{enter}')
cy.wait(3000)
cy.get('my-home-info')
.contains('1104 Military St, Detroit, MI, 48209')
cy.get('my-home-info')
.get('cod-button[data-nav-value="things nearby"]').click()
cy.wait(3000)
cy.get('my-home-info')
.contains('THINGS NEARBY')
cy.get('my-home-info')
.contains('Real Parks Help')
})

it('Test pagination', () => {
cy.visit('/')
cy.get('my-home-info')
.get('#geocoder input').type('1104 military{enter}')
cy.wait(3000)
cy.get('my-home-info')
.contains('1104 Military St, Detroit, MI, 48209')
cy.get('my-home-info')
.get('cod-button[data-nav-value="things nearby"]').click()
cy.wait(3000)
cy.get('my-home-info')
.contains('THINGS NEARBY')
cy.get('my-home-info')
.contains('View Map')
cy.get('my-home-info')
.get('cod-button[data-label="Load More +"]')
.first()
.click()
cy.get('my-home-info')
.contains('Cesar Chavez High School')
})
})
Loading

0 comments on commit d6ef569

Please sign in to comment.