You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Meanwhile other components, such as loading aren't taking screenshots of anything but the basic one. I think we should be consistent here, and update the e2e tests for all of the overlay components to the same style:
100% agree, i don't like how the action-sheet tests are spread across many fails, it makes it hard to add new tests! I like your format of using a loop, i would modify it to actually move the test() inside the loop itself, so we get better idea of what is being tested!
Separating every compareScreenshot to its own test ends up with a lot of duplicated tests and increased time for the test because you have to redefine the page each time for each test so if you have a test that clicks multiple things on the same page and takes a few screenshots in between, you would have to repeat the previous test and incrementally add to it to get back to the same spot where the screenshot needs to be taken.
When the expect fails on the screenshot, it stops taking the remaining screenshots - so if you have a mismatch on the first screenshot, take the alert for example, you won't get the remaining 7 screenshots in the test.
Here's a commit that attempts to address the problem of the expects failing on screenshots to at the very least avoid the screenshots being the source of a failure: 5511edb
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Activity
brandyscarney commentedon Dec 12, 2018
cc @manucorporat @camwiegert
manucorporat commentedon Dec 13, 2018
100% agree, i don't like how the action-sheet tests are spread across many fails, it makes it hard to add new tests! I like your format of using a loop, i would modify it to actually move the
test()inside the loop itself, so we get better idea of what is being tested!brandyscarney commentedon Jan 10, 2019
In looking to fix this I found a few problems:
^ The last one is actually a much bigger problem for the tests because even when it fails on expects like the following it won't continue: https://github.com/ionic-team/ionic/blob/master/core/src/components/input/test/basic/e2e.ts#L15. This would mean that that screenshot won't ever be taken. So we need to somehow catch all of the errors from expects but continue and then throw them all at the end.
Here's a commit that attempts to address the problem of the expects failing on screenshots to at the very least avoid the screenshots being the source of a failure: 5511edb
cc @manucorporat @adamdbradley
fix(action-sheet): remove the height shift on press and update iOS de…
fix(select): pass click event to popover interface
fix(select): pass click event to popover interface (#17146)
liamdebeasi commentedon Mar 1, 2019
Resolved by #17534
ionitron-bot commentedon Mar 31, 2019
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.