Browse Source

test: cy markers for project menu

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/3133/head
Raju Udava 2 years ago
parent
commit
ffb9cecf6d
  1. 2
      packages/nc-gui-v2/layouts/base.vue
  2. 16
      packages/nc-gui-v2/pages/nc/[projectId]/index.vue

2
packages/nc-gui-v2/layouts/base.vue

@ -25,7 +25,7 @@ const logout = () => {
v-if=" v-if="
route.name === 'index' || route.name === 'project-index-create' || route.name === 'project-index-create-external' route.name === 'index' || route.name === 'project-index-create' || route.name === 'project-index-create-external'
" "
class="transition-all duration-200 p-2 cursor-pointer transform hover:scale-105" class="transition-all duration-200 p-2 cursor-pointer transform hover:scale-105 nc-noco-brand-icon"
@click="navigateTo('/')" @click="navigateTo('/')"
> >
<img width="35" alt="NocoDB" src="~/assets/img/icons/512x512-trans.png" /> <img width="35" alt="NocoDB" src="~/assets/img/icons/512x512-trans.png" />

16
packages/nc-gui-v2/pages/nc/[projectId]/index.vue

@ -69,7 +69,7 @@ await loadTables()
<div <div
:style="{ width: isOpen ? 'calc(100% - 40px) pr-2' : '100%' }" :style="{ width: isOpen ? 'calc(100% - 40px) pr-2' : '100%' }"
:class="[isOpen ? '' : 'justify-center']" :class="[isOpen ? '' : 'justify-center']"
class="group cursor-pointer flex gap-4 items-center" class="group cursor-pointer flex gap-4 items-center nc-project-menu"
> >
<template v-if="isOpen"> <template v-if="isOpen">
<div class="text-xl font-semibold truncate">{{ project.title }}</div> <div class="text-xl font-semibold truncate">{{ project.title }}</div>
@ -102,7 +102,7 @@ await loadTables()
<a-menu-item key="copy"> <a-menu-item key="copy">
<div class="nc-project-menu-item group"> <div class="nc-project-menu-item group">
<MdiContentCopy class="group-hover:text-pink-500" /> <MdiContentCopy class="group-hover:text-pink-500 nc-copy-project-info" />
Copy Project Info Copy Project Info
</div> </div>
</a-menu-item> </a-menu-item>
@ -114,7 +114,7 @@ await loadTables()
class="nc-project-menu-item group" class="nc-project-menu-item group"
@click.stop="openLink(`/api/v1/db/meta/projects/${route.params.projectId}/swagger`)" @click.stop="openLink(`/api/v1/db/meta/projects/${route.params.projectId}/swagger`)"
> >
<MdiApi class="group-hover:text-pink-500" /> <MdiApi class="group-hover:text-pink-500 nc-swagger-api-docs" />
Swagger: Rest APIs Swagger: Rest APIs
</div> </div>
</a-menu-item> </a-menu-item>
@ -128,7 +128,7 @@ await loadTables()
class="nc-project-menu-item group" class="nc-project-menu-item group"
@click="toggleDialog(true, 'teamAndAuth')" @click="toggleDialog(true, 'teamAndAuth')"
> >
<MdiAccountGroup class="group-hover:text-pink-500" /> <MdiAccountGroup class="group-hover:text-pink-500 nc-team-and-auth" />
Team & Auth Team & Auth
</div> </div>
</a-menu-item> </a-menu-item>
@ -140,7 +140,7 @@ await loadTables()
class="nc-project-menu-item group" class="nc-project-menu-item group"
@click="toggleDialog(true, 'appStore')" @click="toggleDialog(true, 'appStore')"
> >
<MdiStore class="group-hover:text-pink-500" /> <MdiStore class="group-hover:text-pink-500 nc-app-store" />
App Store App Store
</div> </div>
</a-menu-item> </a-menu-item>
@ -152,7 +152,7 @@ await loadTables()
class="nc-project-menu-item group" class="nc-project-menu-item group"
@click="toggleDialog(true, 'metaData')" @click="toggleDialog(true, 'metaData')"
> >
<MdiTableBorder class="group-hover:text-pink-500" /> <MdiTableBorder class="group-hover:text-pink-500 nc-meta-data" />
Project Metadata Project Metadata
</div> </div>
</a-menu-item> </a-menu-item>
@ -164,7 +164,7 @@ await loadTables()
class="nc-project-menu-item group" class="nc-project-menu-item group"
@click="toggleDialog(true, 'audit')" @click="toggleDialog(true, 'audit')"
> >
<MdiNotebookCheckOutline class="group-hover:text-pink-500" /> <MdiNotebookCheckOutline class="group-hover:text-pink-500 nc-audit" />
Audit Audit
</div> </div>
</a-menu-item> </a-menu-item>
@ -174,7 +174,7 @@ await loadTables()
<a-sub-menu key="preview-as"> <a-sub-menu key="preview-as">
<template #title> <template #title>
<div class="nc-project-menu-item group"> <div class="nc-project-menu-item group">
<MdiContentCopy class="group-hover:text-pink-500" /> <MdiContentCopy class="group-hover:text-pink-500 nc-project-preview" />
Preview Project As Preview Project As
<div class="flex-1" /> <div class="flex-1" />

Loading…
Cancel
Save