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
b73da9f2
Commit
b73da9f2
authored
Dec 24, 2020
by
Mathieu Giraud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
browser_test.rb, tests: further extract and use skip_on_browser
parent
c23fd31a
Pipeline
#199810
passed with stages
in 28 minutes and 25 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
13 deletions
+5
-13
browser/test/functional/browser_test.rb
browser/test/functional/browser_test.rb
+1
-1
browser/test/functional/test_export.rb
browser/test/functional/test_export.rb
+2
-6
browser/test/functional/test_multilocus.rb
browser/test/functional/test_multilocus.rb
+2
-6
No files found.
browser/test/functional/browser_test.rb
View file @
b73da9f2
...
...
@@ -29,7 +29,7 @@ class BrowserTest < MiniTest::Test
# 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
if
version
==
nil
or
$b
.
driver
.
capabilities
.
version
==
version
nameversion
=
"("
+
$b
.
driver
.
capabilities
.
browser_name
+
"/"
+
$b
.
driver
.
capabilities
.
version
+
")"
print
nameversion
skip
message
+
" "
+
nameversion
...
...
browser/test/functional/test_export.rb
View file @
b73da9f2
...
...
@@ -17,9 +17,7 @@ class TestExport < BrowserTest
# If only one sample, the button report monitor should be disable
set_browser
(
"/doc/analysis-example1.vidjil"
)
if
$b
.
driver
.
capabilities
.
browser_name
==
'chrome'
skip
"Issue #3699 must be solved first"
end
skip_on_browser
(
'chrome'
,
nil
,
'Issue #3699 must be solved first'
)
$b
.
menu_item_export
(
'export_sample_report'
)
assert
(
$b
.
a
(
:id
=>
"export_monitor_report"
,
:class
=>
'disabledClass'
).
exists?
),
">> export monitor is disable if only one samples is open"
...
...
@@ -30,9 +28,7 @@ class TestExport < BrowserTest
# If only one sample, the button report monitor should be enable
set_browser
(
"/doc/analysis-example.vidjil"
)
if
$b
.
driver
.
capabilities
.
browser_name
==
'chrome'
skip
"Issue #3699 must be solved first"
end
skip_on_browser
(
'chrome'
,
nil
,
'Issue #3699 must be solved first'
)
$b
.
menu_item_export
(
'export_sample_report'
)
assert
(
not
$b
.
a
(
:id
=>
"export_monitor_report"
,
:class
=>
'disabledClass'
).
exists?
),
">> export monitor available if 2 samples are present"
...
...
browser/test/functional/test_multilocus.rb
View file @
b73da9f2
...
...
@@ -229,9 +229,7 @@ class TestMultilocus < BrowserTest
def
test_14_export_sample_report
if
$b
.
driver
.
capabilities
.
browser_name
==
'chrome'
skip
"Issue #3699 must be solved first"
end
skip_on_browser
(
'chrome'
,
nil
,
'Issue #3699 must be solved first'
)
assert
(
$b
.
scatterplot_x_legend
(
0
).
text
.
include?
'TRB'
),
"Current system should be TRB"
...
...
@@ -274,9 +272,7 @@ class TestMultilocus < BrowserTest
def
test_14b_export_sample_report
if
$b
.
driver
.
capabilities
.
browser_name
==
'chrome'
skip
"Issue #3699 must be solved first"
end
skip_on_browser
(
'chrome'
,
nil
,
'Issue #3699 must be solved first'
)
# Select a clone
$b
.
clone_in_scatterplot
(
'43'
).
click
...
...
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