Skip to content

Commit

Permalink
test(e2e): add more space to scroll behavior test
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Jul 8, 2019
1 parent fc42d9c commit 8df4123
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 14 deletions.
5 changes: 3 additions & 2 deletions examples/scroll-behavior/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ const Bar = {
template: `
<div class="bar">
bar
<div style="height:500px"></div>
<div style="height:1500px"></div>
<p id="anchor" style="height:500px">Anchor</p>
<p id="anchor2">Anchor2</p>
<p id="anchor2" style="height:500px">Anchor2</p>
<p id="1number">with number</p>
</div>
`
}
Expand Down
26 changes: 14 additions & 12 deletions examples/scroll-behavior/index.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
<!DOCTYPE html>
<link rel="stylesheet" href="/global.css">
<link rel="stylesheet" href="/global.css" />
<style>
.fade-enter-active, .fade-leave-active {
transition: opacity .5s ease;
}
.fade-enter, .fade-leave-active {
opacity: 0
}
.view {
border: 1px solid red;
height: 2000px;
position: relative;
}
.fade-enter-active,
.fade-leave-active {
transition: opacity 0.5s ease;
}
.fade-enter,
.fade-leave-active {
opacity: 0;
}
.view {
border: 1px solid red;
height: 3500px;
position: relative;
}
</style>
<a href="/">&larr; Examples index</a>
<div id="app"></div>
Expand Down
1 change: 1 addition & 0 deletions test/e2e/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*
* If you are already running the dev server with `yarn run serve`, you can pass the --dev option to avoid launching the server
* $ node test/e2e/runner.js --dev
* **Make sure to pass the option at the end**
*
* __For maintainers only__
* You can trigger tests on Browserstack on other browsers by passing the --local option
Expand Down

0 comments on commit 8df4123

Please sign in to comment.