Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup the tests for quests: * Split the testing of elements into separate files to make it simpler when image tests are added and to simplify tests that do not need the entire module. * Add an initializeModule function to hold the code that creates the element, sets its data, and adds it to the DOM so it doesn't have to be repeated in every test. * Let layoutType and num of related searches be passed into the function for creating a sample cluster since it was having to be added to overrides in basically every test. Otherwise, we were creating the URLVisits twice. Bug: 1424951 Change-Id: I023448ad57e81e640196aacb8620694aa9795395 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4342604 Reviewed-by: Marlon Facey <mfacey@google.com> Reviewed-by: Roman Arora <romanarora@chromium.org> Commit-Queue: Riley Tatum <rtatum@google.com> Cr-Commit-Position: refs/heads/main@{#1118414}
- Loading branch information