Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix(pw): test fail issue

Ramesh Mane90ae69d5271b
diff --git a/packages/nc-gui/components/roles/SelectorV2.vue b/packages/nc-gui/components/roles/SelectorV2.vue
index 4ee3da373c..a9190e0846 100644
--- a/packages/nc-gui/components/roles/SelectorV2.vue
+++ b/packages/nc-gui/components/roles/SelectorV2.vue
@@ -99,12 +99,13 @@ const roleSelectorOptions = computed<NcListItemType[]>(() => {
}"
:isLocked="!!newRole"
variant="default"
+ item-class-name="nc-role-select-dropdown"
:wrapper-class-name="`!h-auto nc-role-selector-dropdown ${!!newRole ? '!cursor-wait' : ''}`"
@update:value="onChangeRole"
@escape="onEsc"
>
<template #listItem="{ option }">
- <div class="w-full flex flex-col">
+ <div class="w-full flex flex-col" :class="`nc-role-select-${option.value}`">
<div class="w-full flex items-center justify-between">
<div class="flex items-center gap-2">
<GeneralIcon
diff --git a/tests/playwright/pages/WorkspacePage/CollaborationPage.ts b/tests/playwright/pages/WorkspacePage/CollaborationPage.ts
index c7ece7c701..5439ab31fe 100644
--- a/tests/playwright/pages/WorkspacePage/CollaborationPage.ts
+++ b/tests/playwright/pages/WorkspacePage/CollaborationPage.ts
@@ -36,7 +36,7 @@ export class CollaborationPage extends BasePage {
await inviteModal.waitFor({ state: 'visible' });
const input_email = inviteModal.locator('input[id="email"]');
- const selector_role = inviteModal.locator('.ant-select-selector');
+ const selector_role = inviteModal.locator('.nc-roles-selector');
const button_addUser = inviteModal.locator('.nc-invite-btn');
// flaky test: wait for the input to be ready