Today/Notification and Control Panel tests#1173
Open
JoeSSS wants to merge 5 commits intocalabash:developfrom
Open
Today/Notification and Control Panel tests#1173JoeSSS wants to merge 5 commits intocalabash:developfrom
JoeSSS wants to merge 5 commits intocalabash:developfrom
Conversation
jmoody
suggested changes
Sep 22, 2016
| Then(/^I can see Control Panel page elements$/) do | ||
| if ipad? | ||
| puts "Test is not stable on iPad; skipping" | ||
| end |
Contributor
There was a problem hiding this comment.
This will not skip the iPad; it will continue the test.
You cannot return from the do block, so you will have to wrap the whole step in if !ipad?.
Did I make that mistake too in my step?
Contributor
Author
There was a problem hiding this comment.
Yep, I just copy/pasted it..
Contributor
Author
There was a problem hiding this comment.
Should I look at it on other tests also and fix?
| device.agent.touch({marked: 'Continue'}) | ||
| wait_for_external_animations | ||
| end | ||
| wait_for(options_or_timeout=3) do |
Contributor
There was a problem hiding this comment.
Can you replace these with wait_for calls with:
// Will probably need to be longer in CI
timeout = 5
message = "Timed out waiting for XXXXX view after #{timeout} seconds"
bridge_wait_for(message, {timeout: timeout}) do
end
If you are waiting for views with Core#query, use:
wait_for_view(< query >)
wait_for_no_views(< query >)
| Then(/^I can open Notifications tab in Today and Notifications page$/) do | ||
| if ipad? | ||
| puts "Test is not stable on iPad; skipping" | ||
| end |
Contributor
There was a problem hiding this comment.
See comment below about branching on !ipad?
| fail("Expected to see 'No Notifications' element") | ||
| end | ||
| else | ||
| wait_for(options_or_timeout=3) do |
Contributor
There was a problem hiding this comment.
The fail with DeviceAgent, correct?
Contributor
…tion_center_tests
Contributor
Author
|
Done |
jmoody
previously approved these changes
Sep 30, 2016
Contributor
|
Sweet! This is going make add the requested feature much easier. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DeviceAgent should see Today/Notification and Control Panel elements. It is possible to run it on iOS9/iOS10 simulators, using DeviceAgent and instruments