alright that should be most things

This commit is contained in:
Peter Cottle 2015-04-04 11:52:10 -07:00
parent fd353911c5
commit a1029e8f96

View file

@ -15,10 +15,7 @@ casper.start(
.then(function() { .then(function() {
this.mouse.click('a.intl'); this.mouse.click('a.intl');
}) })
.waitFor(CasperUtils.waits.selectorVisible( .wait(500)
'a.english'
))
.wait(1000)
.then(CasperUtils.screenshot.entirePage) .then(CasperUtils.screenshot.entirePage)
.then(CasperUtils.asserts.visibleSelectors([ .then(CasperUtils.asserts.visibleSelectors([
'a.english', 'a.english',
@ -30,12 +27,11 @@ casper.start(
this.mouse.click('a.japanese'); this.mouse.click('a.japanese');
}) })
.wait(500) .wait(500)
.then(function() { .then(CasperUtils.screenshot.entirePage)
// Successfully changed locale .then(CasperUtils.asserts.selectorContainsText(
this.test.assertEvalEquals(function() { 'span[data-intl="learn-git-branching"]',
return debug_Intl_getLocale(); "日本語版リポジトリ"
}, 'ja'); ))
})
.then(CasperUtils.testDone); .then(CasperUtils.testDone);
}).run(); }).run();