Implement simple spellchecker
This commit is contained in:
@@ -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', () => {
|
||||
|
Reference in New Issue
Block a user