Skip to content

Commit

Permalink
fix: UTs
Browse files Browse the repository at this point in the history
  • Loading branch information
kobenguyent committed Dec 7, 2023
1 parent 0229c95 commit 92f867c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions test/helper/Playwright_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1063,6 +1063,7 @@ describe('Playwright', function () {

describe('#startRecordingWebSocketMessages, #grabWebSocketMessages, #stopRecordingWebSocketMessages', () => {
it('should throw error when calling grabWebSocketMessages before startRecordingWebSocketMessages', () => {
if (process.env.BROWSER === 'firefox') this.skip();
try {
I.amOnPage('https://websocketstest.com/');
I.waitForText('Work for You!');
Expand All @@ -1073,6 +1074,7 @@ describe('Playwright', function () {
});

it('should flush the WS messages', async () => {
if (process.env.BROWSER === 'firefox') this.skip();
await I.startRecordingWebSocketMessages();
I.amOnPage('https://websocketstest.com/');
I.waitForText('Work for You!');
Expand All @@ -1082,6 +1084,7 @@ describe('Playwright', function () {
});

it('should see recording WS messages', async () => {
if (process.env.BROWSER === 'firefox') this.skip();
await I.startRecordingWebSocketMessages();
await I.amOnPage('https://websocketstest.com/');
I.waitForText('Work for You!');
Expand All @@ -1090,6 +1093,7 @@ describe('Playwright', function () {
});

it('should not see recording WS messages', async () => {
if (process.env.BROWSER === 'firefox') this.skip();
await I.startRecordingWebSocketMessages();
await I.amOnPage('https://websocketstest.com/');
I.waitForText('Work for You!');
Expand Down
2 changes: 1 addition & 1 deletion test/helper/webapi.js
Original file line number Diff line number Diff line change
Expand Up @@ -1399,7 +1399,7 @@ module.exports.tests = function () {
});

it('should check css property for several elements', async function () {
if (isHelper('TestCafe')) this.skip();
if (isHelper('TestCafe') || process.env.BROWSER === 'firefox') this.skip();

try {
await I.amOnPage('/');
Expand Down

0 comments on commit 92f867c

Please sign in to comment.