Skip to content

Commit

Permalink
💚 Fix tests after removing password component
Browse files Browse the repository at this point in the history
Some frontend/e2e tests and other integration tests were still using the
component.
  • Loading branch information
sergei-maertens committed Nov 25, 2024
1 parent 2572add commit aff67a0
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 19 deletions.
2 changes: 0 additions & 2 deletions src/openforms/forms/tests/e2e_tests/test_form_designer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1338,7 +1338,6 @@ def setUpTestData():
},
},
{"type": "number", "key": "number", "label": "Number 1"},
{"type": "password", "key": "password", "label": "Password 1"},
{
"type": "phoneNumber",
"key": "phoneNumber",
Expand Down Expand Up @@ -1440,7 +1439,6 @@ def setUpTestData():
"IBAN 1",
"License plate 1",
"Number 1",
"Password 1",
"Phone Number 1",
"Postcode 1",
"Radio 1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -630,12 +630,6 @@ def test_regression_nested_components_columns(self):
"label": "Dropdown met zoekfunctie",
"showInEmail": True,
},
{
"key": "wachtwoord",
"label": "Wachtwoord",
"showInEmail": True,
"type": "password",
},
{
"key": "favorieteComponenten",
"label": "Favoriete componenten?",
Expand Down
10 changes: 0 additions & 10 deletions src/openforms/submissions/tests/test_tasks_confirmation_emails.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,6 @@ def test_template_is_rendered_in_submission_language(self):
],
submitted_data={
"email": "[email protected]",
"fubar": "Haveibeenpwned.com123!@#",
"editgrid1": [
{
"radio1": "radiov2",
Expand All @@ -565,14 +564,6 @@ def test_template_is_rendered_in_submission_language(self):
"label": "Label with no translation",
"showInEmail": True,
},
{
"key": "fubar",
"type": "password",
"label": "Label with no translation",
# XXX cleartext "password" in email, for when you
# run out of room for Post-it™ on your monitor.
"showInEmail": True,
},
{
"type": "editgrid",
"key": "editgrid1",
Expand Down Expand Up @@ -692,7 +683,6 @@ def test_template_is_rendered_in_submission_language(self):
self.assertIn("Translated Repeating Group Item label 2", html_message)
self.assertIn("Translated Radio option 1", html_message)
self.assertIn("Translated Select option 2", html_message)
self.assertIn("Haveibeenpwned.com123!@#", html_message)


class RaceConditionTests(TransactionTestCase):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def setUpTestData(cls):
},
{
"key": "ww",
"type": "password",
"type": "textfield",
"label": "Wachtwoord",
"description": 'Suggestie: #{{naam|title}}{{geboortedatum|date:"Y"}}',
"openForms": {
Expand Down

0 comments on commit aff67a0

Please sign in to comment.