Skip to content
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

Merged
merged 5 commits into from
Jan 31, 2022

Conversation

dpgraham
Copy link
Contributor

  • 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

desiredCapabilities['sauce:options'] = {};
}
if (!desiredCapabilities['sauce:options'].name) {
const dateTime = moment().format('MMM DD -- h:mma');
Copy link
Contributor

@mykola-mokhnach mykola-mokhnach Jan 30, 2022

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?

Copy link
Contributor Author

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.

Copy link
Contributor

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/

@@ -250,6 +251,13 @@ export function newSession (caps, attachSessId = null) {
return;
}
https = false;
if (!desiredCapabilities['sauce:options']) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (!_.isPlainObject(...)) ?

if (!desiredCapabilities['sauce:options']) {
desiredCapabilities['sauce:options'] = {};
}
if (!desiredCapabilities['sauce:options'].name) {
Copy link
Contributor

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?

@dpgraham dpgraham merged commit a034aab into main Jan 31, 2022
@dpgraham dpgraham deleted the dpgraham-sauce-options branch January 31, 2022 19:39
allen-fang pushed a commit to projectxyzio/appium-inspector that referenced this pull request Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants