Closed Bug 1528440 Opened 7 years ago Closed 7 years ago

Fix test-about-support.js::test_display_about_support

Categories

(Thunderbird :: Testing Infrastructure, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 67.0

People

(Reporter: aceman, Assigned: aceman)

Details

Attachments

(1 file)

Seen on Linux at https://treeherder.mozilla.org/#/jobs?repo=comm-central&selectedJob=228461620&revision=e81d47616fa74c9207925f6d6072efb6eff9125d

test-about-support.js::test_display_about_support
EXCEPTION: Found string "null" on the content tab's page
at: test-folder-display-helpers.js line 109
do_throw test-folder-display-helpers.js:109 13
mark_failure logHelper.js:650 3
assert_content_tab_text_absent test-content-tab-helpers.js:407 5
test_display_about_support test-about-support.js:130 5

Attached patch 1528440.patch — — Splinter Review

Even when our account able is populated, the other m-c info fields are populated async after that. Until that is done, we can still hit 'null' in some of them.
So wait until the last info element on the page is not empty.

Try run: https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=0a5efc7e6daadb0256ecb73c6c272a0e22d64fc8

Attachment #9044381 - Flags: review?(jorgk)

I can't see it in the link you gave. Can you post the full link including selectedJob=.

Is this related to the current bustage situation?

Flags: needinfo?(acelists)

Seen in https://treeherder.mozilla.org/#/jobs?repo=comm-central&selectedJob=228747161 and I also saw it locally. It is timing sensitive and just adding some dump()s made it go away. We assumed gAccountDetails variable is set last and accounts-tbody populated last (as that is how the JS in aboutSupport.js looks like) but it is not true. The other m-c fields are set only after our accounts table, it can also be seen visually. So I wait for the intl-osprefs-regionalprefs element too, that is the last one in the xhtml code.
So this change should make it more robust.

Flags: needinfo?(acelists)
Comment on attachment 9044381 [details] [diff] [review] 1528440.patch OK, you're the expert on this. This is fairly intermittent, seen on some Z4, but not all.
Attachment #9044381 - Flags: review?(jorgk) → review+

https://hg.mozilla.org/comm-central/rev/07e28a0420ceb6226f7dc937df841347a2a7a4f0
make waiting for page load in test-about-support.js more robust. r=jorgk CLOSED TREE

Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 67.0

Sadly even with this patch the failure is still seen at https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&selectedJob=228904815 :(

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: