diff --git a/examples/basic/app.js b/examples/basic/app.js
index 2dbc4b65d..bafe7cbfb 100644
--- a/examples/basic/app.js
+++ b/examples/basic/app.js
@@ -10,6 +10,7 @@ Vue.use(VueRouter)
const Home = { template: '
home
' }
const Foo = { template: 'foo
' }
const Bar = { template: 'bar
' }
+const Unicode = { template: 'unicode
' }
// 3. Create the router
const router = new VueRouter({
@@ -18,7 +19,8 @@ const router = new VueRouter({
routes: [
{ path: '/', component: Home },
{ path: '/foo', component: Foo },
- { path: '/bar', component: Bar }
+ { path: '/bar', component: Bar },
+ { path: '/é', component: Unicode }
]
})
@@ -37,6 +39,7 @@ new Vue({
/bar
+ /é
diff --git a/test/e2e/specs/basic.js b/test/e2e/specs/basic.js
index 266d6033e..588a98ac8 100644
--- a/test/e2e/specs/basic.js
+++ b/test/e2e/specs/basic.js
@@ -1,15 +1,16 @@
module.exports = {
- 'basic': function (browser) {
+ basic: function (browser) {
browser
.url('http://localhost:8080/basic/')
.waitForElementVisible('#app', 1000)
- .assert.count('li', 4)
- .assert.count('li a', 4)
+ .assert.count('li', 5)
+ .assert.count('li a', 5)
// assert correct href with base
.assert.attributeContains('li:nth-child(1) a', 'href', '/basic/')
.assert.attributeContains('li:nth-child(2) a', 'href', '/basic/foo')
.assert.attributeContains('li:nth-child(3) a', 'href', '/basic/bar')
.assert.attributeContains('li:nth-child(4) a', 'href', '/basic/bar')
+ .assert.attributeContains('li:nth-child(5) a', 'href', '/basic/%C3%A9')
.assert.containsText('.view', 'home')
.click('li:nth-child(2) a')
@@ -28,10 +29,17 @@ module.exports = {
.assert.urlEquals('http://localhost:8080/basic/bar')
.assert.containsText('.view', 'bar')
- // check initial visit
+ .click('li:nth-child(5) a')
+ .assert.urlEquals('http://localhost:8080/basic/%C3%A9')
+ .assert.containsText('.view', 'unicode')
+
+ // check initial visit
.url('http://localhost:8080/basic/foo')
.waitForElementVisible('#app', 1000)
.assert.containsText('.view', 'foo')
+ .url('http://localhost:8080/basic/%C3%A9')
+ .waitForElementVisible('#app', 1000)
+ .assert.containsText('.view', 'unicode')
.end()
}
}