diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py index 372fa81582..7e6040fe52 100644 --- a/tests/admin_views/tests.py +++ b/tests/admin_views/tests.py @@ -4772,7 +4772,7 @@ class SeleniumTests(AdminSeleniumTestCase): self.selenium.find_element_by_id('delete_id_parent').click() self.wait_for_popup() self.selenium.switch_to.window(self.selenium.window_handles[-1]) - self.selenium.find_element_by_xpath('//input[@value="Yes, I\'m sure"]').click() + self.selenium.find_element_by_xpath('//input[@value="Yes, I’m sure"]').click() self.selenium.switch_to.window(self.selenium.window_handles[0]) select = Select(self.selenium.find_element_by_id('id_parent')) self.assertEqual(ParentWithUUIDPK.objects.count(), 0) diff --git a/tests/admin_widgets/tests.py b/tests/admin_widgets/tests.py index 22efcef6ce..7aa597a87d 100644 --- a/tests/admin_widgets/tests.py +++ b/tests/admin_widgets/tests.py @@ -1393,7 +1393,7 @@ class RelatedFieldWidgetSeleniumTests(AdminWidgetSeleniumTestCase): # Go ahead and submit the form to make sure it works self.selenium.find_element_by_css_selector(save_button_css_selector).click() - self.wait_for_text('li.success', 'The profile "changednewuser" was added successfully.') + self.wait_for_text('li.success', 'The profile “changednewuser” was added successfully.') profiles = Profile.objects.all() self.assertEqual(len(profiles), 1) self.assertEqual(profiles[0].user.username, username_value)