The todaypane's shown/hidden state should be separate for mail, event, and task tabs
Categories
(Calendar :: Dialogs, enhancement, P5)
Tracking
(Not tracked)
People
(Reporter: pmorris, Assigned: pmorris)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 2 obsolete files)
24.86 KB,
patch
|
pmorris
:
review+
|
Details | Diff | Splinter Review |
Assignee | ||
Updated•9 years ago
|
Assignee | ||
Comment 2•9 years ago
|
||
Updated•8 years ago
|
Assignee | ||
Comment 3•5 years ago
|
||
This does the job, with tests. I wrote a "waitUntil" utility function that should live in some more generally accessible place, but I wasn't able to see where that would be for this kind of mochitest utility.
Comment 4•5 years ago
|
||
Assignee | ||
Comment 5•5 years ago
|
||
Thanks for the review. This addresses the things you raised.
Did the test runner complain about this?
Yep, fixed in the real code now.
Assignee | ||
Comment 6•5 years ago
•
|
||
The failures on the try run are due to the event and task tabs not closing at the end of the test. When running this single test locally they close just fine. When running more than just the single test locally a dialog appears asking if you want to save the event (and task) before closing it. So that must be what's happening on the try run.
It's strange because usually if you don't modify the event or task (and we don't in the test) then the tab just closes and you don't get that save dialog. (I even tried using the same tabmail.closeTab() method that we use in the test in the console, and the tab closed with no dialog.)
Probably related to the mysterious save prompt appearances mentioned in bug 1590682. I tried adding the savePromptObserver code from that bug to comm/calendar/test/browser/head.js so it would work for this test. Then when I ran the whole set of calendar tests, things froze just before the task and event tabs were closed, but no save prompt appeared. Then when I killed the test in the terminal the log showed:
FAIL Unexpected save prompt appeared - JS frame :: chrome://mochitests/content/browser/comm/calendar/test/browser/head.js
So looks like this test won't pass reliably until we figure out these mysterious save prompt appearances.
Comment 7•5 years ago
|
||
Fortunately, I have figured out the save prompt. I'll make a bug and post a patch now.
Comment 8•5 years ago
|
||
Okay, I haven't figured out the save prompt in this test, it's not for the same reason as the other ones. I'll have look into this one.
Comment 9•5 years ago
|
||
Assignee | ||
Comment 10•5 years ago
|
||
I think I'm going to change the linter config so that we do not require these comments in head.js files. M-C doesn't require them. Do you agree?
Sounds fine to me. Thanks for the review. I've addressed your comments, and with the patch from bug 1593879 applied, when I ran all the calendar mochitests locally they all passed. \o/
Here's a try run:
https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=00a8acbe86fcc8b537e6d63334d94d0d53aa4a24
If that goes well, this is ready to land after bug 1593879 does.
Comment 12•5 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/715b0e356aa0
Separate today pane state for calendar event and task tabs. r=darktrojan
Updated•5 years ago
|
Description
•