Browse Source

[FIX] Fixed Phantom JS tests

[FIX] Updated travis postgresql version

[FIX] Updated phantom_js version in travis

[FIX] Configured travis to run tests for this module in isolation mode

[FIX] Configured travis to run tests for this module in isolation mode

[FIX] Added group to demo_user for test purposes

[FIX] Changed waiting condition on Phantom JS test

[FIX] Removed Travis configuration for isolated test environment

[FIX] Changed waiting condition in phantom_js test

[FIX] Changed target action in phantom_js test

[FIX] Changed target action in phantom_js test
pull/694/head
antonio 8 years ago
parent
commit
357cc31555
  1. 10
      .travis.yml
  2. 4
      base_import_security_group/tests/test_base_import_security_group.py

10
.travis.yml

@ -6,7 +6,8 @@ python:
- "2.7" - "2.7"
addons: addons:
postgresql: "9.2" # minimal postgresql version for the daterange method
postgresql: "9.3" # minimal postgresql version for the base_import_security_group module
# more info: https://github.com/OCA/maintainer-quality-tools/issues/432
apt: apt:
packages: packages:
- expect-dev # provides unbuffer utility - expect-dev # provides unbuffer utility
@ -29,6 +30,13 @@ env:
virtualenv: virtualenv:
system_site_packages: true system_site_packages: true
before_install:
- "export PATH=$PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH"
- "if [ $(phantomjs --version) != '2.1.1' ]; then rm -rf $PWD/travis_phantomjs; mkdir -p $PWD/travis_phantomjs; fi"
- "if [ $(phantomjs --version) != '2.1.1' ]; then wget https://assets.membergetmember.co/software/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O $PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2; fi"
- "if [ $(phantomjs --version) != '2.1.1' ]; then tar -xvf $PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $PWD/travis_phantomjs; fi"
- "phantomjs --version"
install: install:
- git clone https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools - git clone https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools
- export PATH=${HOME}/maintainer-quality-tools/travis:${PATH} - export PATH=${HOME}/maintainer-quality-tools/travis:${PATH}

4
base_import_security_group/tests/test_base_import_security_group.py

@ -26,8 +26,8 @@ class TestImportSecurityGroup(common.HttpCase):
}; };
}, 1000); }, 1000);
""" % ('!' if falsify else '') """ % ('!' if falsify else '')
action = self.env.ref('base.action_partner_category_form')
link = '/web#action=%s' % action.id
action = self.env.ref('base.action_partner_category_form').id
link = '/web#action=%s' % action
self.phantom_js( self.phantom_js(
link, code, "$('button.o_list_button_add').length", link, code, "$('button.o_list_button_add').length",
login=user.login) login=user.login)

Loading…
Cancel
Save