dark-mode
dark-mode copied to clipboard
Fix tests
Tests are failing locally on and on Travis.
There is a $40.00 open bounty on this issue. Add more on Issuehunt.
- Checkout the Issuehunt explorer to discover more funded issues.
- Need some help from other developers? Add your repositories on Issuehunt to raise funds.
@issuehunt has funded $40.00 to this issue.
- Submit pull request via IssueHunt to receive this reward.
- Want to contribute? Chip in to this issue via IssueHunt.
- Checkout the IssueHunt Issue Explorer to see more funded issues.
- Need help from developers? Add your repository on IssueHunt to raise funds.
@sindresorhus I found this issue in issueHunt and I tried to solve it. Through logging the test, I found the AppleScript fail to run:
{
NSAppleScriptErrorAppName = "System Events";
NSAppleScriptErrorBriefMessage = "Not authorized to send Apple events to System Events.";
NSAppleScriptErrorMessage = "Not authorized to send Apple events to System Events.";
NSAppleScriptErrorNumber = "-1743";
NSAppleScriptErrorRange = "NSRange: {71, 9}";
}
After trying many ways, I found some info in macOS Mojave 10.14 Release, it says:

Seems that now in macOS 10.14 and Xcode 10.2, the Xcode unit test has no permissions to execute AppleScript.
And I also view the travis CI Documantation, the xcode10.2 of osx_image was bundled with macOS 10.14.

So I think that's the reason why the locally and the CI tests are all fails.
Hi @sindresorhus , is this issue still in need of help?