Bug 1375660 - Fix test_l10n.py for title text.
The title is not a visible element and as such getElementText
will return an empty string. Instead use the h1 tag which has
the same content to get this test passing.
MozReview-Commit-ID: FntduPdn1P9
--- a/testing/firefox-ui/tests/puppeteer/test_l10n.py
+++ b/testing/firefox-ui/tests/puppeteer/test_l10n.py
@@ -31,17 +31,17 @@ class TestL10n(PuppeteerMixin, Marionett
dtds = ['chrome://global/locale/about.dtd',
'chrome://global/locale/aboutSupport.dtd']
value = self.l10n.localize_entity(dtds, 'aboutSupport.pageTitle')
self.marionette.set_context(self.marionette.CONTEXT_CONTENT)
self.marionette.navigate('about:support')
- elm = self.marionette.find_element(By.TAG_NAME, 'title')
+ elm = self.marionette.find_element(By.TAG_NAME, 'h1')
self.assertEqual(value, elm.text)
def test_properties(self):
properties = ['chrome://global/locale/filepicker.properties',
'chrome://global/locale/findbar.properties']
# TODO: Find a way to verify the retrieved translated string
value = self.l10n.localize_property(properties, 'NotFound')