|
|
|
@ -7,7 +7,7 @@ import { checkIfUserIsValid } from '../../data/checks'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// skipping this since the main content its not moved anymore, instead there is a overlay of the side nav over the main content
|
|
|
|
|
describe.skip('[Resolution]', () => { |
|
|
|
|
describe('[Resolution]', () => { |
|
|
|
|
describe('[Mobile Render]', () => { |
|
|
|
|
before(() => { |
|
|
|
|
checkIfUserIsValid(username, email, password); |
|
|
|
@ -17,15 +17,13 @@ describe.skip('[Resolution]', () => { |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
after(() => { |
|
|
|
|
Global.setWindowSize(1450, 900); |
|
|
|
|
sideNav.preferencesClose.waitForVisible(5000); |
|
|
|
|
sideNav.preferencesClose.click(); |
|
|
|
|
sideNav.spotlightSearch.waitForVisible(5000); |
|
|
|
|
Global.setWindowSize(1600, 1600); |
|
|
|
|
sideNav.spotlightSearchIcon.waitForVisible(5000); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
describe('moving elements:', () => { |
|
|
|
|
it('it should close de sidenav', () => { |
|
|
|
|
mainContent.mainContent.getLocation().should.deep.equal({ x:0, y:0 }); |
|
|
|
|
mainContent.mainContent.getLocation().should.deep.include({ x:0 }); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
it('it should press the navbar button', () => { |
|
|
|
@ -33,7 +31,7 @@ describe.skip('[Resolution]', () => { |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
it('it should open de sidenav', () => { |
|
|
|
|
mainContent.mainContent.getLocation().should.not.deep.equal({ x:0, y:0 }); |
|
|
|
|
mainContent.mainContent.getLocation().should.not.deep.equal({ x:0 }); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
it('it should open general channel', () => { |
|
|
|
@ -41,7 +39,7 @@ describe.skip('[Resolution]', () => { |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
it('it should close de sidenav', () => { |
|
|
|
|
mainContent.mainContent.getLocation().should.deep.equal({ x:0, y:0 }); |
|
|
|
|
mainContent.mainContent.getLocation().should.deep.include({ x:0 }); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
it('it should press the navbar button', () => { |
|
|
|
@ -49,9 +47,9 @@ describe.skip('[Resolution]', () => { |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
it('it should open the user preferences screen', () => { |
|
|
|
|
sideNav.accountMenu.waitForVisible(5000); |
|
|
|
|
sideNav.accountMenu.click(); |
|
|
|
|
sideNav.account.waitForVisible(5000); |
|
|
|
|
sideNav.sidebarUserMenu.waitForVisible(); |
|
|
|
|
sideNav.sidebarUserMenu.click(); |
|
|
|
|
sideNav.account.waitForVisible(); |
|
|
|
|
sideNav.account.click(); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
@ -61,7 +59,7 @@ describe.skip('[Resolution]', () => { |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
it('it should close de sidenav', () => { |
|
|
|
|
mainContent.mainContent.getLocation().should.deep.equal({ x:0, y:0 }); |
|
|
|
|
mainContent.mainContent.getLocation().should.deep.include({ x:0 }); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
it('it should press the navbar button', () => { |
|
|
|
@ -74,20 +72,17 @@ describe.skip('[Resolution]', () => { |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
it('it should close de sidenav', () => { |
|
|
|
|
mainContent.mainContent.getLocation().should.deep.equal({ x:0, y:0 }); |
|
|
|
|
mainContent.mainContent.getLocation().should.deep.include({ x:0 }); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
it('it should press the navbar button', () => { |
|
|
|
|
sideNav.burgerBtn.click(); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
it('it should press the avatar link', () => { |
|
|
|
|
sideNav.avatar.waitForVisible(5000); |
|
|
|
|
sideNav.avatar.click(); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
it('it should close de sidenav', () => { |
|
|
|
|
mainContent.mainContent.getLocation().should.deep.equal({ x:0, y:0 }); |
|
|
|
|
sideNav.preferencesClose.waitForVisible(5000); |
|
|
|
|
sideNav.preferencesClose.click(); |
|
|
|
|
sideNav.sidebarWrap.click(); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
it('it should press the navbar button', () => { |
|
|
|
|