Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
vidjil
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1,697
Issues
1,697
List
Boards
Labels
Service Desk
Milestones
Merge Requests
91
Merge Requests
91
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vidjil
vidjil
Commits
6cbb7dd8
Commit
6cbb7dd8
authored
Dec 24, 2020
by
Mathieu Giraud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
browser_test.rb, tutorial: extract and factorize skip_on_browser()
parent
87b6f930
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
11 deletions
+14
-11
browser/test/functional/browser_test.rb
browser/test/functional/browser_test.rb
+11
-0
doc/tutorial/tutorial-clones.tex
doc/tutorial/tutorial-clones.tex
+3
-11
No files found.
browser/test/functional/browser_test.rb
View file @
6cbb7dd8
...
...
@@ -26,6 +26,17 @@ class BrowserTest < MiniTest::Test
end
end
# Skip a test on a given browser version
def
skip_on_browser
(
name
,
version
,
message
)
if
$b
.
driver
.
capabilities
.
browser_name
==
name
if
$b
.
driver
.
capabilities
.
version
==
version
nameversion
=
"("
+
$b
.
driver
.
capabilities
.
browser_name
+
"/"
+
$b
.
driver
.
capabilities
.
version
+
")"
print
nameversion
skip
message
+
" "
+
nameversion
end
end
end
def
set_browser
(
vidjil_file
,
analysis_file
=
nil
,
local_storage
=
nil
,
close_tooltip
=
true
)
folder_path
=
File
.
expand_path
(
File
.
dirname
(
__FILE__
))
folder_path
.
sub!
'/browser/test/functional'
,
''
...
...
doc/tutorial/tutorial-clones.tex
View file @
6cbb7dd8
...
...
@@ -702,12 +702,8 @@ and the $y$ axis selects the order of the boxes sharing a same $x$).
In the bar plot mode, pass the mouse over the bars: What happens?
}
\begin{verbatim}
def test
_
B
_
clones
_
28
_
switch
_
scatterplot
_
mode
if
$
b.driver.capabilities.browser
_
name
==
'firefox'
if
$
b.driver.capabilities.version == '32.0'
print "
\n
** Skip test; browser " +
$
b.driver.capabilities.browser
_
name
+
"; "
+
$
b.driver.capabilities.version + " **
\n
"
skip "Issue #4595 must be solved first"
end
end
skip
_
on
_
browser('firefox', '32.0', 'See issue #4595')
$
b.send
_
keys
0
$
b.update
_
icon.wait
_
while(
&
:present?)
...
...
@@ -742,11 +738,7 @@ In the bar plot mode, pass the mouse over the bars: What happens?}
\begin{verbatim}
def test
_
B
_
clones
_
29
_
shortcut
_
preset
if
$
b.driver.capabilities.browser
_
name
==
'firefox'
if
$
b.driver.capabilities.version == '32.0'
skip "Issue #4595 must be solved first"
end
end
skip
_
on
_
browser('firefox', '32.0', 'See issue #4595')
$
b.send
_
keys
0
$
b.update
_
icon.wait
_
while(
&
:present?)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment