Passed
Push — develop ( de30ca...419b4a )
by
unknown
01:34
created

functionnal_tests/cypress_test/home_page/content_home_page.js   A

Complexity

Total Complexity 4
Complexity/F 1

Size

Lines of Code 22
Function Count 4

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
eloc 17
c 1
b 0
f 0
nc 1
dl 0
loc 22
rs 10
wmc 4
mnd 0
bc 4
fnc 4
bpm 1
cpm 1
noi 3

1 Function

Rating   Name   Duplication   Size   Complexity  
A content_home_page.js ➔ describe(ꞌcontent :: home_pageꞌ) 0 20 1
1
import { login } from '../helpers/index.js'
2
3
describe('content :: home_page', function () {
4
    before(function () {
5
        login(cy)
0 ignored issues
show
Bug introduced by
The variable cy seems to be never declared. If this is a global, consider adding a /** global: cy */ comment.

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.

Loading history...
6
    })
7
    after(function() {
8
        cy.get('#dropdownMenuButton').click()
0 ignored issues
show
Bug introduced by
The variable cy seems to be never declared. If this is a global, consider adding a /** global: cy */ comment.

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.

Loading history...
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()
0 ignored issues
show
Bug introduced by
The variable cy seems to be never declared. If this is a global, consider adding a /** global: cy */ comment.

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.

Loading history...
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