Closed
Bug 1419506
Opened 8 years ago
Closed 5 years ago
Clear and suppress all OS notifications before running a test
Categories
(Infrastructure & Operations :: RelOps: General, task)
Infrastructure & Operations
RelOps: General
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: mconley, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
|
80.36 KB,
image/png
|
Details |
We're using the mochitest framework for the screenshots tool that the Firefox team uses to catch unwanted changes in the UI.
See the attached for one of the screenshots we captured recently. There are some OS upgrade notices and a nag for trying out Safari that are adding noise to the screenshot. This will likely result in false positives when we're doing automated comparisons.
Is there any way to clear and suppress notifications like these when running our tests?
I'm not putting this under the MacOS platform specifically because I suspect we can get burned like this from Windows and Linux too.
Updated•8 years ago
|
Blocks: mozscreenshots-inconsistencies
Comment 1•8 years ago
|
||
To disable the "Try the new Safari" notification we can follow: https://apple.stackexchange.com/a/160074. It seems like this needs to be done before login.
To disable the "What's new in OS X …" notification, there are two solutions at https://www.jamf.com/jamf-nation/discussions/24198/can-the-what-s-new-in-mac-os-sierra-notification-be-suppressed-for-new-users
Rob, is this something you would be able to help with?
Assignee: nobody → relops
Component: Mochitest Chrome → RelOps
Flags: needinfo?(rthijssen)
Product: Testing → Infrastructure & Operations
QA Contact: klibby
Version: Version 3 → unspecified
Comment 2•8 years ago
|
||
apologies, i don't know my way around the osx test systems
Flags: needinfo?(rthijssen)
Comment 3•8 years ago
|
||
You're looking for kmoir, but you'll need to somehow make her forget that at least twice she's tried every googleable solution without success.
Comment 4•8 years ago
|
||
(In reply to Phil Ringnalda (:philor) from comment #3)
> You're looking for kmoir, but you'll need to somehow make her forget that at
> least twice she's tried every googleable solution without success.
OK, thanks! My solution in bug 1425502 seems to work for the current session if System Integrity Protection isn't enabled on the OS. Kim, did you try that approach?
Flags: needinfo?(kmoir)
Comment 5•8 years ago
|
||
(One detail I forgot about is that tests of our notification center integration may need the notification center UI service running so would need a way to restart it)
Comment 6•8 years ago
|
||
I don't recall all the scenarios I tried, it was over a year ago. If disabling the notification centre works in the test that's fine. If it needs to be disabled all the time this is something we should setup in the config of the machines, not the test harness.
Flags: needinfo?(kmoir)
Comment 7•5 years ago
|
||
I suspect the specific case of this is no longer an issue, but I also suspect that we'll be forever chasing new iterations of this. Closing.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•