Skip to content

Instantly share code, notes, and snippets.

@physikerwelt
Created January 24, 2015 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save physikerwelt/5761056c077c02a8c636 to your computer and use it in GitHub Desktop.
Save physikerwelt/5761056c077c02a8c636 to your computer and use it in GitHub Desktop.
Your branch is up-to-date with 'origin/master'.
physikerwelt@math-min:/vagrant/mediawiki/extensions/Math/tests/browser$ HEADLESS=true bundle exec cucumber features/*.feature
#
# This file is subject to the license terms in the LICENSE file found in the
# qa-browsertests top-level directory and at
# https://git.wikimedia.org/blob/qa%2Fbrowsertests/HEAD/LICENSE. No part of
# qa-browsertests, including this file, may be copied, modified, propagated, or
# distributed except according to the terms contained in the LICENSE file.
#
# Copyright 2012-2014 by the Mediawiki developers. See the CREDITS file in the
# qa-browsertests top-level directory and at
# https://git.wikimedia.org/blob/qa%2Fbrowsertests/HEAD/CREDITS
#
@chrome @en.wikipedia.beta.wmflabs.org @firefox @internet_explorer_6 @internet_explorer_7 @internet_explorer_8 @internet_explorer_9 @internet_explorer_10 @login @phantomjs @test2.wikipedia.org
Feature: Math
Scenario: Display simple math # features/math.feature:15
Given I am logged in # mediawiki_selenium-0.4.0/lib/mediawiki_selenium/step_definitions/login_steps.rb:12
a is undefined (Selenium::WebDriver::Error::JavascriptError)
[remote server] http://127.0.0.1/wiki/Special:UserLogin line 68 > Function:20:in `P'
[remote server] http://127.0.0.1/wiki/Special:UserLogin line 68 > Function:29:in `ma'
[remote server] http://127.0.0.1/wiki/Special:UserLogin line 68 > Function:29:in `na'
[remote server] http://127.0.0.1/wiki/Special:UserLogin line 68 > Function:29:in `anonymous/</<'
[remote server] http://127.0.0.1/wiki/Special:UserLogin line 68 > Function:15:in `anonymous/<'
[remote server] http://127.0.0.1/wiki/Special:UserLogin line 68 > Function:15:in `anonymous'
[remote server] http://127.0.0.1/wiki/Special:UserLogin:68:in `handleEvaluateEvent'
features/math.feature:16:in `Given I am logged in'
And I am at page that does not exist # features/step_definitions/math_steps.rb:13
And I click link Create source # features/step_definitions/math_steps.rb:17
When I type <math>3 + 2</math> # features/step_definitions/math_steps.rb:25
And I click Preview # features/step_definitions/math_steps.rb:21
Then the page should contain an img tag # features/step_definitions/math_steps.rb:38
And alt for that img should be 3 + 2 # features/step_definitions/math_steps.rb:29
And src for that img should come from //upload # features/step_definitions/math_steps.rb:33
Failing Scenarios:
cucumber features/math.feature:15 # Scenario: Display simple math
1 scenario (1 failed)
8 steps (1 failed, 7 skipped)
0m8.834s
physikerwelt@math-min:/vagrant/mediawiki/extensions/Math/tests/browser$ export
declare -x BROWSER="firefox"
declare -x COMPOSER_CACHE_DIR="/vagrant/cache/composer"
declare -x HOME="/home/physikerwelt"
declare -x INSTANCENAME="math-min"
declare -x INSTANCEPROJECT="math"
declare -x LANG="en_US.UTF-8"
declare -x LANGUAGE="en_US.UTF-8"
declare -x LC_ALL="en_US.UTF-8"
declare -x LESSCLOSE="/usr/bin/lesspipe %s %s"
declare -x LESSOPEN="| /usr/bin/lesspipe %s"
declare -x LOGNAME="physikerwelt"
declare -x LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:"
declare -x MAIL="/var/mail/physikerwelt"
declare -x MEDIAWIKI_API_URL="http://127.0.0.1/w/api.php"
declare -x MEDIAWIKI_PASSWORD="******"
declare -x MEDIAWIKI_URL="http://127.0.0.1/wiki/"
declare -x MEDIAWIKI_USER="Selenium_user"
declare -x MW_INSTALL_PATH="/vagrant/mediawiki"
declare -x OLDPWD="/home/physikerwelt/m/tests/browser/features"
declare -x PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/vagrant/phab/arcanist/bin:/vagrant/mediawiki/vendor/bin"
declare -x PWD="/vagrant/mediawiki/extensions/Math/tests/browser"
declare -x SHELL="/bin/bash"
declare -x SHLVL="1"
declare -x SSH_CLIENT="10.68.16.5 33664 22"
declare -x SSH_CONNECTION="10.68.16.5 33664 10.68.16.76 22"
declare -x SSH_TTY="/dev/pts/3"
declare -x TERM="xterm"
declare -x USER="physikerwelt"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment