Skip to content

Commit

Permalink
Added User social network into the smoke tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eerison committed Aug 13, 2022
1 parent 820be86 commit 5c1d4ee
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
6 changes: 4 additions & 2 deletions templates/profile/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,16 @@
{% endblock %}
</head>
<body>
{% include 'profile/partial/form/delete_modal.html.twig' %}
{% include 'profile/partial/navegation/main.html.twig' %}

<div class="section">
<div class="columns is-centered">
<div class="column is-10">
{% include 'profile/partial/form/delete_modal.html.twig' %}
{% include 'profile/partial/flashmessages.html.twig' with { 'auto_hide': true } %}
{% block body %}{% endblock body %}
<div id="content-page">
{% block body %}{% endblock body %}
</div>
</div>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions templates/profile/user-social-network.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
{% for userSocialNetworking in data %}
{% set path = path('profile_user-social-network_edit', { 'id': userSocialNetworking.id }) %}
<tr>
<td class="identify is-hidden">{{ userSocialNetworking.id }}</td>
<td>
<a href="{{path}}">
<i class="{{ userSocialNetworking.socialNetworking.icon }}"></i>
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/Controller/Profile/SmokeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
$this->assertResponseIsSuccessful();

if ($field) {
$this->assertEquals($value, $crawler->filter('form')->form()->get($field)->getValue());
$this->assertEquals($value, $crawler->filter('#content-page form')->form()->get($field)->getValue());
}
})->with(function () {
#main
Expand Down
12 changes: 6 additions & 6 deletions tests/Pest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@

dataset('page_list', [
//TODO this test requires that refresh database.
// 'User social network' => [
// '/profile/en/user-social-network',
// [
// 'user_social_networking[link]' => faker()->url(),
// ],
// ],
'User social network' => [
'/profile/en/user-social-network',
[
'user_social_networking[link]' => faker()->url(),
],
],
'Education' => [
'/profile/en/education',
[
Expand Down

0 comments on commit 5c1d4ee

Please sign in to comment.