| Total Complexity | 4 |
| Complexity/F | 1 |
| Lines of Code | 20 |
| Function Count | 4 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | describe('content :: home_page', function () { |
||
| 2 | before(() => { |
||
| 3 | cy.resetDB() |
||
|
|
|||
| 4 | cy.setupBaseDB() |
||
| 5 | }) |
||
| 6 | |||
| 7 | beforeEach(function () { |
||
| 8 | cy.login('users') |
||
| 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') |
||
| 14 | cy.get('li').contains('Files').should('have.attr', 'href', '/ui/workspaces/1/contents?type=file') |
||
| 15 | cy.get('.fa-paperclip').should('be.visible') |
||
| 16 | cy.get('.fa-paperclip').click() |
||
| 17 | cy.url().should('include', '/workspaces/1/contents?type=file') |
||
| 18 | cy.get('.workspace__header.pageTitleGeneric').should('be.visible') |
||
| 19 | }) |
||
| 20 | }) |
||
| 21 |
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.