Update example tests

This commit is contained in:
Michael Mintz 2022-01-04 20:47:15 -05:00
parent 61f61e6731
commit e51f2bbc54
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,6 @@
"""
This test is only for Microsoft Edge (Chromium)!
(Tested on Edge Version 89.0.774.54)
(Tested on Edge Version 96.0.1054.62)
"""
from seleniumbase import BaseCase
@ -8,10 +8,12 @@ from seleniumbase import BaseCase
class EdgeTests(BaseCase):
def test_edge(self):
if self.browser != "edge":
self.open("data:,")
print("\n This test is only for Microsoft Edge (Chromium)!")
print(' (Run this test using "--edge" or "--browser=edge")')
self.skip('Use "--edge" or "--browser=edge"')
if self.headless:
self.open("data:,")
print("\n This test is NOT designed for Headless Mode!")
self.skip('Do NOT use "--headless" with this test!')
self.open("edge://settings/help")

View File

@ -20,9 +20,11 @@ class ShadowDomTests(BaseCase):
def test_shadow_dom(self):
if self.browser != "chrome":
self.open("data:,")
print("\n This test is for Google Chrome only!")
self.skip("This test is for Google Chrome only!")
if self.headless:
self.open("data:,")
print("\n This test doesn't run in headless mode!")
self.skip("This test doesn't run in headless mode!")