cagov / Alpha

This is the Dev/Tech repo for CA.gov Alpha.
https://alpha.ca.gov
GNU General Public License v3.0
18 stars 10 forks source link

End to End testing for foodbanks #302

Closed ChadABratton closed 4 years ago

ChadABratton commented 4 years ago

At a minimum, the foodbanks page must autocomplete and display results near you.

ChadABratton commented 4 years ago

Foodbanks - auto complete test is written and working, here is the code:

describe("food banks", () => { test("fb autocomplete works", async () => { await page.goto(hostname+'/services/find-food-banks-near-you/'); await page.waitForSelector(".city-search"); await page.type(".city-search", '9582'); await page.waitForSelector("#awesomplete_list_1 li"); let listitems = await page.$$eval('#awesomplete_list_1 li', listitems => { return listitems }); expect(listitems.length).toBeGreaterThan(1); }, 16000); });

ChadABratton commented 4 years ago

2nd test complete! image

Code checked into master branch! https://github.com/cagov/Alpha/commit/1b52dfe2fec69c25bdc663eb3368cb7f9b62c215

image

ChadABratton commented 4 years ago

Issue can now be closed. Food banks end to end testing is all done! See results above, all tests passed with success. @abquirarte @KimberlyglennTSM

abquirarte commented 4 years ago

yay!