Skip to content

Commit 0ef5f66

Browse files
committed
test(e2e): check for methods lines number in template Minami
1 parent 9f92a76 commit 0ef5f66

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

cypress/integration/renderers/minami.spec.js

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,23 @@ describe('Renderers: minami', () => {
106106

107107
it('should render methods properly', () => {
108108
cy.contains('h3', 'Methods').should('have.attr', 'class', 'subsection-title');
109-
cy.get('#decrement').contains('decrement()');
110-
cy.get('#increment').contains('increment()');
111-
cy.get('#showDialog').contains('showDialog(counter)');
109+
cy.get('#decrement')
110+
.contains('decrement()')
111+
.next('.description')
112+
.next('.details')
113+
.find('a[href="BetterCounter.vue.html#line43"]', 'line 43');
114+
115+
cy.get('#increment')
116+
.contains('increment()')
117+
.next('.description')
118+
.next('.details')
119+
.find('a[href="BetterCounter.vue.html#line36"]', 'line 36');
120+
121+
cy.get('#showDialog')
122+
.contains('showDialog(counter)')
123+
.next('.description')
124+
.next('.details')
125+
.find('a[href="BetterCounter.vue.html#line51"]', 'line 51');
112126

113127
cy.contains('created()').should('not.exist');
114128
});

0 commit comments

Comments
 (0)