mirror of
https://github.com/appium/appium.git
synced 2026-10-28 20:31:51 +08:00
Merge pull request #1919 from imurchie/isaac-accents
Fix test for accents
This commit is contained in:
+2
-1
@@ -92,6 +92,7 @@
|
||||
"chai-as-promised": "~4.1.0",
|
||||
"chai": "~1.8.1",
|
||||
"node-static": "~0.7.2",
|
||||
"q": "~1.0.0"
|
||||
"q": "~1.0.0",
|
||||
"unorm": "1.3.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,19 +1,20 @@
|
||||
"use strict";
|
||||
|
||||
var setup = require("../../common/setup-base"),
|
||||
desired = require('./desired');
|
||||
desired = require('./desired'),
|
||||
unorm = require('unorm');
|
||||
|
||||
// TODO: check why this doesn't work
|
||||
describe('testapp - accented characters @skip-ios-all', function () {
|
||||
var driver;
|
||||
setup(this, desired).then(function (d) { driver = d; });
|
||||
|
||||
it('should send accented text', function (done) {
|
||||
var testText = unorm.nfd("é Œ ù ḍ");
|
||||
driver
|
||||
.elementsByTagName('textField').at(1)
|
||||
.sendKeys("é Œ ù ḍ")
|
||||
.sendKeys(testText)
|
||||
.text()
|
||||
.should.become("é Œ ù ḍ")
|
||||
.should.become(testText)
|
||||
.nodeify(done);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user