Skip to content

Commit

Permalink
test(e2e): use correct links in hash mode
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Jun 14, 2021
1 parent ced0242 commit 6f61bd0
Show file tree
Hide file tree
Showing 3 changed files with 184 additions and 154 deletions.
15 changes: 5 additions & 10 deletions e2e/specs/hash.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,15 @@ module.exports = {

'@tags': ['hash', 'encoding'],

/** @type {import('nightwatch').NightwatchTest} */
'navigating to links': function (browser) {
browser
.url(baseURL)
.waitForElementPresent('#app > *', 1000)
.assert.attributeContains('li:nth-child(1) a', 'href', '/hash/#/')
.assert.attributeContains('li:nth-child(2) a', 'href', '/hash/#/foo')
.assert.attributeContains('li:nth-child(3) a', 'href', '/hash/#/bar')
.assert.attributeContains('li:nth-child(4) a', 'href', '/hash/#/n/%C3%A9')
.assert.attributeContains(
'li:nth-child(6) a',
'href',
'/hash/#/unicode/%C3%A9'
)
.assert.attributeContains('li:nth-child(1) a', 'href', '#/')
.assert.attributeContains('li:nth-child(2) a', 'href', '#/foo')
.assert.attributeContains('li:nth-child(3) a', 'href', '#/bar')
.assert.attributeContains('li:nth-child(4) a', 'href', '#/n/%C3%A9')
.assert.attributeContains('li:nth-child(6) a', 'href', '#/unicode/%C3%A9')
.click('li:nth-child(3) a')
.assert.urlEquals(baseURL + '/bar')
.assert.containsText('.view', 'Bar')
Expand Down
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"attributes": "vetur/attributes.json"
},
"dependencies": {
"@vue/devtools-api": "^6.0.0-beta.12"
"@vue/devtools-api": "^6.0.0-beta.14"
},
"devDependencies": {
"@microsoft/api-extractor": "7.8.1",
Expand All @@ -71,17 +71,17 @@
"@rollup/plugin-replace": "^2.4.0",
"@sucrase/jest-plugin": "^2.1.0",
"@types/jest": "^26.0.21",
"@types/jsdom": "^16.2.7",
"@types/jsdom": "^16.2.11",
"@types/webpack": "^5.28.0",
"@types/webpack-env": "^1.16.0",
"@vue/compiler-sfc": "^3.0.7",
"@vue/server-renderer": "^3.0.7",
"@vue/compiler-sfc": "^3.1.1",
"@vue/server-renderer": "^3.1.1",
"@vue/test-utils": "^2.0.0-rc.3",
"axios": "^0.21.1",
"brotli": "^1.3.2",
"browserstack-local": "^1.4.5",
"chalk": "^4.1.0",
"chromedriver": "^90.0.0",
"chromedriver": "^91.0.0",
"codecov": "^3.8.2",
"conventional-changelog-cli": "^2.1.1",
"css-loader": "^5.1.3",
Expand All @@ -91,24 +91,24 @@
"jest": "^26.6.1",
"jest-mock-warn": "^1.1.0",
"lint-staged": "^11.0.0",
"nightwatch": "^1.6.4",
"nightwatch": "^1.7.3",
"nightwatch-helpers": "^1.2.0",
"prettier": "^2.3.0",
"rollup": "^2.50.5",
"prettier": "^2.3.1",
"rollup": "^2.51.2",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.30.0",
"selenium-server": "^3.141.59",
"serve-handler": "^6.1.3",
"style-loader": "^2.0.0",
"ts-loader": "^9.1.2",
"ts-loader": "^9.2.3",
"ts-node": "^10.0.0",
"typescript": "^4.2.3",
"vitepress": "^0.14.0",
"vitepress": "^0.14.1",
"vue": "^3.0.7",
"vue-loader": "^16.1.2",
"webpack": "^5.38.1",
"webpack-bundle-analyzer": "^4.4.0",
"webpack-cli": "^4.7.0",
"webpack-cli": "^4.7.2",
"webpack-dev-server": "^3.11.2",
"yorkie": "^2.0.0"
}
Expand Down

0 comments on commit 6f61bd0

Please sign in to comment.