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
90d74c60
Commit
90d74c60
authored
Jul 04, 2017
by
Julien Fastré
Browse files
fix css classes in tests
parent
4d884c2d
Changes
14
Hide whitespace changes
Inline
Side-by-side
Tests
/Fixtures/.DS_Store
→
Resources/test
/Fixtures/.DS_Store
View file @
90d74c60
File moved
Tests
/Fixtures/App/app/AppKernel.php
→
Resources/test
/Fixtures/App/app/AppKernel.php
View file @
90d74c60
File moved
Tests
/Fixtures/App/app/DoctrineMigrations/.gitignore
→
Resources/test
/Fixtures/App/app/DoctrineMigrations/.gitignore
View file @
90d74c60
File moved
Tests
/Fixtures/App/app/config/config.yml
→
Resources/test
/Fixtures/App/app/config/config.yml
View file @
90d74c60
File moved
Tests
/Fixtures/App/app/config/config_dev.yml
→
Resources/test
/Fixtures/App/app/config/config_dev.yml
View file @
90d74c60
File moved
Tests
/Fixtures/App/app/config/config_test.yml
→
Resources/test
/Fixtures/App/app/config/config_test.yml
View file @
90d74c60
File moved
Tests
/Fixtures/App/app/config/parameters.gitlab-ci.yml
→
Resources/test
/Fixtures/App/app/config/parameters.gitlab-ci.yml
View file @
90d74c60
File moved
Tests
/Fixtures/App/app/config/parameters.yml.dist
→
Resources/test
/Fixtures/App/app/config/parameters.yml.dist
View file @
90d74c60
File moved
Tests
/Fixtures/App/app/config/routing.yml
→
Resources/test
/Fixtures/App/app/config/routing.yml
View file @
90d74c60
File moved
Tests
/Fixtures/App/app/console
→
Resources/test
/Fixtures/App/app/console
View file @
90d74c60
File moved
Tests
/Fixtures/App/web/.gitignore
→
Resources/test
/Fixtures/App/web/.gitignore
View file @
90d74c60
File moved
Resources/views/Timeline/report_person_context.html.twig
View file @
90d74c60
<div>
<div
class=
"report_entry"
>
<h3>
{{
report.date
|
localizeddate
(
'long'
,
'none'
)
}}
<span
class=
"report"
>
/
{{
'Report'
|
trans
}}
</span></h3>
<div
class=
"statement"
>
<span
class=
"statement"
>
{{
'%user% has filled a %report_label% report on %date%'
|
trans
(
...
...
Tests/Search/ReportSearchTest.php
View file @
90d74c60
...
...
@@ -64,7 +64,6 @@ class ReportSearchTest extends WebTestCase
));
$this
->
assertTrue
(
$client
->
getResponse
()
->
isSuccessful
());
$this
->
assertRegExp
(
'/Charline/'
,
$crawler
->
text
());
$this
->
assertRegExp
(
'/Situation de logement/i'
,
$crawler
->
text
());
}
...
...
Tests/Timeline/TimelineProviderTest.php
View file @
90d74c60
...
...
@@ -130,13 +130,13 @@ class TimelineProviderTest extends WebTestCase
//performs tests
$this
->
assertTrue
(
$client
->
getResponse
()
->
isSuccessful
(),
'The page timeline is loaded successfully'
);
$this
->
assertGreaterThan
(
0
,
$crawler
->
filter
(
'.report .summary'
)
$this
->
assertGreaterThan
(
0
,
$crawler
->
filter
(
'.report
_entry
.summary'
)
->
count
(),
'the page contains a .report .summary element'
);
$this
->
assertContains
(
'blah blah'
,
$crawler
->
filter
(
'.report .summary'
)
$this
->
assertContains
(
'blah blah'
,
$crawler
->
filter
(
'.report
_entry
.summary'
)
->
text
(),
'the page contains the text "blah blah"'
);
$this
->
assertContains
(
'Propriétaire'
,
$crawler
->
filter
(
'.report .summary'
)
$this
->
assertContains
(
'Propriétaire'
,
$crawler
->
filter
(
'.report
_entry
.summary'
)
->
text
(),
'the page contains the mention "Propriétaire"'
);
}
...
...
@@ -150,7 +150,7 @@ class TimelineProviderTest extends WebTestCase
$crawler
=
$client
->
request
(
'GET'
,
'/fr/person/'
.
$this
->
person
->
getId
()
.
'/timeline'
);
$this
->
assertEquals
(
0
,
$crawler
->
filter
(
'.report .summary'
)
$this
->
assertEquals
(
0
,
$crawler
->
filter
(
'.report
_entry
.summary'
)
->
count
(),
'the page does not contains a .report .summary element'
);
}
...
...
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