Skip to content

Commit

Permalink
Merge pull request #438 from stevepiercy/2.0-branch
Browse files Browse the repository at this point in the history
Begin fixing functional tests for Deform 2.0-branch
  • Loading branch information
stevepiercy authored Aug 19, 2020
2 parents 79d8068 + a8c07b9 commit 3096349
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 17 deletions.
23 changes: 8 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# Wire up travis
language: python
sudo: false

addons:
firefox: "43.0"
firefox: latest

services:
- xvfb
Expand Down Expand Up @@ -45,24 +44,18 @@ matrix:

install:
- travis_retry pip install tox

# For Selenium
# https://docs.travis-ci.com/user/gui-and-headless-browsers/
# http://stackoverflow.com/a/34703838/315168
# https://benlimmer.com/2019/01/14/travis-ci-xvfb/
before_script:
- "export DISPLAY=:99.0"
- echo "Extracting firefox and setting PATH variable..."
- tar -xjf /tmp/firefox-43.0.tar.bz2 --directory /tmp
- export PATH="/tmp/firefox:$PATH"
- echo "Using firefox version `firefox --version`"
# https://dev.to/erikwhiting88/install-browsers-and-webdrivers-in-travisci-n76
- wget -N https://github.com/mozilla/geckodriver/releases/download/v0.26.0/geckodriver-v0.26.0-linux64.tar.gz -P /tmp/
- tar -xzf /tmp/geckodriver-v0.26.0-linux64.tar.gz -C /tmp/
- rm /tmp/geckodriver-v0.26.0-linux64.tar.gz
- sudo mv /tmp/geckodriver /usr/local/bin

script:
- travis_retry tox

notifications:
email:
- [email protected]
# email:
# - [email protected]
irc:
channels:
- "chat.freenode.net#pyramid"
2 changes: 1 addition & 1 deletion deform/templates/autocomplete_input.pt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
deform.addCallback(
'${field.oid}',
function (oid) {
$('#' + oid).typeahead(${options});
$('#' + oid).typeahead(${structure:options});
}
);
</script>
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

# Needed to run deformdemo tests
functional_testing_extra = [
"selenium<3",
"selenium>=3",
"pyramid",
"pygments",
"waitress",
Expand Down

0 comments on commit 3096349

Please sign in to comment.