Browse Source

chore: lint

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4514/head
Pranav C 2 years ago
parent
commit
16feae2b1f
  1. 5
      packages/nc-gui/components/smartsheet/Grid.vue
  2. 6
      tests/playwright/pages/Dashboard/common/Cell/index.ts

5
packages/nc-gui/components/smartsheet/Grid.vue

@ -273,7 +273,7 @@ const { selectCell, startSelectRange, endSelectRange, clearSelectedRange, copyVa
},
async (ctx: { row: number; col?: number; updatedColumnTitle?: string }) => {
const rowObj = data.value[ctx.row]
const columnObj = (ctx.col !== null && ctx.col !== undefined) ? fields.value[ctx.col] : null
const columnObj = ctx.col !== null && ctx.col !== undefined ? fields.value[ctx.col] : null
if (!ctx.updatedColumnTitle && isVirtualCol(columnObj)) {
return
@ -646,8 +646,7 @@ const closeAddColumnDropdown = () => {
<thead ref="tableHead">
<tr class="nc-grid-header border-1 bg-gray-100 sticky top[-1px]">
<th data-testid="grid-id-column">
<div class="w-full h-full bg-gray-100 flex min-w-[70px] pl-5 pr-1 items-center"
data-testid="nc-check-all">
<div class="w-full h-full bg-gray-100 flex min-w-[70px] pl-5 pr-1 items-center" data-testid="nc-check-all">
<template v-if="!readOnly">
<div class="nc-no-label text-gray-500" :class="{ hidden: selectedAllRecords }">#</div>
<div

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

@ -34,8 +34,10 @@ export class CellPageObject extends BasePage {
}
}
async click({ index, columnHeader }: { index: number; columnHeader: string },
...options: Parameters<Locator['click']>) {
async click(
{ index, columnHeader }: { index: number; columnHeader: string },
...options: Parameters<Locator['click']>
) {
await this.get({ index, columnHeader }).click(...options);
await (await this.get({ index, columnHeader }).elementHandle()).waitForElementState('stable');
}

Loading…
Cancel
Save