Skip to content

Commit 9f92a76

Browse files
committed
test(e2e): check for methods lines number in template Docstrap
1 parent 2872d0c commit 9f92a76

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

cypress/integration/renderers/docstrap.spec.js

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,26 @@ describe('Renderers: docstrap', () => {
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+
.parent()
108+
.next('dd')
109+
.find('.details')
110+
.find('a[href="BetterCounter.vue.html#sunlight-1-line-43"]', 'line 43');
111+
112+
cy.get('#increment')
113+
.contains('increment()')
114+
.parent()
115+
.next('dd')
116+
.find('.details')
117+
.find('a[href="BetterCounter.vue.html#sunlight-1-line-36"]', 'line 36');
118+
119+
cy.get('#showDialog')
120+
.contains('showDialog(counter)')
121+
.parent()
122+
.next('dd')
123+
.find('.details')
124+
.find('a[href="BetterCounter.vue.html#sunlight-1-line-51"]', 'line 51');
108125

109126
cy.contains('created()').should('not.exist');
110127
});

0 commit comments

Comments
 (0)