Skip to content

Commit 3671516

Browse files
fix(test): update announcement banner test for nh3 style stripping
1 parent 2936c9c commit 3671516

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/announcement_banner_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,11 @@ def test_html_announcement(self):
141141
driver.get(self.base_url)
142142
self.assertFalse(self.is_element_by_css_selector_present(".announcement-banner:not([data-source])"))
143143

144-
text = "Links in announcements? <a href='https://github.com/DefectDojo/django-DefectDojo' style='color: #224477;' target='_blank'>you bet!</a>"
144+
text = "Links in announcements? <a href='https://github.com/DefectDojo/django-DefectDojo' target='_blank'>you bet!</a>"
145145
self.enable_announcement(text, dismissable=False, style=self.type)
146146
self.assertTrue(self.is_success_message_present("Announcement updated successfully."))
147147

148-
driver.find_element(By.XPATH, "//div[contains(@class, 'announcement-banner')]/a[@href='https://github.com/DefectDojo/django-DefectDojo' and @style='color: #224477;' and @target='_blank']")
148+
driver.find_element(By.XPATH, "//div[contains(@class, 'announcement-banner')]/a[@href='https://github.com/DefectDojo/django-DefectDojo' and @target='_blank']")
149149
self.disable_announcement()
150150
self.assertTrue(self.is_success_message_present("Announcement removed for everyone."))
151151

0 commit comments

Comments
 (0)