Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Bug 1196717 - Dogfood test - Delete thread in SMS #31611

Merged
merged 1 commit into from
Sep 9, 2015
Merged

Bug 1196717 - Dogfood test - Delete thread in SMS #31611

merged 1 commit into from
Sep 9, 2015

Conversation

JohanLorenzo
Copy link
Contributor

No description provided.

@mozilla-autolander-deprecated
Copy link
Contributor

@mozilla-autolander-deprecated
Copy link
Contributor

Wait(self.marionette).until(expected.element_not_displayed(el))
back_button = self.marionette.find_element(*self._details_header_locator)
self.tap_element_from_system_app(element=back_button)
Wait(self.marionette).until(expected.element_not_displayed(back_button))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tap_element_from_system_app is switching to the system app, so I'm not sure how this works.
In general, I would prefer it we're going away from negative checks like these.
But I guess it works, because otherwise you haven't written it like this.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait a minute, is this tap_element_from_system_app method really necessary here?
I mean, we're not closing an app here, do we? We just stay in the contacts app, or not?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to tap the close button, which is in an HTML custom element. So Marionette doesn't see the button

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but I mean the tap_element_from_system_app call you're making here. Is that really necessary? Because this should only be used when it is really necessary.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't that the way we tap on Shadow DOM elements?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it's used when the button that's being tapped upon closes the app. When that happens, Marionette is out of whack, because it still thinks the active frame that is being worked on is that app. See https://bugzilla.mozilla.org/show_bug.cgi?id=1164078 for more explanation.
For shadow DOM elements, you just have to use coordinates.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay. I'll change it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I rolled back these changes.

@mozilla-autolander-deprecated
Copy link
Contributor


[test_delete_thread.py]
skip-if = device == "desktop"
dogfood = true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you keep on using Plivo, then I guess you need to add external = true here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right. I added it.

@mozilla-autolander-deprecated
Copy link
Contributor

@mozilla-autolander-deprecated
Copy link
Contributor

JohanLorenzo added a commit that referenced this pull request Sep 9, 2015
Bug 1196717 - Dogfood test - Delete thread in SMS
@JohanLorenzo JohanLorenzo merged commit b6ed22f into mozilla-b2g:master Sep 9, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants