Move GREYAsserts from automation_action (for autofill) into the corresponding EG tests.
This is part of EG1 to EG2 migration, which involves moving EarlGrey code from app-side helpers into test code. For GREYAsserts, the policy is to take assert- containing-helpers, modify them to return NSError* with localizedDescription containing the assert failure (in the event of a failure), and then assert on the result of the helper on the test side. Confirmed locally that autofill site tests still work after the refactor. I feel the way in which NSErrors are passed around automation_action could be cleaned up in a neater fashion given greater code refactoring (instead of just modifying methods to take NSErrors) but I am not sure what form that would take at the moment. Bug: 922813 Change-Id: I0d4e92970c9184662d7b147eee0babcb4cfbede8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1580581Reviewed-by:Eugene But <eugenebut@chromium.org> Commit-Queue: ericale <ericale@chromium.org> Cr-Commit-Position: refs/heads/master@{#653775}
Showing
This diff is collapsed.
Please register or sign in to comment