Implement simple spellchecker

This commit is contained in:
Yuya Ochiai
2017-04-20 21:32:34 +09:00
parent 4d884a217a
commit 84d0ec432a
15 changed files with 312 additions and 13 deletions

View File

@@ -200,6 +200,24 @@ describe('browser/settings.html', function desc() {
isExisting('#inputShowUnreadBadge').then((existing) => existing.should.equal(expected));
});
});
describe('Check spelling', () => {
it('should appear and be selectable', () => {
env.addClientCommands(this.app.client);
return this.app.client.
loadSettingsPage().
isExisting('#selectSpellCheckerLocale').then((existing) => existing.should.equal(true)).
scroll('#selectSpellCheckerLocale').
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');
});
});
});
});
describe('RemoveServerModal', () => {