Add context menu to select spelling language

This commit is contained in:
Yuya Ochiai
2017-04-27 00:42:48 +09:00
parent 3a9227f974
commit 256e317402
10 changed files with 103 additions and 44 deletions

View File

@@ -206,15 +206,13 @@ describe('browser/settings.html', function desc() {
env.addClientCommands(this.app.client);
return this.app.client.
loadSettingsPage().
isExisting('#selectSpellCheckerLocale').then((existing) => existing.should.equal(true)).
scroll('#selectSpellCheckerLocale').
isExisting('#inputSpellChecker').then((existing) => existing.should.equal(true)).
scroll('#inputSpellChecker').
click('#inputSpellChecker').
element('#selectSpellCheckerLocale').selectByVisibleText('French').
pause(700).
then(() => {
const config1 = JSON.parse(fs.readFileSync(env.configFilePath, 'utf-8'));
config1.useSpellChecker.should.equal(true);
config1.spellCheckerLocale.should.equal('fr-FR');
});
});
});