Skip to content

Commit

Permalink
Add acceptance test for radius filter
Browse files Browse the repository at this point in the history
  • Loading branch information
pratishta committed Apr 25, 2024
1 parent 1c3554b commit 8dc7bfc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions client/tests/acceptance/filter-checkbox-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ module('Acceptance | filter checkbox', function(hooks) {
assert.equal(currentURL().includes('dcp_femafloodzonea=true'), true);
});

test('User clicks radius filter checkbox', async function(assert) {
server.createList('project', 20);
await visit('/');
await click('[data-test-filter-section="filter-section-radius-filter"] .switch-paddle');

assert.equal(currentURL().includes('distance_from_point'), true);
assert.equal(currentURL().includes('radius_from_point'), true);
});

test('User clicks community district box, fills in community district name, selects CD', async function(assert) {
server.createList('project', 20);
await visit('/');
Expand Down

0 comments on commit 8dc7bfc

Please sign in to comment.