Browse Source

test: corrections for new icons suite

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/5363/head
Raju Udava 2 years ago
parent
commit
34d3093f02
  1. 2
      packages/nc-gui/components/virtual-cell/components/ItemChip.vue
  2. 3
      tests/playwright/pages/Account/Users.ts
  3. 2
      tests/playwright/pages/Dashboard/Grid/Column/index.ts
  4. 3
      tests/playwright/pages/Dashboard/Settings/Teams.ts
  5. 1
      tests/playwright/pages/Dashboard/common/Cell/index.ts
  6. 4
      tests/playwright/pages/Dashboard/common/Toolbar/Actions/index.ts
  7. 3
      tests/playwright/pages/Dashboard/common/Toolbar/ShareView.ts

2
packages/nc-gui/components/virtual-cell/components/ItemChip.vue

@ -65,7 +65,7 @@ export default {
<div v-show="active || isForm" v-if="!readOnly && !isLocked && isUIAllowed('xcDatatableEditable')" class="flex items-center">
<component
:is="iconMap.closeThick"
class="unlink-icon text-xs text-gray-500/50 group-hover:text-gray-500"
class="nc-icon unlink-icon text-xs text-gray-500/50 group-hover:text-gray-500"
@click.stop="emit('unlink')"
/>
</div>

3
tests/playwright/pages/Account/Users.ts

@ -36,7 +36,8 @@ export class AccountUsersPage extends BasePage {
await this.inviteUserModal.locator(`button:has-text("Invite")`).click();
await this.verifyToast({ message: 'Successfully added user' });
return await this.inviteUserModal.locator(`.ant-alert-message`).innerText();
// http://localhost:3000/#/signup/a5e7bf3a-cbb0-46bc-87f7-c2ae21796707
return (await this.inviteUserModal.locator(`.ant-alert-message`).innerText()).slice(0, 67);
}
prefixEmail(email: string) {

2
tests/playwright/pages/Dashboard/Grid/Column/index.ts

@ -254,7 +254,7 @@ export class ColumnPageObject extends BasePage {
}
async delete({ title }: { title: string }) {
await this.getColumnHeader(title).locator('svg.ant-dropdown-trigger').click();
await this.getColumnHeader(title).locator('div.ant-dropdown-trigger').locator('.nc-ui-dt-dropdown').click();
// await this.rootPage.locator('li[role="menuitem"]:has-text("Delete")').waitFor();
await this.rootPage.locator('li[role="menuitem"]:has-text("Delete")').click();

3
tests/playwright/pages/Dashboard/Settings/Teams.ts

@ -44,7 +44,8 @@ export class TeamsPage extends BasePage {
await this.inviteTeamModal.locator(`button:has-text("Invite")`).click();
await this.verifyToast({ message: 'Successfully updated the user details' });
return await this.inviteTeamModal.locator(`.ant-alert-message`).innerText();
// http://localhost:3000/#/signup/a5e7bf3a-cbb0-46bc-87f7-c2ae21796707
return (await this.inviteTeamModal.locator(`.ant-alert-message`).innerText()).slice(0, 67);
}
async closeInvite() {

1
tests/playwright/pages/Dashboard/common/Cell/index.ts

@ -292,6 +292,7 @@ export class CellPageObject extends BasePage {
// press escape to close the input
await cell.press('Escape');
await cell.press('Escape');
await cell.click({ button: 'right', clickCount: 1 });
await expect(await this.rootPage.locator(`.nc-dropdown-grid-context-menu:visible`)).toHaveCount(

4
tests/playwright/pages/Dashboard/common/Toolbar/Actions/index.ts

@ -18,10 +18,10 @@ export class ToolbarActionsPage extends BasePage {
// todo: use enum
async click(label: string) {
await this.get().locator(`span:has-text("${label}")`).click();
await this.get().locator(`span:has-text("${label}")`).first().click();
}
async clickDownloadSubmenu(label: string) {
await this.rootPage.locator(`div[class="nc-project-menu-item"]:has-text("${label}")`).click();
await this.rootPage.locator(`div[class="nc-project-menu-item"]:has-text("${label}")`).first().click();
}
}

3
tests/playwright/pages/Dashboard/common/Toolbar/ShareView.ts

@ -29,7 +29,8 @@ export class ToolbarShareViewPage extends BasePage {
}
async getShareLink() {
return await this.get().locator(`[data-testid="nc-modal-share-view__link"]`).innerText();
// http://localhost:3000/#/nc/view/35231cff-05c5-49ab-9045-f410db79ba5a
return (await this.get().locator(`[data-testid="nc-modal-share-view__link"]`).innerText()).slice(0, 68);
}
async close() {

Loading…
Cancel
Save