@@ -14,49 +14,16 @@ describe('@wdio/visual-service desktop', () => {
1414 afterEach ( async ( ) => await browser . execute ( 'window.scrollTo(0, 0);' , [ ] ) )
1515
1616 it ( `should compare an element successful with a baseline for '${ browserName } '` , async function ( ) {
17- // There is an issue with Safari 16 on Sauce Labs, it doesn't always load the page correctly
18- // this suite retry should result in a successful test run, otherwise the specFileRetries will retry the whole file
19- // in a new session
20- if ( browserName === 'safari-16' ) {
21- // This is like firing with a bazooka, but it's the only way to make it work
22- // @ts -ignore
23- this . retries ( 5 )
24- // For some reason the safari 16 browser on Sauce Labs doesn't load the page correctly for the first try
25- await browser . url ( '' )
26- await $ ( '.hero__title-logo' ) . waitForDisplayed ( )
27- }
2817 await expect ( $ ( '.hero__title-logo' ) ) . toMatchElementSnapshot ( 'wdioLogo' , {
2918 removeElements : [ await $ ( 'nav.navbar' ) ]
3019 } )
3120 } )
3221
3322 it ( `should compare a viewport screenshot successful with a baseline for '${ browserName } '` , async function ( ) {
34- // There is an issue with Safari 16 on Sauce Labs, it doesn't always load the page correctly
35- // this suite retry should result in a successful test run, otherwise the specFileRetries will retry the whole file
36- // in a new session
37- if ( browserName === 'safari-16' ) {
38- // This is like firing with a bazooka, but it's the only way to make it work
39- // @ts -ignore
40- this . retries ( 5 )
41- // For some reason the safari 16 browser on Sauce Labs doesn't load the page correctly for the first try
42- await browser . url ( '' )
43- await $ ( '.hero__title-logo' ) . waitForDisplayed ( )
44- }
4523 await expect ( browser ) . toMatchScreenSnapshot ( 'viewportScreenshot' )
4624 } )
4725
48- it ( `should compare a full page screenshot successful with a baseline for '${ browserName } '` , async function ( ) {
49- // There is an issue with Safari 16 on Sauce Labs, it doesn't always load the page correctly
50- // this suite retry should result in a successful test run, otherwise the specFileRetries will retry the whole file
51- // in a new session
52- if ( browserName === 'safari-16' ) {
53- // This is like firing with a bazooka, but it's the only way to make it work
54- // @ts -ignore
55- this . retries ( 5 )
56- // For some reason the safari 16 browser on Sauce Labs doesn't load the page correctly for the first try
57- await browser . url ( '' )
58- await $ ( '.hero__title-logo' ) . waitForDisplayed ( )
59- }
26+ it ( `should compare a full page screenshot successful with a baseline for '${ browserName } '` , async function ( ) {
6027 await expect ( browser ) . toMatchFullPageSnapshot ( 'fullPage' , {
6128 fullPageScrollTimeout : 1500 ,
6229 hideAfterFirstScroll : [
@@ -66,17 +33,6 @@ describe('@wdio/visual-service desktop', () => {
6633 } )
6734
6835 it ( `should compare a tabbable screenshot successful with a baseline for '${ browserName } '` , async function ( ) {
69- // There is an issue with Safari 16 on Sauce Labs, it doesn't always load the page correctly
70- // this suite retry should result in a successful test run, otherwise the specFileRetries will retry the whole file
71- // in a new session
72- if ( browserName === 'safari-16' ) {
73- // This is like firing with a bazooka, but it's the only way to make it work
74- // @ts -ignore
75- this . retries ( 5 )
76- // For some reason the safari 16 browser on Sauce Labs doesn't load the page correctly for the first try
77- await browser . url ( '' )
78- await $ ( '.hero__title-logo' ) . waitForDisplayed ( )
79- }
8036 await expect ( browser ) . toMatchTabbablePageSnapshot ( 'tabbable' , {
8137 hideAfterFirstScroll : [
8238 await $ ( 'nav.navbar' ) ,
0 commit comments