Total Complexity | 4 |
Complexity/F | 1 |
Lines of Code | 22 |
Function Count | 4 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | import { login } from '../helpers/index.js' |
||
2 | |||
3 | describe('content :: home_page', function () { |
||
4 | before(function () { |
||
5 | login(cy) |
||
|
|||
6 | }) |
||
7 | after(function() { |
||
8 | cy.get('#dropdownMenuButton').click() |
||
9 | cy.get('div.setting__link').click() |
||
10 | cy.url().should('include', '/login') |
||
11 | }) |
||
12 | it ('', function () { |
||
13 | cy.get('#dropdownCreateBtn.workspace__header__btnaddcontent__label').click() |
||
14 | cy.get('.show .subdropdown__link__thread__icon').click() |
||
15 | cy.get('.createcontent__contentname').should('be.visible') |
||
16 | cy.get('.createcontent__form__input').should('have.attr', 'placeholder') |
||
17 | cy.get('.createcontent__form__input').type('thread1') |
||
18 | cy.get('.createcontent__form__input').should('have.attr', 'value', 'thread1') |
||
19 | cy.get('.cardPopup__close').click() |
||
20 | cy.get('.createcontent__contentname').should('not.be.visible') |
||
21 | }) |
||
22 | }) |
||
23 |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.