Skip to content

Commit ac65928

Browse files
authored
fix: eliminate reliance on setInterval (#40)
BREAKING CHANGE: bumped the supported / tested browsers to match [email protected].
1 parent c0490e3 commit ac65928

File tree

9 files changed

+1856
-427
lines changed

9 files changed

+1856
-427
lines changed

azure-pipelines.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
env:
2222
BROWSER_STACK_ACCESS_KEY: $(BROWSER_STACK_ACCESS_KEY)
2323
BROWSER_STACK_USERNAME: $(BROWSER_STACK_USERNAME)
24-
BUNDLESIZE_GITHUB_TOKEN: $(BUNDLESIZE_GITHUB_TOKEN)
24+
BUNDLEWATCH_GITHUB_TOKEN: $(BUNDLEWATCH_GITHUB_TOKEN)
2525
SAUCE_ACCESS_KEY: $(SAUCE_ACCESS_KEY)
2626
SAUCE_USERNAME: $(SAUCE_USERNAME)
27-
TEST_BROWSERS: 'ChromeHeadlessNoSandbox,FirefoxHeadless,sl_ios_safari'
27+
TEST_BROWSERS: 'ChromeHeadlessNoSandbox,FirefoxHeadless,sl_edge,sl_safari,sl_ios_safari,bs_android_chrome'
2828

2929
- task: PublishTestResults@2
3030
displayName: 'Save test results'

karma.conf.js

Lines changed: 32 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -71,44 +71,60 @@ module.exports = function (config) {
7171
XXXsl_chrome: {
7272
base: 'SauceLabs',
7373
browserName: 'chrome',
74-
extendedDebugging: true
74+
extendedDebugging: true,
7575
},
76-
sl_firefox: {
76+
XXXsl_firefox: {
7777
base: 'SauceLabs',
78-
browserName: 'firefox'
78+
browserName: 'firefox',
7979
},
8080
sl_edge: {
8181
base: 'SauceLabs',
82-
browserName: 'MicrosoftEdge'
82+
browserName: 'MicrosoftEdge',
83+
version: '79.0',
8384
},
8485
sl_safari: {
8586
base: 'SauceLabs',
86-
browserName: 'safari'
87+
browserName: 'safari',
88+
platform: 'macOS 10.15',
89+
version: '13.0',
8790
},
8891
sl_ios_safari: {
8992
base: 'SauceLabs',
90-
deviceName: 'iPhone X Simulator',
93+
deviceName: 'iPhone 11 Pro Max Simulator',
9194
platformName: 'iOS',
92-
platformVersion: '11.2',
95+
platformVersion: '13.0',
9396
browserName: 'Safari',
94-
appiumVersion: '1.9.1'
97+
appiumVersion: '1.15.0',
9598
},
96-
sl_android_chrome: {
99+
XXXsl_android_chrome: {
97100
base: 'SauceLabs',
101+
deviceOrientation: 'portrait',
98102
deviceName: 'Android GoogleAPI Emulator',
99103
platformName: 'Android',
100104
platformVersion: '7.1',
101105
browserName: 'Chrome',
102-
appiumVersion: '1.9.1'
106+
appiumVersion: '1.15.0',
107+
},
108+
bs_android_chrome: {
109+
base: 'BrowserStack',
110+
os: 'android',
111+
os_version: '10.0',
112+
browser: 'android',
113+
device: 'Google Pixel 4',
114+
real_mobile: true,
103115
},
104116
FirefoxHeadless: {
105117
base: 'Firefox',
106-
flags: ['-headless']
118+
flags: ['-headless'],
107119
},
108120
ChromeHeadlessNoSandbox: {
109121
base: 'ChromeHeadless',
110-
flags: ['--no-sandbox']
111-
}
122+
flags: ['--no-sandbox'],
123+
},
124+
ChromeCanaryHeadlessNoSandbox: {
125+
base: 'ChromeCanaryHeadless',
126+
flags: ['--no-sandbox'],
127+
},
112128
},
113129
sauceLabs: {
114130
// Since tags aren't being sent correctly, I'm going to stick the branch name in here.
@@ -121,7 +137,7 @@ module.exports = function (config) {
121137
tags: [ISSUE],
122138
recordScreenshots: false,
123139
recordVideo: false,
124-
public: 'public restricted'
140+
public: 'public restricted',
125141
},
126142
concurrency: 5,
127143
// Continuous Integration mode
@@ -138,8 +154,10 @@ module.exports = function (config) {
138154
devtool: 'inline-source-map',
139155
},
140156
plugins: [
157+
'karma-browserstack-launcher',
141158
'karma-chrome-launcher',
142159
'karma-edge-launcher',
160+
'karma-ie-launcher',
143161
'karma-safari-launcher',
144162
'karma-firefox-launcher',
145163
'karma-jasmine',

0 commit comments

Comments
 (0)