Fix failing tests (#166)

* Fix failing tests due to unsupported chrome

* Fix multiline tweet test
This commit is contained in:
Kadin Buckton 2020-05-25 14:29:25 -04:00 committed by GitHub
parent 52983e5813
commit 00dfb2fee4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 17 deletions

View file

@ -24,8 +24,6 @@ jobs:
sudo: required sudo: required
dist: bionic dist: bionic
language: python language: python
addons:
chrome: stable
python: python:
- 3.6 - 3.6
services: services:
@ -33,7 +31,13 @@ jobs:
- xvfb - xvfb
script: script:
- sudo apt update - sudo apt update
- sudo apt install --force-yes chromium-browser chromium-chromedriver - sudo apt install --force-yes chromium-chromedriver
- wget https://www.dropbox.com/s/ckuoaubd1crrj2k/Linux_x64_737173_chrome-linux.zip -O chrome.zip
- unzip chrome.zip
- cd chrome-linux
- sudo rm /usr/bin/google-chrome
- sudo ln -s chrome /usr/bin/google-chrome
- cd ..
- pip3 install --upgrade pip - pip3 install --upgrade pip
- pip3 install -U seleniumbase pytest - pip3 install -U seleniumbase pytest
- docker run -d -p 127.0.0.1:8080:8080/tcp $IMAGE_NAME:$TRAVIS_COMMIT - docker run -d -p 127.0.0.1:8080:8080/tcp $IMAGE_NAME:$TRAVIS_COMMIT
@ -45,8 +49,6 @@ jobs:
sudo: required sudo: required
dist: bionic dist: bionic
language: python language: python
addons:
chrome: stable
python: python:
- 3.6 - 3.6
services: services:
@ -54,7 +56,13 @@ jobs:
- xvfb - xvfb
script: script:
- sudo apt update - sudo apt update
- sudo apt install --force-yes chromium-browser chromium-chromedriver - sudo apt install --force-yes chromium-chromedriver
- wget https://www.dropbox.com/s/ckuoaubd1crrj2k/Linux_x64_737173_chrome-linux.zip -O chrome.zip
- unzip chrome.zip
- cd chrome-linux
- sudo rm /usr/bin/google-chrome
- sudo ln -s chrome /usr/bin/google-chrome
- cd ..
- pip3 install --upgrade pip - pip3 install --upgrade pip
- pip3 install -U seleniumbase pytest - pip3 install -U seleniumbase pytest
- docker build -t $IMAGE_NAME:$TRAVIS_COMMIT . - docker build -t $IMAGE_NAME:$TRAVIS_COMMIT .

View file

@ -28,19 +28,17 @@ invalid = [
] ]
multiline = [ multiline = [
[1102965189392113665, 'piIIowhugs', [1262214452826562567, 'laurenbringe_',
""" """
summoning circle, hope this works Summoning circle
🕯 🕯 🕯
🕯 🕯 🕯 🕯
🕯 🕯
🕯 Serotonin 🕯
🕯 serotonin 🕯
🕯 🕯
🕯 🕯 🕯 🕯"""],
🕯 🕯
🕯"""],
[400897186990284800, 'mobile_test_3', [400897186990284800, 'mobile_test_3',
""" """