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

Begin fixing functional tests for Deform 2.0-branch #438

Merged
merged 3 commits into from
Aug 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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:
- pyramid-checkins@lists.repoze.org
# email:
# - pyramid-checkins@lists.repoze.org
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