Browse Source

fix: small changes

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/7250/head
mertmit 7 months ago
parent
commit
841e753a97
  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 {
@apply !block;
}
.rich-wrapper:hover,
.rich-wrapper:active {
:deep(.nc-text-area-expand-btn) {
@apply !block cursor-pointer;
}
}
</style>

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

@ -24,7 +24,7 @@ export class AccessSettingsPage extends BasePage {
if (userEmail === email) {
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();
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.button_addUser = this.get().locator('button.ant-btn.ant-btn-primary');
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');
}
@ -41,7 +41,7 @@ export class CollaborationPage extends BasePage {
// role
await this.selector_role.click();
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

Loading…
Cancel
Save