Browse Source

chore(nc-gui,tests): click brand icon to move to project list

pull/3933/head
braks 2 years ago
parent
commit
801fe85fb7
  1. 1
      packages/nc-gui/layouts/base.vue
  2. 1
      packages/nc-gui/pages/[projectType]/[projectId]/index.vue
  3. 2
      scripts/cypress/integration/common/6h_change_password.js

1
packages/nc-gui/layouts/base.vue

@ -44,6 +44,7 @@ hooks.hook('page:finish', () => {
<div
v-if="!route.params.projectType"
v-e="['c:navbar:home']"
data-cy="nc-noco-brand-icon"
class="transition-all duration-200 p-2 cursor-pointer transform hover:scale-105 nc-noco-brand-icon"
@click="navigateTo('/')"
>

1
packages/nc-gui/pages/[projectType]/[projectId]/index.vue

@ -192,6 +192,7 @@ onBeforeUnmount(reset)
<div
v-if="isOpen && !isSharedBase"
v-e="['c:navbar:home']"
data-cy="nc-noco-brand-icon"
class="w-[40px] min-w-[40px] transition-all duration-200 p-1 cursor-pointer transform hover:scale-105 nc-noco-brand-icon"
@click="navigateTo('/')"
>

2
scripts/cypress/integration/common/6h_change_password.js

@ -8,6 +8,8 @@ export const genTest = (apiType, dbType) => {
describe('User settings test', () => {
it('Visit user settings', () => {
cy.get("[data-cy='nc-noco-brand-icon']").click();
cy.get("[data-cy='nc-menu-accounts']").click();
cy.get("[data-cy='nc-menu-accounts__user-settings']").click();

Loading…
Cancel
Save