locale command test too

This commit is contained in:
Peter Cottle 2015-03-29 13:57:17 -07:00
parent dd4bec0597
commit 5e2640a0d9

View 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();