Passed
Push — develop ( acc51d...b423f4 )
by Bastien
01:55
created

functionnal_tests/cypress/integration/sidebar/presence_sidebar_allcontent.js   A

Complexity

Total Complexity 4
Complexity/F 1

Size

Lines of Code 20
Function Count 4

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 0
wmc 4
eloc 15
nc 1
mnd 0
bc 4
fnc 4
dl 0
loc 20
rs 10
bpm 1
cpm 1
noi 3
c 0
b 0
f 0
1
describe('content :: home_page', function () {
2
  before(() => {
3
    cy.resetDB()
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...
4
    cy.setupBaseDB()
5
  })
6
7
  beforeEach(function () {
8
    cy.login('users')
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.visit('/ui')
10
    cy.get('.sidebar__content__navigation__workspace__item__number').click()
11
  })
12
  it('', function () {
13
    cy.get('.sidebar__content .fa-chevron-up').should('be.visible')
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('li').contains('All Contents').should('have.attr', 'href', '/ui/workspaces/1/contents')
15
    cy.get('.fa-th').should('be.visible')
16
    cy.get('.fa-th').click()
17
    cy.url().should('include', '/workspaces/1/contents')
18
    cy.get('.workspace__header.pageTitleGeneric').should('be.visible')
19
  })
20
})
21