Skip to content

Commit 8df4123

Browse files
committed
test(e2e): add more space to scroll behavior test
1 parent fc42d9c commit 8df4123

File tree

3 files changed

+18
-14
lines changed

3 files changed

+18
-14
lines changed

Diff for: examples/scroll-behavior/app.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ const Bar = {
99
template: `
1010
<div class="bar">
1111
bar
12-
<div style="height:500px"></div>
12+
<div style="height:1500px"></div>
1313
<p id="anchor" style="height:500px">Anchor</p>
14-
<p id="anchor2">Anchor2</p>
14+
<p id="anchor2" style="height:500px">Anchor2</p>
15+
<p id="1number">with number</p>
1516
</div>
1617
`
1718
}

Diff for: examples/scroll-behavior/index.html

+14-12
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
<!DOCTYPE html>
2-
<link rel="stylesheet" href="/global.css">
2+
<link rel="stylesheet" href="/global.css" />
33
<style>
4-
.fade-enter-active, .fade-leave-active {
5-
transition: opacity .5s ease;
6-
}
7-
.fade-enter, .fade-leave-active {
8-
opacity: 0
9-
}
10-
.view {
11-
border: 1px solid red;
12-
height: 2000px;
13-
position: relative;
14-
}
4+
.fade-enter-active,
5+
.fade-leave-active {
6+
transition: opacity 0.5s ease;
7+
}
8+
.fade-enter,
9+
.fade-leave-active {
10+
opacity: 0;
11+
}
12+
.view {
13+
border: 1px solid red;
14+
height: 3500px;
15+
position: relative;
16+
}
1517
</style>
1618
<a href="/">&larr; Examples index</a>
1719
<div id="app"></div>

Diff for: test/e2e/runner.js

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
*
1313
* If you are already running the dev server with `yarn run serve`, you can pass the --dev option to avoid launching the server
1414
* $ node test/e2e/runner.js --dev
15+
* **Make sure to pass the option at the end**
1516
*
1617
* __For maintainers only__
1718
* You can trigger tests on Browserstack on other browsers by passing the --local option

0 commit comments

Comments
 (0)