You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
The configuration file is the same as the one which was generated by the CLI. Only the browserName was changed and the directConnect property was removed.
// ... as provided by @angular/clicapabilities: {'browserName': 'safari'},// remove the directConnect property// ...
A relevant example test
It's enough to just run the default tests.
ng e2e
Output from running the test
should display welcome message
- Failed: Could not parse requested URL 'data:text/html,<html></html>'
Steps to reproduce the bug
npx --package @angular/cli ng new safari-test
cd safari-test
# Change the browserName in the config to 'safari' and remove the directConnect property.
ng e2e
A workaround is to add browser.resetUrl = 'about:blank'; to the onPrepare function. But I think it would be nice if Protractor works with Safari out of the box. A fix for Safari which does at least not break tests with Chrome would be to change the DEFAULT_RESET_URL to 'about:blank'. But I don't know if that has implications which affect other browsers.