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