Skip to content

Commit

Permalink
PortableUTM WebApp v0.3.1
Browse files Browse the repository at this point in the history
Fixes a small error that ocurred when selecting a drone in the simulator, causing a test suite to fail.
  • Loading branch information
mbetancurt authored Jul 21, 2020
2 parents a8c562c + 29a807e commit d4c8cec
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cypress/integration/sp_simulator.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe('SP: Simulator', function() {

it('Try out the drones', function() {
cy.visit('http://localhost:2000/simulator');
cy.contains('0').click();
cy.contains('DRONE 0').click();
cy.get('[data-test-id="rightAreaCloser"]').click();
cy.get('[data-test-id="map"]').click(150,150);
cy.get('[data-test-id="map"]').click('topLeft');
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ades",
"version": "0.3.0",
"version": "0.3.1",
"private": true,
"dependencies": {
"@blueprintjs/core": "^3.22.3",
Expand Down
2 changes: 1 addition & 1 deletion src/consts.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
let API;
let DEBUG = false;
const adesVersion = '0.3.0';
const adesVersion = '0.3.1';
const USERS_DATA_TOO_OLD = 2 * 60000; // Only fetch user list if saved user list is older than 2 minutes

//const hostname = window && window.location && window.location.hostname;
Expand Down
8 changes: 5 additions & 3 deletions src/map/actions/SimulatorPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ const SimulatorPanel = ({paths, onClick, selected, newDrone, startFlying, stopFl
if (selected === index) {
return {
name: 'SELECTED ' + index,
index: index,
path: path
};
} else {
return {
name: index,
name: 'DRONE ' + index,
index: index,
path: path
};
}
Expand All @@ -28,7 +30,7 @@ const SimulatorPanel = ({paths, onClick, selected, newDrone, startFlying, stopFl
label='SIM-Drones'
simpleChildren={true}
forceOpen={true}
onClick={(elem) => onClick(elem.name)}
onClick={(elem) => onClick(elem.index)}
>
{drones}
</SidebarButton>
Expand All @@ -38,7 +40,7 @@ const SimulatorPanel = ({paths, onClick, selected, newDrone, startFlying, stopFl
label='SIM-Func'
simpleChildren={false}
forceOpen={true}
onClick={(elem) => onClick(elem.name)}
onClick={(elem) => onClick(elem.index)}
>
<div
className={styles.sidebarButtonText}
Expand Down

0 comments on commit d4c8cec

Please sign in to comment.