Skip to content

Commit

Permalink
Merge pull request #225 from SEL-Columbia/staging
Browse files Browse the repository at this point in the history
0.2.6 Release
  • Loading branch information
vr2262 committed Dec 23, 2015
2 parents f03313f + 845eaa0 commit 5d5dbd3
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
nginx:
image: "nginx:1.9.8"
image: "nginx:1.9.9"
links:
- "webapp:webapp"
ports:
Expand All @@ -10,7 +10,7 @@ nginx:
- /etc/letsencrypt:/etc/letsencrypt
- /tmp:/tmp
webapp:
image: "selcolumbia/dokomoforms:0.2.5"
image: "selcolumbia/dokomoforms:0.2.6"
command: bash -c "./docker-wait-for-postgres.sh db && head -c 24 /dev/urandom > cookie_secret && python webapp.py"
links:
- "db:db"
Expand Down
6 changes: 4 additions & 2 deletions dokomoforms/static/src/survey/js/components/Photo.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ module.exports = React.createClass({

componentWillUnmount: function() {
if (this.stream) {
this.stream.stop();
// https://github.com/andyet/SimpleWebRTC/issues/363#issuecomment-163178700
this.stream.getTracks().forEach(function (track) { track.stop(); });
}
},

Expand All @@ -60,7 +61,8 @@ module.exports = React.createClass({
startStream: function() {
var self = this;
if (self.stream) {
self.stream.stop();
// https://github.com/andyet/SimpleWebRTC/issues/363#issuecomment-163178700
self.stream.getTracks().forEach(function (track) { track.stop(); });
}
// Browser implementations
navigator.getUserMedia = navigator.getUserMedia ||
Expand Down
6 changes: 3 additions & 3 deletions installer.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env sh
# Dokomo Forms installer for version 0.2.5
# Dokomo Forms installer for version 0.2.6
set -e

# Do you have docker installed?
Expand Down Expand Up @@ -105,8 +105,8 @@ $SUDO openssl dhparam -out /etc/letsencrypt/live/$LETSENCRYPT_DIR/dhparam.pem 20
printf "========================================\n"
printf " Downloading configuration files \n"
printf "========================================\n"
$CURL -O https://raw.githubusercontent.com/SEL-Columbia/dokomoforms/v0.2.5/docker-compose.yml
$CURL -O https://raw.githubusercontent.com/SEL-Columbia/dokomoforms/v0.2.5/nginx.conf
$CURL -O https://raw.githubusercontent.com/SEL-Columbia/dokomoforms/v0.2.6/docker-compose.yml
$CURL -O https://raw.githubusercontent.com/SEL-Columbia/dokomoforms/v0.2.6/nginx.conf

# Edit the configuration files
printf "========================================\n"
Expand Down
8 changes: 7 additions & 1 deletion tests/python/test_selenium.py
Original file line number Diff line number Diff line change
Expand Up @@ -852,9 +852,13 @@ def test_edit_user(self):
try:
self.wait_for_element('user-name')
except TimeoutException:
self.click(edit_btn)
self.click(self.drv.find_element_by_css_selector(
'tr.odd:nth-child(3) > td:nth-child(5) > button:nth-child(1)'
))

self.sleep()
self.wait_for_element('user-name')

(
self.drv
.find_element_by_id('user-name')
Expand Down Expand Up @@ -4059,6 +4063,7 @@ def test_add_new_facility(self):
self.wait_for_element('navigate-right', By.CLASS_NAME)
self.click(self.drv.find_element_by_class_name('navigate-right'))
# wait for add button
self.sleep()
self.wait_for_element(
'.btn-add-facility',
by=By.CSS_SELECTOR
Expand All @@ -4085,6 +4090,7 @@ def test_add_new_facility(self):
# navigate to end of survey and save
facility_type = Select(self.drv.find_element_by_tag_name('select'))
self.select_by_index(facility_type, 1)
self.sleep()
self.click(self.drv.find_element_by_class_name('navigate-right'))
self.click(self.drv.find_element_by_class_name('navigate-right'))

Expand Down

0 comments on commit 5d5dbd3

Please sign in to comment.