Skip to content

Commit 9214148

Browse files
sourav-kundufrancisf
authored andcommitted
chore: fix EOL, readme links, etc
1 parent bd659f7 commit 9214148

11 files changed

+41
-41
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
node_modules
1+
node_modules

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ You can see the [documentation for marking test status using REST API](https://w
7575

7676
## Facing issues?
7777

78-
If you are facing any issue with any of the above or any other issue in trying to run your Playwright tests on BrowserStack, you can reach out to me directly at `sourav.k@browserstack.com` and I will be happy to debug your issues or at the least ensure that your issue becomes our top priority to resolve.
78+
If you are facing any issue with any of the above or any other issue in trying to run your Puppeteer tests on BrowserStack, you can [reach out to support](https://www.browserstack.com/contact#technical-support), select product as `Automate` and send us your query.

codeceptjs-example/codecept.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ exports.config = {
4343
enabled: true
4444
}
4545
}
46-
}
46+
}

codeceptjs-example/jsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"compilerOptions": {
33
"allowJs": true
44
}
5-
}
5+
}

google_search.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const expect = require('chai').expect;
1515
};
1616
const browser = await puppeteer.connect({
1717
browserWSEndpoint:
18-
`ws://cdp.browserstack.com?caps=${encodeURIComponent(JSON.stringify(caps))}`,
18+
`wss://cdp.browserstack.com?caps=${encodeURIComponent(JSON.stringify(caps))}`,
1919
});
2020

2121
/*
@@ -37,4 +37,4 @@ const expect = require('chai').expect;
3737
await page.evaluate(_ => {}, `browserstack_executor: ${JSON.stringify({action: 'setSessionStatus',arguments: {status: 'failed',reason: 'Title did not match'}})}`);
3838
}
3939
await browser.close();
40-
})();
40+
})();

google_search_with_proxy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ bootstrap();
2222
};
2323
const browser = await puppeteer.connect({
2424
browserWSEndpoint:
25-
`ws://cdp.browserstack.com?caps=${encodeURIComponent(JSON.stringify(caps))}`,
25+
`wss://cdp.browserstack.com?caps=${encodeURIComponent(JSON.stringify(caps))}`,
2626
});
2727

2828
/*
@@ -44,4 +44,4 @@ bootstrap();
4444
await page.evaluate(_ => {}, `browserstack_executor: ${JSON.stringify({action: 'setSessionStatus',arguments: {status: 'failed',reason: 'Title did not match'}})}`);
4545
}
4646
await browser.close();
47-
})();
47+
})();

local_test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const expect = require('chai').expect;
1616
};
1717
const browser = await puppeteer.connect({
1818
browserWSEndpoint:
19-
`ws://cdp.browserstack.com?caps=${encodeURIComponent(JSON.stringify(caps))}`,
19+
`wss://cdp.browserstack.com?caps=${encodeURIComponent(JSON.stringify(caps))}`,
2020
});
2121

2222
/*
@@ -37,4 +37,4 @@ const expect = require('chai').expect;
3737
await browser.close();
3838
})();
3939

40-
// After the end of the script, ensure to stop the BrowserStackLocal binary that had been started before invoking this script.
40+
// After the end of the script, ensure to stop the BrowserStackLocal binary that had been started before invoking this script.

parallel_test.js

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const main = async (cap) => {
77
cap['browserstack.accessKey'] = process.env.BROWSERSTACK_ACCESS_KEY || 'YOUR_ACCESS_KEY';
88

99
const browser = await puppeteer.connect({
10-
browserWSEndpoint:`ws://cdp.browserstack.com?caps=${encodeURIComponent(JSON.stringify(cap))}`,
10+
browserWSEndpoint:`wss://cdp.browserstack.com?caps=${encodeURIComponent(JSON.stringify(cap))}`,
1111
});
1212

1313
const page = await browser.newPage();
@@ -31,20 +31,20 @@ const main = async (cap) => {
3131
// The following capabilities array contains the list of os/browser environments where you want to run your tests. You can choose to alter this list according to your needs
3232
const capabilities = [
3333
{
34-
'browser': 'chrome',
35-
'browser_version': 'latest',
36-
'os': 'osx',
37-
'os_version': 'catalina',
38-
'name': 'Chrome latest on Catalina',
39-
'build': 'puppeteer-build-2'
34+
'browser': 'chrome',
35+
'browser_version': 'latest',
36+
'os': 'osx',
37+
'os_version': 'catalina',
38+
'name': 'Chrome latest on Catalina',
39+
'build': 'puppeteer-build-2'
4040
},
4141
{
42-
'browser': 'firefox',
43-
'browser_version': 'latest',
44-
'os': 'osx',
45-
'os_version': 'catalina',
46-
'name': 'Firefox latest on Catalina',
47-
'build': 'puppeteer-build-2'
42+
'browser': 'firefox',
43+
'browser_version': 'latest',
44+
'os': 'osx',
45+
'os_version': 'catalina',
46+
'name': 'Firefox latest on Catalina',
47+
'build': 'puppeteer-build-2'
4848
},
4949
{
5050
'browser': 'edge',
@@ -55,20 +55,20 @@ const capabilities = [
5555
'build': 'puppeteer-build-2'
5656
},
5757
{
58-
'browser': 'chrome',
59-
'browser_version': 'latest-1',
60-
'os': 'Windows',
61-
'os_version': '10',
62-
'name': 'Chrome latest-1 on Win10',
63-
'build': 'puppeteer-build-2'
58+
'browser': 'chrome',
59+
'browser_version': 'latest-1',
60+
'os': 'Windows',
61+
'os_version': '10',
62+
'name': 'Chrome latest-1 on Win10',
63+
'build': 'puppeteer-build-2'
6464
},
6565
{
66-
'browser': 'firefox',
67-
'browser_version': 'latest-beta',
68-
'os': 'Windows',
69-
'os_version': '10',
70-
'name': 'Firefox beta on Win10',
71-
'build': 'puppeteer-build-2'
66+
'browser': 'firefox',
67+
'browser_version': 'latest-beta',
68+
'os': 'Windows',
69+
'os_version': '10',
70+
'name': 'Firefox beta on Win10',
71+
'build': 'puppeteer-build-2'
7272
},
7373
{
7474
'browser': 'edge',
@@ -82,4 +82,4 @@ const capabilities = [
8282
// The following code loops through the capabilities array defined above and runs your code against each environment that you have specified
8383
capabilities.forEach(async (cap) => {
8484
await main(cap);
85-
});
85+
});

puppeteer-jest/google.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ describe("Google", () => {
1818
await page.evaluate(_ => {}, `browserstack_executor: ${JSON.stringify({action: 'setSessionStatus',arguments: {status: 'failed',reason: 'Test assertion failed'}})}`);
1919
}
2020
})
21-
})
21+
})

puppeteer-jest/jest-puppeteer.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ const caps_edge = {
3333

3434
module.exports = {
3535
connect: {
36-
browserWSEndpoint: `ws://cdp.browserstack.com?caps=${encodeURIComponent(JSON.stringify(caps_chrome))}`,
36+
browserWSEndpoint: `wss://cdp.browserstack.com?caps=${encodeURIComponent(JSON.stringify(caps_chrome))}`,
3737
}
38-
}
38+
}

0 commit comments

Comments
 (0)