Browse Source

Merge pull request #7250 from nocodb/chore/snos

fix: selector and css
pull/7260/head
mertmit 12 months ago committed by GitHub
parent
commit
aee87e62d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      packages/nc-gui/components/cell/TextArea.vue
  2. 2
      tests/playwright/pages/Dashboard/ProjectView/AccessSettingsPage.ts
  3. 4
      tests/playwright/pages/WorkspacePage/CollaborationPage.ts

6
packages/nc-gui/components/cell/TextArea.vue

@ -302,4 +302,10 @@ textarea:focus {
.cell:hover .nc-text-area-expand-btn { .cell:hover .nc-text-area-expand-btn {
@apply !block; @apply !block;
} }
.rich-wrapper:hover,
.rich-wrapper:active {
:deep(.nc-text-area-expand-btn) {
@apply !block cursor-pointer;
}
}
</style> </style>

2
tests/playwright/pages/Dashboard/ProjectView/AccessSettingsPage.ts

@ -24,7 +24,7 @@ export class AccessSettingsPage extends BasePage {
if (userEmail === email) { if (userEmail === email) {
const roleDropdown = user.locator('.nc-roles-selector'); const roleDropdown = user.locator('.nc-roles-selector');
const selectedRole = await user.locator('.nc-roles-selector .badge-text').innerText(); const selectedRole = await user.locator('.nc-roles-selector').innerText();
await roleDropdown.click(); await roleDropdown.click();
const menu = this.rootPage.locator('.nc-role-select-dropdown:visible'); const menu = this.rootPage.locator('.nc-role-select-dropdown:visible');

4
tests/playwright/pages/WorkspacePage/CollaborationPage.ts

@ -19,7 +19,7 @@ export class CollaborationPage extends BasePage {
this.workspace = workspace; this.workspace = workspace;
this.button_addUser = this.get().locator('button.ant-btn.ant-btn-primary'); this.button_addUser = this.get().locator('button.ant-btn.ant-btn-primary');
this.input_email = this.get().locator('input[id="email"]'); this.input_email = this.get().locator('input[id="email"]');
this.selector_role = this.get().locator('[data-testid="invite"] >> [data-testid="roles"]'); this.selector_role = this.get().locator('.ant-select-selector');
this.list_collaborators = this.get().locator('.nc-collaborators-list-table'); this.list_collaborators = this.get().locator('.nc-collaborators-list-table');
} }
@ -41,7 +41,7 @@ export class CollaborationPage extends BasePage {
// role // role
await this.selector_role.click(); await this.selector_role.click();
const menu = this.rootPage.locator('.nc-role-select-dropdown:visible'); const menu = this.rootPage.locator('.nc-role-select-dropdown:visible');
await menu.locator(`.nc-role-select-workspace-level-${role.toLowerCase()}:visible`).click(); await menu.locator(`.nc-role-select-workspace-level-${role.toLowerCase()}:visible`).first().click();
// submit // submit

Loading…
Cancel
Save