Skip to content

Commit 9528abf

Browse files
committed
test(e2e): check for methods lines number in template Tui
1 parent 0ef5f66 commit 9528abf

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

cypress/integration/renderers/tui.spec.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,17 @@ describe('Renderers: tui', () => {
102102

103103
it('should render methods properly', () => {
104104
cy.contains('h3', 'Methods').should('have.attr', 'class', 'subsection-title');
105-
cy.get('#decrement').contains('decrement()');
106-
cy.get('#increment').contains('increment()');
107-
cy.get('#showDialog').contains('showDialog(counter)');
105+
cy.get('#decrement')
106+
.contains('decrement()')
107+
.contains('a[href="BetterCounter.vue.html#line43"]', 'line 43');
108+
109+
cy.get('#increment')
110+
.contains('increment()')
111+
.contains('a[href="BetterCounter.vue.html#line36"]', 'line 36');
112+
113+
cy.get('#showDialog')
114+
.contains('showDialog(counter)')
115+
.contains('a[href="BetterCounter.vue.html#line51"]', 'line 51');
108116

109117
cy.contains('created()').should('not.exist');
110118
});

0 commit comments

Comments
 (0)