-
-
Notifications
You must be signed in to change notification settings - Fork 282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
include sauce:options by default and give job a name #285
Conversation
dpgraham
commented
Jan 30, 2022
- If "sauce:options" is not set, set it so that it defaults to W3C
- Give the Appium Desktop job a name so that it's easier for Sauce Labs users to know which job came from Appium Desktop
app/renderer/actions/Session.js
Outdated
desiredCapabilities['sauce:options'] = {}; | ||
} | ||
if (!desiredCapabilities['sauce:options'].name) { | ||
const dateTime = moment().format('MMM DD -- h:mma'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would it be possible to format the string according to active user datetime format settings?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mykola-mokhnach could you be specific, I'm not familiar with what that is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check Multiple Locale Support
at https://momentjs.com/
app/renderer/actions/Session.js
Outdated
@@ -250,6 +251,13 @@ export function newSession (caps, attachSessId = null) { | |||
return; | |||
} | |||
https = false; | |||
if (!desiredCapabilities['sauce:options']) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (!_.isPlainObject(...))
?
app/renderer/actions/Session.js
Outdated
if (!desiredCapabilities['sauce:options']) { | ||
desiredCapabilities['sauce:options'] = {}; | ||
} | ||
if (!desiredCapabilities['sauce:options'].name) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does it make sense to make 'sauce:options'
to a constant?