Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
chore: update to 1.20.2 (#1690)
Browse files Browse the repository at this point in the history
* feat: bump appium to 1.20.2

* feat: add roboticmobi tab to inspector tab #1666

* chore: bump the version

* missing js
  • Loading branch information
KazuCocoa authored Feb 10, 2021
1 parent 7fe9a48 commit ce48856
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 26 deletions.
9 changes: 9 additions & 0 deletions app/renderer/actions/Session.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,15 @@ export function newSession (caps, attachSessId = null) {
port = session.server.experitest.port = experitestUrl.port;
https = session.server.experitest.ssl = experitestUrl.protocol === 'https:';
break;
} case ServerTypes.roboticmobi: {
host = 'api.robotic.mobi';
path = '/wd/hub';
port = 443;
https = 'https:';
if (caps) {
desiredCapabilities.robotic_mobi_token = session.server.roboticmobi.token || process.env.ROBOTIC_MOBI_TOKEN;
}
break;
}
default:
break;
Expand Down
9 changes: 8 additions & 1 deletion app/renderer/components/Session/CloudProviders.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import ServerTabPcloudy from './ServerTabPcloudy';
import ServerTabSauce from './ServerTabSauce';
import ServerTabTestingbot from './ServerTabTestingbot';
import ServerTabExperitest from './ServerTabExperitest';
import ServerTabRoboticMobi from './ServerTabRoboticMobi';

import SessionStyles from './Session.css';

Expand All @@ -23,6 +24,7 @@ import PerfectoLogo from '../../images/perfecto_logo.png';
import PcloudyLogo from '../../images/pcloudy_logo.svg';
import TestingBotLogo from '../../images/testingbot_logo.svg';
import ExperitestLogo from '../../images/experitest_logo.svg';
import RoboticMobiLogo from '../../images/roboticmobi_logo.svg';

const CloudProviders = {
sauce: {
Expand Down Expand Up @@ -75,6 +77,11 @@ const CloudProviders = {
tab: (props) => <ServerTabExperitest {...props} />,
logo: ExperitestLogo,
},
roboticmobi: {
tabhead: () => <span className={SessionStyles.tabText}><img src={RoboticMobiLogo} /></span>,
tab: (props) => <ServerTabRoboticMobi {...props} />,
logo: RoboticMobiLogo,
}
};

export default CloudProviders;
export default CloudProviders;
23 changes: 23 additions & 0 deletions app/renderer/components/Session/ServerTabRoboticMobi.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import React, { Component } from 'react';
import { Form, Input, Row, Col } from 'antd';

const FormItem = Form.Item;
export default class ServerTabRoboticMobi extends Component {
render () {

const { server, setServerParam, t } = this.props;

const placeholder = process.env.ROBOTIC_MOBI_TOKEN ?
t('usingDataFoundIn', { environmentVariable: 'ROBOTIC_MOBI_TOKEN' }) : t('roboticMobiToken');

return <Form>
<Row gutter={8}>
<Col span={24}>
<FormItem>
<Input id='roboticMobiToken' placeholder={placeholder} addonBefore={t('Robotic.Mobi Token')} value={server.roboticmobi.token} onChange={(e) => setServerParam('token', e.target.value)} />
</FormItem>
</Col>
</Row>
</Form>;
}
}
11 changes: 11 additions & 0 deletions app/renderer/images/roboticmobi_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions app/renderer/reducers/Session.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const INITIAL_STATE = {
pcloudy: {},
testingbot: {},
experitest: {},
roboticmobi: {},
},
attachSessId: null,

Expand Down
36 changes: 13 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "appium-desktop",
"version": "1.20.0",
"version": "1.20.2",
"description": "Graphical interface for the Appium server, and an app inspector",
"repository": {
"type": "git",
Expand Down Expand Up @@ -119,7 +119,7 @@
"@babel/polyfill": "^7.4.0",
"ansi-to-html": "~0.6.7",
"antd": "~4.0.4",
"appium": "1.20.0",
"appium": "1.20.2",
"appium-support": "^2.25.0",
"bluebird": "^3.5.5",
"cheerio": "^1.0.0-rc.3",
Expand Down

0 comments on commit ce48856

Please sign in to comment.