@@ -33,6 +33,7 @@ describe('Playwright', function () {
3333 I = new Playwright ( {
3434 url : siteUrl ,
3535 windowSize : '500x700' ,
36+ browser : process . env . BROWSER || 'chromium' ,
3637 show : false ,
3738 waitForTimeout : 5000 ,
3839 waitForAction : 500 ,
@@ -112,6 +113,17 @@ describe('Playwright', function () {
112113 } ) ;
113114 } ) ;
114115
116+ describe ( '#seeCssPropertiesOnElements' , ( ) => {
117+ it ( 'should check background-color css property for given element' , async ( ) => {
118+ try {
119+ await I . amOnPage ( 'https://codecept.io/helpers/Playwright/' ) ;
120+ await I . seeCssPropertiesOnElements ( '.navbar' , { 'background-color' : 'rgb(128, 90, 213)' } ) ;
121+ } catch ( e ) {
122+ e . message . should . include ( 'expected element (.navbar) to have CSS property { \'background-color\': \'rgb(128, 90, 213)\' }' ) ;
123+ }
124+ } ) ;
125+ } ) ;
126+
115127 webApiTests . tests ( ) ;
116128
117129 describe ( '#click' , ( ) => {
@@ -1051,6 +1063,7 @@ describe('Playwright', function () {
10511063
10521064 describe ( '#startRecordingWebSocketMessages, #grabWebSocketMessages, #stopRecordingWebSocketMessages' , ( ) => {
10531065 it ( 'should throw error when calling grabWebSocketMessages before startRecordingWebSocketMessages' , ( ) => {
1066+ if ( process . env . BROWSER === 'firefox' ) this . skip ( ) ;
10541067 try {
10551068 I . amOnPage ( 'https://websocketstest.com/' ) ;
10561069 I . waitForText ( 'Work for You!' ) ;
@@ -1061,6 +1074,7 @@ describe('Playwright', function () {
10611074 } ) ;
10621075
10631076 it ( 'should flush the WS messages' , async ( ) => {
1077+ if ( process . env . BROWSER === 'firefox' ) this . skip ( ) ;
10641078 await I . startRecordingWebSocketMessages ( ) ;
10651079 I . amOnPage ( 'https://websocketstest.com/' ) ;
10661080 I . waitForText ( 'Work for You!' ) ;
@@ -1070,6 +1084,7 @@ describe('Playwright', function () {
10701084 } ) ;
10711085
10721086 it ( 'should see recording WS messages' , async ( ) => {
1087+ if ( process . env . BROWSER === 'firefox' ) this . skip ( ) ;
10731088 await I . startRecordingWebSocketMessages ( ) ;
10741089 await I . amOnPage ( 'https://websocketstest.com/' ) ;
10751090 I . waitForText ( 'Work for You!' ) ;
@@ -1078,6 +1093,7 @@ describe('Playwright', function () {
10781093 } ) ;
10791094
10801095 it ( 'should not see recording WS messages' , async ( ) => {
1096+ if ( process . env . BROWSER === 'firefox' ) this . skip ( ) ;
10811097 await I . startRecordingWebSocketMessages ( ) ;
10821098 await I . amOnPage ( 'https://websocketstest.com/' ) ;
10831099 I . waitForText ( 'Work for You!' ) ;
0 commit comments