mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-09 22:24:26 +02:00
alright that should be most things
This commit is contained in:
parent
fd353911c5
commit
a1029e8f96
1 changed files with 6 additions and 10 deletions
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue