mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-14 00:24:28 +02:00
locale command test too
This commit is contained in:
parent
dd4bec0597
commit
5e2640a0d9
1 changed files with 23 additions and 0 deletions
23
src/__tests__/casperjs/locale_comand_test.js
Normal file
23
src/__tests__/casperjs/locale_comand_test.js
Normal file
|
@ -0,0 +1,23 @@
|
|||
var CasperUtils = require('./casperUtils').CasperUtils;
|
||||
|
||||
casper.start(
|
||||
CasperUtils.getUrlForCommands([
|
||||
'locale fr_FR',
|
||||
]),
|
||||
function() {
|
||||
this.test.assertTitle('Learn Git Branching');
|
||||
|
||||
casper.waitFor(CasperUtils.waits.jsMount)
|
||||
.then(CasperUtils.waits.allCommandsFinished)
|
||||
.then(CasperUtils.asserts.intlKeyReturns(
|
||||
'learn-git-branching',
|
||||
"Apprenez Git Branching"
|
||||
))
|
||||
.then(CasperUtils.asserts.selectorContainsText(
|
||||
'span[data-intl="learn-git-branching"]',
|
||||
"APPRENEZ GIT BRANCHING"
|
||||
))
|
||||
.then(CasperUtils.screenshot.entirePage)
|
||||
.then(CasperUtils.testDone);
|
||||
|
||||
}).run();
|
Loading…
Add table
Add a link
Reference in a new issue