|
|
@ -3,7 +3,7 @@ import { DashboardPage } from '../pages/Dashboard'; |
|
|
|
import { ToolbarPage } from '../pages/Dashboard/common/Toolbar'; |
|
|
|
import { ToolbarPage } from '../pages/Dashboard/common/Toolbar'; |
|
|
|
import setup from '../setup'; |
|
|
|
import setup from '../setup'; |
|
|
|
|
|
|
|
|
|
|
|
test.describe('Mobile Mode', () => { |
|
|
|
test.describe.only('Mobile Mode', () => { |
|
|
|
let dashboard: DashboardPage; |
|
|
|
let dashboard: DashboardPage; |
|
|
|
let context: any; |
|
|
|
let context: any; |
|
|
|
let toolbar: ToolbarPage; |
|
|
|
let toolbar: ToolbarPage; |
|
|
@ -15,18 +15,27 @@ test.describe('Mobile Mode', () => { |
|
|
|
toolbar = dashboard.grid.toolbar; |
|
|
|
toolbar = dashboard.grid.toolbar; |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
test('activating Mobile Mode results in hiding some menu items and only showing the icons of menu items', async () => { |
|
|
|
|
|
|
|
await dashboard.verifyTeamAndSettingsLinkIsVisible(); |
|
|
|
|
|
|
|
await dashboard.toggleMobileMode(); |
|
|
|
|
|
|
|
await dashboard.verifyTeamAndSettingsLinkIsNotVisible(); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// test('displays Toggle Mobile Mode menu item in correct location and with correct label', async () => {
|
|
|
|
// test('displays Toggle Mobile Mode menu item in correct location and with correct label', async () => {
|
|
|
|
// const mobileModeButton = await homePage.getMobileModeButton();
|
|
|
|
// const mobileModeButton = await homePage.getMobileModeButton();
|
|
|
|
// expect(await mobileModeButton.isVisible()).toBeTruthy();
|
|
|
|
// expect(await mobileModeButton.isVisible()).toBeTruthy();
|
|
|
|
// expect(await mobileModeButton.innerText()).toEqual('Toggle Mobile Mode');
|
|
|
|
// expect(await mobileModeButton.innerText()).toEqual('Toggle Mobile Mode');
|
|
|
|
// });
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
test('activating Mobile Mode results in hiding some menu items and only showing the icons of menu items', async () => { |
|
|
|
|
|
|
|
await dashboard.verifyTeamAndSettingsLinkIsVisible(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await dashboard.treeView.createTable({ title: 'test-table-for-mobile-mode' }); |
|
|
|
|
|
|
|
// await dashboard.rootPage.pause();
|
|
|
|
|
|
|
|
// await toolbar.fields.verifyVisibleWithIconAndText();
|
|
|
|
|
|
|
|
await toolbar.verifyFieldsButtonIsVisibleWithTextAndIcon(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await dashboard.toggleMobileMode(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await dashboard.verifyTeamAndSettingsLinkIsNotVisible(); |
|
|
|
|
|
|
|
await toolbar.verifyFieldsButtonIsVisibleWithoutTextButIcon(); |
|
|
|
|
|
|
|
// await dashboard
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
// test('changes appearance of menu bars when Toggle Mobile Mode is clicked', async () => {
|
|
|
|
// test('changes appearance of menu bars when Toggle Mobile Mode is clicked', async () => {
|
|
|
|
// await homePage.toggleMobileMode();
|
|
|
|
// await homePage.toggleMobileMode();
|
|
|
|
// expect(await homePage.menuBarHasMobileModeAppearance()).toBeTruthy();
|
|
|
|
// expect(await homePage.menuBarHasMobileModeAppearance()).toBeTruthy();
|
|
|
|