Browse Source

test: stability for language, share base

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/3848/head
Raju Udava 2 years ago committed by Muhammed Mustafa
parent
commit
9a7b08b4dd
  1. 4
      packages/nc-gui/components/smartsheet/Grid.vue
  2. 4
      scripts/playwright/pages/Dashboard/Grid/index.ts
  3. 4
      scripts/playwright/pages/Dashboard/index.ts
  4. 4
      scripts/playwright/tests/baseShare.spec.ts

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

@ -546,8 +546,8 @@ watch(
<tbody ref="tbodyEl" @selectstart.prevent>
<LazySmartsheetRow v-for="(row, rowIndex) of data" ref="rowRefs" :key="rowIndex" :row="row">
<template #default="{ state }">
<tr class="nc-grid-row">
<td key="row-index" class="caption nc-grid-cell pl-5 pr-1" :data-pw="`cell-Id-${rowIndex}`">
<tr class="nc-grid-row" :data-pw="`grid-row-${rowIndex}`">
<td key="row-index" class="caption nc-grid-cell pl-5 pr-1" :pw-data="`cell-Id-${rowIndex}`">
<div class="items-center flex gap-1 min-w-[55px]">
<div
v-if="!readOnly || !isLocked"

4
scripts/playwright/pages/Dashboard/Grid/index.ts

@ -155,7 +155,7 @@ export class GridPage extends BasePage {
}
async openExpandedRow({ index }: { index: number }) {
await this.row(index).locator(`td[pw-data="cell-id-${index}"]`).hover();
await this.row(index).locator(`td[pw-data="cell-Id-${index}"]`).hover();
await this.row(index).locator(`div[pw-data="nc-expand-${index}"]`).click();
await (
await this.rootPage.locator(".ant-drawer-body").elementHandle()
@ -178,7 +178,7 @@ export class GridPage extends BasePage {
.poll(
async () =>
await this.row(i)
.locator(`[pw-data="cell-id-${i}"]`)
.locator(`[pw-data="cell-Id-${i}"]`)
.locator("span.ant-checkbox-checked")
.count()
)

4
scripts/playwright/pages/Dashboard/index.ts

@ -169,6 +169,10 @@ export class DashboardPage extends BasePage {
async selectLanguage({ index }: { index: number }) {
let modal = await this.rootPage.locator(".nc-dropdown-menu-translate");
await modal.locator(`.ant-dropdown-menu-item`).nth(index).click();
// fix me!
// allow time for language to change
await this.rootPage.waitForTimeout(1000);
}
async verifyLanguage(param: { json: any }) {

4
scripts/playwright/tests/baseShare.spec.ts

@ -49,6 +49,8 @@ test.describe("Shared base", () => {
});
test("#1", async () => {
let projId = process.env.TEST_PARALLEL_INDEX;
// close 'Team & Auth' tab
await dashboard.closeTab({ title: "Team & Auth" });
@ -68,7 +70,7 @@ test.describe("Shared base", () => {
email: "user@nocodb.com",
password: "Password123.",
});
await dashboard.openProject({ title: "externalREST0" });
await dashboard.openProject({ title: `externalREST${projId}` });
await dashboard.closeTab({ title: "Team & Auth" });
await dashboard.treeView.inviteTeamButton.click();

Loading…
Cancel
Save