Skip to content

Commit dc63134

Browse files
author
Guillaume Chau
committed
Added tests
1 parent 0ad224a commit dc63134

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

shells/dev/target/Other.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</template>
77

88
<script>
9-
// this computed property should be visible
9+
// this computed property should be visible
1010
// even if component has no 'computed' defined
1111
const computedPropMixin = {
1212
computed: {
@@ -17,6 +17,7 @@ const computedPropMixin = {
1717
}
1818
1919
export default {
20+
name: 'other-with-mine',
2021
props: ['id'],
2122
mixins: [ computedPropMixin ],
2223
data () {

test/specs/test.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ module.exports = {
4343
.assert.containsText('.data-el.data .data-field:nth-child(4)', 'NaN')
4444
.assert.containsText('.data-el.data .data-field:nth-child(1)', 'Infinity')
4545

46+
// Classify names
47+
.assert.containsText('.instance .instance:nth-child(3)', 'OtherWithMine')
48+
.click('.button.classify-names')
49+
.assert.containsText('.instance .instance:nth-child(3)', 'other-with-mine')
50+
.click('.button.classify-names')
51+
.assert.containsText('.instance .instance:nth-child(3)', 'OtherWithMine')
52+
4653
// expand child instance
4754
.click('.instance .instance:nth-child(2) .arrow-wrapper')
4855
.assert.count('.instance', baseInstanceCount + 2)

0 commit comments

Comments
 (0)