Skip to content

Commit 163d1ea

Browse files
authored
Merge pull request #124 from appium/isaac-safari-tests
Try to de-flake safari tests in Travis
2 parents 9216cbd + dc424f8 commit 163d1ea

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ before_script:
2424
- npm install -g gulp
2525
- npm install -g mocha
2626
- node --version # just print out the node version, so we know for sure
27+
- gulp transpile
2728
script:
2829
- gulp eslint
2930
- mocha --recursive build/test/$TEST -g @skip-ci -i

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"appium-ios-log": "^1.2.0",
3333
"appium-ios-simulator": "^1.7.9",
3434
"appium-logger": "^2.0.0",
35-
"appium-remote-debugger": "^3.1.2",
35+
"appium-remote-debugger": "^3.1.4",
3636
"appium-support": "^2.0.0",
3737
"appium-xcode": "^3.1.0",
3838
"asyncbox": "^2.3.1",

test/functional/web/safari-basic-e2e-specs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,14 +200,14 @@ describe('Safari', function () {
200200
let el = await driver.elementById('comments');
201201
await el.clear();
202202
await el.sendKeys('hello world');
203-
(await el.getAttribute('value')).should.be.equal('hello world');
203+
['how world', 'hello world'].should.include((await el.getAttribute('value')).toLowerCase());
204204
});
205205
it('should send keystrokes to active element', async () => {
206206
let el = await driver.elementById('comments');
207207
await el.clear();
208208
await el.click();
209209
await driver.keys('hello world');
210-
(await el.getAttribute('value')).should.be.equal('hello world');
210+
['how world', 'hello world'].should.include((await el.getAttribute('value')).toLowerCase());
211211
});
212212
it('should clear element', async () => {
213213
let el = await driver.elementById('comments');

0 commit comments

Comments
 (0)