-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #851 from maykinmedia/feature/1706-design-personal…
…-info [#1706] Redesign personal info page
- Loading branch information
Showing
12 changed files
with
354 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ | |
import requests_mock | ||
from django_webtest import WebTest | ||
from furl import furl | ||
from pyquery import PyQuery as PQ | ||
|
||
from open_inwoner.configurations.models import SiteConfiguration | ||
from open_inwoner.contrib.kvk.models import KvKConfig | ||
|
@@ -1565,14 +1566,20 @@ def test_password_change_form_done_custom_template_is_rendered(self): | |
|
||
def test_password_change_button_is_rendered_with_default_login_type(self): | ||
response = self.app.get(reverse("profile:detail"), user=self.user) | ||
self.assertContains(response, _("Wijzig wachtwoord")) | ||
|
||
doc = PQ(response.content) | ||
link = doc.find("[aria-label='Wachtwoord']")[0] | ||
self.assertTrue(doc(link).is_("a")) | ||
|
||
def test_password_change_button_is_not_rendered_with_digid_login_type(self): | ||
digid_user = UserFactory( | ||
login_type=LoginTypeChoices.digid, email="[email protected]" | ||
) | ||
response = self.app.get(reverse("profile:detail"), user=digid_user) | ||
self.assertNotContains(response, _("Wijzig wachtwoord")) | ||
|
||
doc = PQ(response.content) | ||
links = doc.find("[aria-label='Wachtwoord']") | ||
self.assertEqual(len(links), 0) | ||
|
||
def test_anonymous_user_is_redirected_to_login_page_if_password_change_is_accessed( | ||
self, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/open_inwoner/scss/components/Profile/_personal-overview.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
.personal-overview { | ||
.profile-section { | ||
h2, | ||
.h2 { | ||
margin: var(--row-height) 0 0 0; | ||
margin: calc(var(--row-height) * 1.5) 0 0 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.