Skip to content

Commit cd49e2b

Browse files
Matt Gauntjshcrowthe
authored andcommitted
Messaging smoke test (#129)
* test(messaging): Smoke tests * test(messaging): Adding full test logic * test(messaging): Adding integration tests in new folder * fix(messaging): fixed a small runner issue to ensure each run is reproducable * refactor(travis.yml): make it so push commits only run on master * fix(messaging): Add mocha devDep
1 parent c4fbf8b commit cd49e2b

File tree

14 files changed

+2507
-2
lines changed

14 files changed

+2507
-2
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.DS_Store
2-
/node_modules
2+
node_modules/
33
/dist
44
npm-debug.log
55
/coverage
@@ -9,4 +9,4 @@ temp/
99
/.vscode
1010
/.ts-node
1111
/.idea
12-
/.awcache
12+
/.awcache

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
- script: ./integration/typescript/runner.sh
3030
- script: ./integration/serviceWorker/runner.sh
3131
- script: ./integration/quickstart/runner.sh
32+
- script: ./integration/messaging/runner.sh
3233

3334
# Misc Addons/Configs
3435
dist: trusty
@@ -41,3 +42,7 @@ addons:
4142
packages:
4243
- google-chrome-stable
4344
- g++-4.8
45+
46+
branches:
47+
only:
48+
- master

integration/messaging/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Currently `firebase-js-sdk` does not have any selenium support so these
2+
tests need to be run manually until such a time that support is made available
3+
and tests are ported over.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
const seleniumAssistant = require('selenium-assistant');
2+
3+
console.log('Starting browser download - this may take some time.');
4+
Promise.all([
5+
seleniumAssistant.downloadLocalBrowser('chrome', 'stable', 48),
6+
seleniumAssistant.downloadLocalBrowser('chrome', 'beta', 48),
7+
seleniumAssistant.downloadLocalBrowser('chrome', 'unstable', 48),
8+
seleniumAssistant.downloadLocalBrowser('firefox', 'stable', 48),
9+
seleniumAssistant.downloadLocalBrowser('firefox', 'beta', 48),
10+
seleniumAssistant.downloadLocalBrowser('firefox', 'unstable', 48),
11+
])
12+
.then(() => {
13+
console.log('Browser download complete.');
14+
})
15+
.catch((err) => {
16+
console.error('Browser download failed.');
17+
});

0 commit comments

Comments
 (0)