From 8fc8c958a5840df48a2bda110c6f06656968b156 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Sun, 30 Jun 2019 20:35:05 +0200 Subject: [PATCH] Fixed broken selenium tests after 42b9a23267f14be39b9b00958e18d5746783208e. --- tests/admin_views/tests.py | 2 +- tests/admin_widgets/tests.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)