Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Chill-project
Chill-Report
Commits
986d1072
Commit
986d1072
authored
Aug 29, 2017
by
Julien Fastré
Browse files
fix test with new labels / classes
parent
0c49a21f
Pipeline
#21678
passed with stages
in 11 minutes and 27 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Tests/Controller/ReportControllerTest.php
View file @
986d1072
...
...
@@ -378,12 +378,12 @@ class ReportControllerTest extends WebTestCase
$this
->
assertTrue
(
$client
->
getResponse
()
->
isSuccessful
());
$linkSee
=
$crawler
->
selectLink
(
'Voir le rapport
'
)
->
links
();
$linkSee
=
$crawler
->
filter
(
'.bt-view
'
)
->
links
();
$this
->
assertGreaterThan
(
0
,
count
(
$linkSee
));
$this
->
assertRegExp
(
sprintf
(
'|/fr/person/%s/report/[0-9]*/view$|'
,
static
::
$person
->
getId
(),
$reportId
),
$linkSee
[
0
]
->
getUri
());
$linkUpdate
=
$crawler
->
selectLink
(
'Mettre à jour
'
)
->
links
();
$linkUpdate
=
$crawler
->
filter
(
'.bt-update
'
)
->
links
();
$this
->
assertGreaterThan
(
0
,
count
(
$linkUpdate
));
$this
->
assertRegExp
(
sprintf
(
'|/fr/person/%s/report/[0-9]*/edit$|'
,
static
::
$person
->
getId
(),
$reportId
),
$linkUpdate
[
0
]
->
getUri
());
...
...
Write
Preview
Supports
Markdown
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