Skip to content

Commit

Permalink
Update Firefox version on Travis (#94)
Browse files Browse the repository at this point in the history
* Update Firefox version on Travis

* Removes tests that use WAVE

Older versions of WAVE don't work with new versions of Firefox. See:

datakurre/robotframework-selenium2accessibility#2

New versions of WAVE don't work with
robotframework-selenium2accessibility See:

datakurre/robotframework-selenium2accessibility#1

* Fix Test Tinymce Plugin

The test robot port is now random

* gitignore
  • Loading branch information
idgserpro authored Nov 12, 2020
1 parent 942e634 commit c5d1eef
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 34 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ selenium*
share/
var/
/dist/
/pyvenv.cfg
16 changes: 12 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ language: python
python: 2.7
cache:
directories:
- $HOME/.pylint.d
- eggs
- parts/node
- $HOME/.pylint.d
- eggs
- parts/node
- geckodriver
addons:
firefox: 45.8.0esr
firefox: "81.0"
env:
- PLONE_VERSION=4.3 TEST_EGGS=collective.cover[test]
- PLONE_VERSION=5.1
Expand All @@ -21,6 +22,13 @@ install:
- bin/buildout buildout:test-eggs=$TEST_EGGS annotate
- bin/buildout buildout:test-eggs=$TEST_EGGS
before_script:
- >
if [ ! -f geckodriver/geckodriver ]; then
GECKODRIVER_VERSION=0.27.0
wget https://github.com/mozilla/geckodriver/releases/download/v$GECKODRIVER_VERSION/geckodriver-v$GECKODRIVER_VERSION-linux64.tar.gz
tar -xzf geckodriver-v$GECKODRIVER_VERSION-linux64.tar.gz -C geckodriver
fi;
- export PATH=$PATH:$PWD/geckodriver
- firefox -v
script:
- bin/code-analysis
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@
'plone.browserlayer',
'plone.testing',
'Products.statusmessages',
'robotframework-selenium2accessibility',
'robotsuite',
],
},
Expand Down
24 changes: 0 additions & 24 deletions src/sc/embedder/tests/test_a11y.robot

This file was deleted.

2 changes: 1 addition & 1 deletion src/sc/embedder/tests/test_robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def test_suite():
suite = unittest.TestSuite()
suite.addTests([
layered(
robotsuite.RobotTestSuite(t, noncritical=['Expected Failure']),
robotsuite.RobotTestSuite(t),
layer=ROBOT_TESTING)
for t in tests
])
Expand Down
5 changes: 1 addition & 4 deletions src/sc/embedder/tests/test_tinymce_plugin.robot
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ Test Teardown Close all browsers
*** Test cases ***

Test Tinymce Plugin
# XXX: this test fails in Plone 4.2
[Tags] Expected Failure

Enable Autologin as Site Administrator
Go to Homepage
Expand All @@ -18,9 +16,8 @@ Test Tinymce Plugin
Click Add Page
Input Text title Page Title
Click Link css=span .mce_scembedder
# XXX: in Plone 4.2 this <iframe> has another id
Select Frame id=mce_inlinepopups_16_ifr
Select Radio Button internallink http://localhost:55001/plone/nulla-in-mundo-pax-sincera
Select Radio Button internallink http://localhost:${ZOPE_PORT}/plone/nulla-in-mundo-pax-sincera
Element Should Contain css=#previewimagecontainer ${html_text}
Click Button Insert
Page Should Contain ${html_text}
Expand Down
3 changes: 3 additions & 0 deletions versions-4.3.x.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ plone.tiles = 2.2.2
# Keep the same as in requirements.txt:
setuptools = 42.0.2
zc.buildout = 2.13.3

# Required to use new versions of Firefox
selenium = 3.14.1

0 comments on commit c5d1eef

Please sign in to comment.