|
@@ -6,25 +6,20 @@ context('Access Home', () => {
|
|
|
cy.fixture("user-admin.json").then(user => {
|
|
cy.fixture("user-admin.json").then(user => {
|
|
|
cy.login(user.username, user.password);
|
|
cy.login(user.username, user.password);
|
|
|
});
|
|
});
|
|
|
- // collapse sidebar
|
|
|
|
|
- cy.collapseSidebar(true);
|
|
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
it('Visit home', () => {
|
|
it('Visit home', () => {
|
|
|
cy.visit('/dummy');
|
|
cy.visit('/dummy');
|
|
|
cy.waitUntilSkeletonDisappear();
|
|
cy.waitUntilSkeletonDisappear();
|
|
|
- cy.get('.grw-personal-dropdown').as('dropdown').should('be.visible').click()
|
|
|
|
|
- cy.get('@dropdown').within(()=>{
|
|
|
|
|
- cy.getByTestid('personal-dropdown-menu').should('have.css', 'display', 'block');
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ cy.getByTestid('personal-dropdown-button').as('dropdown').should('be.visible').click()
|
|
|
cy.getByTestid('grw-personal-dropdown-menu-user-home').should('be.visible').click();
|
|
cy.getByTestid('grw-personal-dropdown-menu-user-home').should('be.visible').click();
|
|
|
- cy.waitUntilSkeletonDisappear();
|
|
|
|
|
|
|
|
|
|
- // eslint-disable-next-line cypress/no-unnecessary-waiting
|
|
|
|
|
- cy.wait(2000); // wait for calcViewHeight and rendering
|
|
|
|
|
|
|
+ cy.waitUntilSkeletonDisappear();
|
|
|
|
|
+ cy.collapseSidebar(true);
|
|
|
|
|
|
|
|
// for check download toc data
|
|
// for check download toc data
|
|
|
- cy.get('.toc-link', { timeout: 60000 }).should('be.visible');
|
|
|
|
|
|
|
+ // https://redmine.weseek.co.jp/issues/111384
|
|
|
|
|
+ // cy.get('.toc-link').should('be.visible');
|
|
|
|
|
|
|
|
// same screenshot is taken in access-to-page.spec
|
|
// same screenshot is taken in access-to-page.spec
|
|
|
cy.screenshot(`${ssPrefix}-visit-home`);
|
|
cy.screenshot(`${ssPrefix}-visit-home`);
|
|
@@ -41,9 +36,8 @@ context('Access User settings', () => {
|
|
|
cy.fixture("user-admin.json").then(user => {
|
|
cy.fixture("user-admin.json").then(user => {
|
|
|
cy.login(user.username, user.password);
|
|
cy.login(user.username, user.password);
|
|
|
});
|
|
});
|
|
|
- // collapse sidebar
|
|
|
|
|
- cy.collapseSidebar(true);
|
|
|
|
|
cy.visit('/me');
|
|
cy.visit('/me');
|
|
|
|
|
+ cy.collapseSidebar(true);
|
|
|
// hide fab // disable fab for sticky-events warning
|
|
// hide fab // disable fab for sticky-events warning
|
|
|
// cy.getByTestid('grw-fab-container').invoke('attr', 'style', 'display: none');
|
|
// cy.getByTestid('grw-fab-container').invoke('attr', 'style', 'display: none');
|
|
|
});
|
|
});
|