Skip to content

Commit 9d3023e

Browse files
committed
remove file upload and vue bootstrap lib from e2e-snapshots
1 parent cdd98b3 commit 9d3023e

File tree

4 files changed

+1
-33
lines changed

4 files changed

+1
-33
lines changed

examples/blogs__e2e-snapshots/app.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
/* eslint-disable no-console */
33
(function () {
44
Vue.use(Vuex)
5-
Vue.use(window['bootstrap-vue'])
65

76
function randomId () {
87
return Math.random().toString().substr(2, 10)

examples/blogs__e2e-snapshots/cypress/integration/ui-spec.js

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -100,25 +100,4 @@ describe('UI', () => {
100100
.snapshot({ name: 'todo-list with 2 completed items' })
101101
})
102102
})
103-
104-
it('uploads file with todos', () => {
105-
let testFile
106-
107-
// reads test data from JSON file, makes test File object
108-
cy.fixture('example.json').then(todos => {
109-
const text = JSON.stringify(todos)
110-
testFile = new File([text], 'example.json')
111-
})
112-
// sets test File object on the Vue component
113-
cy.window().its('app').then(app => {
114-
app.file = testFile
115-
})
116-
// triggers reading File object
117-
cy.get('#todo-file-upload').trigger('change')
118-
119-
// asserts that items from test JSON file have been
120-
// rendered correctly by the component
121-
getTodoItems().should('have.length', 4)
122-
getTodoItems().eq(1).find('.toggle').should('be.checked')
123-
})
124103
})

examples/blogs__e2e-snapshots/index.html

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
<head>
44
<meta charset="utf-8">
55
<title>Vue.js • TodoMVC</title>
6-
<link type="text/css" rel="stylesheet" href="https://unpkg.com/[email protected]/dist/css/bootstrap.min.css"/>
7-
<link type="text/css" rel="stylesheet" href="https://unpkg.com/[email protected]/dist/bootstrap-vue.css"/>
86
<link rel="stylesheet" href="https://unpkg.com/[email protected]/index.css">
97
<style>[v-cloak] { display: none; }</style>
108
</head>
@@ -34,13 +32,6 @@ <h1>todos</h1>
3432
</li>
3533
</ul>
3634
</section>
37-
<section class="file-upload">
38-
<p>
39-
<center>Upload JSON file with Todo items</center>
40-
</p>
41-
<b-form-file id="todo-file-upload" accept=".json"
42-
v-model="file" @change="uploadTodos"></b-form-file>
43-
</section>
4435
</section>
4536
<footer class="info">
4637
<p>Written by <a href="http://evanyou.me">Evan You</a></p>
@@ -51,7 +42,6 @@ <h1>todos</h1>
5142
<script src="https://unpkg.com/[email protected]/dist/vue.js"></script>
5243
<script src="https://unpkg.com/[email protected]/dist/vuex.js"></script>
5344
<script src="https://unpkg.com/[email protected]/dist/axios.min.js"></script>
54-
<script src="https://unpkg.com/[email protected]/dist/bootstrap-vue.js"></script>
5545
<script src="app.js"></script>
5646
</body>
5747
</html>

examples/blogs__e2e-snapshots/snapshots.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
"__version": "1.1.4",
2+
"__version": "1.4.2",
33
"adds numbers": {
44
"1": 5,
55
"2": 11,

0 commit comments

Comments
 (0)