mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-09 14:14:27 +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() {
|
||||
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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue