Browse Source

test: quick run

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/6544/head
Raju Udava 1 year ago
parent
commit
2b167d326b
  1. 6
      tests/playwright/setup/db.ts
  2. 2
      tests/playwright/tests/db/columns/columnDateTime.spec.ts
  3. 3
      tests/playwright/tests/db/columns/columnDuration.spec.ts
  4. 4
      tests/playwright/tests/db/columns/columnFormula.spec.ts
  5. 9
      tests/playwright/tests/db/features/filters.spec.ts
  6. 2
      tests/playwright/tests/db/features/import.spec.ts
  7. 3
      tests/playwright/tests/db/features/metaSync.spec.ts
  8. 8
      tests/playwright/tests/db/features/timezone.spec.ts
  9. 6
      tests/playwright/tests/db/features/undo-redo.spec.ts
  10. 3
      tests/playwright/tests/db/features/webhook.spec.ts
  11. 9
      tests/playwright/tests/db/general/toolbarOperations.spec.ts
  12. 8
      tests/playwright/tests/db/views/viewForm.spec.ts
  13. 3
      tests/playwright/tests/db/views/viewFormShareSurvey.spec.ts
  14. 4
      tests/playwright/tests/db/views/viewKanban.spec.ts

6
tests/playwright/setup/db.ts

@ -12,6 +12,10 @@ const isPg = (context: NcContext) => context.dbType === 'pg';
const isEE = () => process.env.EE === 'true'; const isEE = () => process.env.EE === 'true';
// run all the tests for PG; disable some tests for mysql, sqlite to reduce CI time
//
const enableQuickRun = () => (process.env.CI ? process.env.E2E_DB_TYPE : process.env.E2E_DEV_DB_TYPE) !== 'pg';
const pg_credentials = (context: NcContext) => ({ const pg_credentials = (context: NcContext) => ({
user: 'postgres', user: 'postgres',
host: 'localhost', host: 'localhost',
@ -65,4 +69,4 @@ async function sqliteExec(query) {
} }
} }
export { sqliteExec, mysqlExec, isMysql, isSqlite, isPg, pgExec, isEE }; export { sqliteExec, mysqlExec, isMysql, isSqlite, isPg, pgExec, isEE, enableQuickRun };

2
tests/playwright/tests/db/columns/columnDateTime.spec.ts

@ -1,6 +1,7 @@
import { test } from '@playwright/test'; import { test } from '@playwright/test';
import { DashboardPage } from '../../../pages/Dashboard'; import { DashboardPage } from '../../../pages/Dashboard';
import setup, { NcContext, unsetup } from '../../../setup'; import setup, { NcContext, unsetup } from '../../../setup';
import { enableQuickRun } from '../../../setup/db';
const dateTimeData = [ const dateTimeData = [
{ {
@ -57,6 +58,7 @@ const dateTimeData = [
]; ];
test.describe('DateTime Column', () => { test.describe('DateTime Column', () => {
if (enableQuickRun()) test.skip();
let dashboard: DashboardPage; let dashboard: DashboardPage;
let context: NcContext; let context: NcContext;

3
tests/playwright/tests/db/columns/columnDuration.spec.ts

@ -1,6 +1,7 @@
import { test } from '@playwright/test'; import { test } from '@playwright/test';
import { DashboardPage } from '../../../pages/Dashboard'; import { DashboardPage } from '../../../pages/Dashboard';
import setup, { unsetup } from '../../../setup'; import setup, { unsetup } from '../../../setup';
import { enableQuickRun } from '../../../setup/db';
// Storing one additional dummy value "10" at end of every input array // Storing one additional dummy value "10" at end of every input array
// this will trigger update to previously committed data // this will trigger update to previously committed data
@ -41,6 +42,8 @@ const durationData = [
]; ];
test.describe('Duration column', () => { test.describe('Duration column', () => {
if (enableQuickRun()) test.skip();
let dashboard: DashboardPage; let dashboard: DashboardPage;
let context: any; let context: any;

4
tests/playwright/tests/db/columns/columnFormula.spec.ts

@ -1,7 +1,7 @@
import { test } from '@playwright/test'; import { test } from '@playwright/test';
import { DashboardPage } from '../../../pages/Dashboard'; import { DashboardPage } from '../../../pages/Dashboard';
import setup, { NcContext, unsetup } from '../../../setup'; import setup, { NcContext, unsetup } from '../../../setup';
import { isPg, isSqlite } from '../../../setup/db'; import { enableQuickRun, isPg, isSqlite } from '../../../setup/db';
// Add formula to be verified here & store expected results for 5 rows // Add formula to be verified here & store expected results for 5 rows
// Column data from City table (Sakila DB) // Column data from City table (Sakila DB)
@ -157,6 +157,8 @@ const formulaDataByDbType = (context: NcContext, index: number) => {
}; };
test.describe('Virtual Columns', () => { test.describe('Virtual Columns', () => {
if (enableQuickRun()) test.skip();
let dashboard: DashboardPage; let dashboard: DashboardPage;
let context: any; let context: any;

9
tests/playwright/tests/db/features/filters.spec.ts

@ -7,6 +7,7 @@ import { Api } from 'nocodb-sdk';
import { rowMixedValue } from '../../../setup/xcdb-records'; import { rowMixedValue } from '../../../setup/xcdb-records';
import dayjs from 'dayjs'; import dayjs from 'dayjs';
import { createDemoTable } from '../../../setup/demoTable'; import { createDemoTable } from '../../../setup/demoTable';
import { enableQuickRun } from '../../../setup/db';
let dashboard: DashboardPage, toolbar: ToolbarPage; let dashboard: DashboardPage, toolbar: ToolbarPage;
let context: any; let context: any;
@ -111,6 +112,7 @@ async function verifyFilter(param: {
// //
test.describe('Filter Tests: Numerical', () => { test.describe('Filter Tests: Numerical', () => {
if (enableQuickRun()) test.skip();
async function numBasedFilterTest(dataType, eqString, isLikeString) { async function numBasedFilterTest(dataType, eqString, isLikeString) {
await dashboard.closeTab({ title: 'Team & Auth' }); await dashboard.closeTab({ title: 'Team & Auth' });
await dashboard.treeView.openTable({ title: 'numberBased' }); await dashboard.treeView.openTable({ title: 'numberBased' });
@ -299,6 +301,7 @@ test.describe('Filter Tests: Numerical', () => {
// //
test.describe('Filter Tests: Text based', () => { test.describe('Filter Tests: Text based', () => {
if (enableQuickRun()) test.skip();
async function textBasedFilterTest(dataType, eqString, isLikeString) { async function textBasedFilterTest(dataType, eqString, isLikeString) {
await dashboard.closeTab({ title: 'Team & Auth' }); await dashboard.closeTab({ title: 'Team & Auth' });
await dashboard.treeView.openTable({ title: 'textBased' }); await dashboard.treeView.openTable({ title: 'textBased' });
@ -418,6 +421,7 @@ test.describe('Filter Tests: Text based', () => {
// //
test.describe('Filter Tests: Select based', () => { test.describe('Filter Tests: Select based', () => {
if (enableQuickRun()) test.skip();
async function selectBasedFilterTest(dataType, is, anyof, allof) { async function selectBasedFilterTest(dataType, is, anyof, allof) {
await dashboard.closeTab({ title: 'Team & Auth' }); await dashboard.closeTab({ title: 'Team & Auth' });
await dashboard.treeView.openTable({ title: 'selectBased' }); await dashboard.treeView.openTable({ title: 'selectBased' });
@ -536,6 +540,7 @@ function getUTCEpochTime(date) {
} }
test.describe('Filter Tests: Date based', () => { test.describe('Filter Tests: Date based', () => {
if (enableQuickRun()) test.skip();
const today = getUTCEpochTime(new Date()); const today = getUTCEpochTime(new Date());
const tomorrow = getUTCEpochTime(new Date(new Date().setDate(new Date().getDate() + 1))); const tomorrow = getUTCEpochTime(new Date(new Date().setDate(new Date().getDate() + 1)));
const yesterday = getUTCEpochTime(new Date(new Date().setDate(new Date().getDate() - 1))); const yesterday = getUTCEpochTime(new Date(new Date().setDate(new Date().getDate() - 1)));
@ -843,6 +848,7 @@ test.describe('Filter Tests: Date based', () => {
// //
test.describe('Filter Tests: AddOn', () => { test.describe('Filter Tests: AddOn', () => {
if (enableQuickRun()) test.skip();
async function addOnFilterTest(dataType) { async function addOnFilterTest(dataType) {
await dashboard.closeTab({ title: 'Team & Auth' }); await dashboard.closeTab({ title: 'Team & Auth' });
await dashboard.treeView.openTable({ title: 'addOnTypes', networkResponse: false }); await dashboard.treeView.openTable({ title: 'addOnTypes', networkResponse: false });
@ -948,6 +954,7 @@ test.describe('Filter Tests: AddOn', () => {
// //
test.describe('Filter Tests: Link to another record, Lookup, Rollup', () => { test.describe('Filter Tests: Link to another record, Lookup, Rollup', () => {
if (enableQuickRun()) test.skip();
async function linkToAnotherRecordFilterTest() { async function linkToAnotherRecordFilterTest() {
await dashboard.closeTab({ title: 'Team & Auth' }); await dashboard.closeTab({ title: 'Team & Auth' });
await dashboard.treeView.openTable({ title: 'Country', networkResponse: false }); await dashboard.treeView.openTable({ title: 'Country', networkResponse: false });
@ -1093,6 +1100,7 @@ test.describe('Filter Tests: Link to another record, Lookup, Rollup', () => {
// //
test.describe('Filter Tests: Toggle button', () => { test.describe('Filter Tests: Toggle button', () => {
if (enableQuickRun()) test.skip();
/** /**
* Steps * Steps
* *
@ -1176,6 +1184,7 @@ test.describe('Filter Tests: Toggle button', () => {
}); });
test.describe('Filter Tests: Filter groups', () => { test.describe('Filter Tests: Filter groups', () => {
if (enableQuickRun()) test.skip();
/** /**
* Steps * Steps
* *

2
tests/playwright/tests/db/features/import.spec.ts

@ -3,8 +3,10 @@ import { airtableApiBase, airtableApiKey } from '../../../constants';
import { DashboardPage } from '../../../pages/Dashboard'; import { DashboardPage } from '../../../pages/Dashboard';
import { quickVerify } from '../../../quickTests/commonTest'; import { quickVerify } from '../../../quickTests/commonTest';
import setup, { NcContext, unsetup } from '../../../setup'; import setup, { NcContext, unsetup } from '../../../setup';
import { enableQuickRun } from '../../../setup/db';
test.describe('Import', () => { test.describe('Import', () => {
if (enableQuickRun()) test.skip();
let dashboard: DashboardPage; let dashboard: DashboardPage;
let context: NcContext; let context: NcContext;

3
tests/playwright/tests/db/features/metaSync.spec.ts

@ -1,10 +1,11 @@
import { test } from '@playwright/test'; import { test } from '@playwright/test';
import { DashboardPage } from '../../../pages/Dashboard'; import { DashboardPage } from '../../../pages/Dashboard';
import setup, { NcContext, unsetup } from '../../../setup'; import setup, { NcContext, unsetup } from '../../../setup';
import { isMysql, isPg, isSqlite, mysqlExec, pgExec, sqliteExec } from '../../../setup/db'; import { enableQuickRun, isMysql, isPg, isSqlite, mysqlExec, pgExec, sqliteExec } from '../../../setup/db';
import { MetaDataPage } from '../../../pages/Dashboard/ProjectView/Metadata'; import { MetaDataPage } from '../../../pages/Dashboard/ProjectView/Metadata';
test.describe('Meta sync', () => { test.describe('Meta sync', () => {
if (enableQuickRun()) test.skip();
let dashboard: DashboardPage; let dashboard: DashboardPage;
let context: NcContext; let context: NcContext;
let dbExec; let dbExec;

8
tests/playwright/tests/db/features/timezone.spec.ts

@ -2,7 +2,7 @@ import { expect, test } from '@playwright/test';
import { DashboardPage } from '../../../pages/Dashboard'; import { DashboardPage } from '../../../pages/Dashboard';
import setup, { NcContext, unsetup } from '../../../setup'; import setup, { NcContext, unsetup } from '../../../setup';
import { Api, ProjectListType, UITypes } from 'nocodb-sdk'; import { Api, ProjectListType, UITypes } from 'nocodb-sdk';
import { isEE, isMysql, isPg, isSqlite } from '../../../setup/db'; import { enableQuickRun, isEE, isMysql, isPg, isSqlite } from '../../../setup/db';
import { getKnexConfig } from '../../utils/config'; import { getKnexConfig } from '../../utils/config';
import { getBrowserTimezoneOffset } from '../../utils/general'; import { getBrowserTimezoneOffset } from '../../utils/general';
import config from '../../../playwright.config'; import config from '../../../playwright.config';
@ -110,6 +110,7 @@ async function connectToExtDb(context: any, dbName: string, api: Api<any>) {
// serial : as we are creating an external db, we need to run the tests sequentially // serial : as we are creating an external db, we need to run the tests sequentially
test.describe.serial('Timezone-XCDB : Japan/Tokyo', () => { test.describe.serial('Timezone-XCDB : Japan/Tokyo', () => {
if (enableQuickRun()) test.skip();
let dashboard: DashboardPage; let dashboard: DashboardPage;
let api: Api<any>, records: any[]; let api: Api<any>, records: any[];
let context: any; let context: any;
@ -214,6 +215,7 @@ test.describe.serial('Timezone-XCDB : Japan/Tokyo', () => {
// Change browser timezone & locale to Asia/Hong-Kong // Change browser timezone & locale to Asia/Hong-Kong
// //
test.describe.serial('Timezone-XCDB : Asia/Hong-kong', () => { test.describe.serial('Timezone-XCDB : Asia/Hong-kong', () => {
if (enableQuickRun()) test.skip();
let dashboard: DashboardPage; let dashboard: DashboardPage;
let context: any; let context: any;
test.beforeEach(async ({ page }) => { test.beforeEach(async ({ page }) => {
@ -282,6 +284,7 @@ test.describe.serial('Timezone-XCDB : Asia/Hong-kong', () => {
//////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////
test.describe.serial('Timezone-XCDB : Asia/Hong-kong', () => { test.describe.serial('Timezone-XCDB : Asia/Hong-kong', () => {
if (enableQuickRun()) test.skip();
let dashboard: DashboardPage; let dashboard: DashboardPage;
let gApi: Api<any>, records: any[]; let gApi: Api<any>, records: any[];
let context: any; let context: any;
@ -471,6 +474,7 @@ function getDateTimeInUTCTimeZone(dateString: string) {
} }
test.describe.serial('Timezone- ExtDB : DateTime column, Browser Timezone same as server timezone', async () => { test.describe.serial('Timezone- ExtDB : DateTime column, Browser Timezone same as server timezone', async () => {
if (enableQuickRun()) test.skip();
let dashboard: DashboardPage; let dashboard: DashboardPage;
let api: Api<any>; let api: Api<any>;
let context: any; let context: any;
@ -830,6 +834,7 @@ test.describe.serial('Timezone- ExtDB : DateTime column, Browser Timezone same a
}); });
test.describe.serial('Timezone- ExtDB : DateTime column, Browser Timezone set to HKT', async () => { test.describe.serial('Timezone- ExtDB : DateTime column, Browser Timezone set to HKT', async () => {
if (enableQuickRun()) test.skip();
let dashboard: DashboardPage; let dashboard: DashboardPage;
let api: Api<any>; let api: Api<any>;
let context: any; let context: any;
@ -970,6 +975,7 @@ test.describe.serial('Timezone- ExtDB : DateTime column, Browser Timezone set to
}); });
test.describe.serial('Timezone- ExtDB (MySQL Only) : DB Timezone configured as HKT', () => { test.describe.serial('Timezone- ExtDB (MySQL Only) : DB Timezone configured as HKT', () => {
if (enableQuickRun()) test.skip();
let dashboard: DashboardPage; let dashboard: DashboardPage;
let api: Api<any>; let api: Api<any>;
let context: any; let context: any;

6
tests/playwright/tests/db/features/undo-redo.spec.ts

@ -5,7 +5,7 @@ import { Api, UITypes } from 'nocodb-sdk';
import { rowMixedValue } from '../../../setup/xcdb-records'; import { rowMixedValue } from '../../../setup/xcdb-records';
import { GridPage } from '../../../pages/Dashboard/Grid'; import { GridPage } from '../../../pages/Dashboard/Grid';
import { ToolbarPage } from '../../../pages/Dashboard/common/Toolbar'; import { ToolbarPage } from '../../../pages/Dashboard/common/Toolbar';
import { isSqlite } from '../../../setup/db'; import { enableQuickRun, isSqlite } from '../../../setup/db';
const validateResponse = false; const validateResponse = false;
@ -44,6 +44,7 @@ async function undo({ page, dashboard }: { page: Page; dashboard: DashboardPage
} }
test.describe('Undo Redo', () => { test.describe('Undo Redo', () => {
if (enableQuickRun()) test.skip();
let dashboard: DashboardPage, grid: GridPage, toolbar: ToolbarPage, context: any, api: Api<any>, table: any; let dashboard: DashboardPage, grid: GridPage, toolbar: ToolbarPage, context: any, api: Api<any>, table: any;
test.beforeEach(async ({ page }) => { test.beforeEach(async ({ page }) => {
@ -351,6 +352,7 @@ test.describe('Undo Redo', () => {
}); });
test.describe('Undo Redo - Table & view rename operations', () => { test.describe('Undo Redo - Table & view rename operations', () => {
if (enableQuickRun()) test.skip();
let dashboard: DashboardPage, context: any, api: Api<any>, table: any; let dashboard: DashboardPage, context: any, api: Api<any>, table: any;
test.beforeEach(async ({ page }) => { test.beforeEach(async ({ page }) => {
@ -465,6 +467,7 @@ test.describe('Undo Redo - Table & view rename operations', () => {
}); });
test.describe('Undo Redo - LTAR', () => { test.describe('Undo Redo - LTAR', () => {
if (enableQuickRun()) test.skip();
let dashboard: DashboardPage, grid: GridPage, context: any, api: Api<any>, cityTable: any, countryTable: any; let dashboard: DashboardPage, grid: GridPage, context: any, api: Api<any>, cityTable: any, countryTable: any;
test.beforeEach(async ({ page }) => { test.beforeEach(async ({ page }) => {
context = await setup({ page, isEmptyProject: true }); context = await setup({ page, isEmptyProject: true });
@ -645,6 +648,7 @@ test.describe('Undo Redo - LTAR', () => {
}); });
test.describe('Undo Redo - Select based', () => { test.describe('Undo Redo - Select based', () => {
if (enableQuickRun()) test.skip();
let dashboard: DashboardPage, /*grid: GridPage,*/ context: any, api: Api<any>, table: any; let dashboard: DashboardPage, /*grid: GridPage,*/ context: any, api: Api<any>, table: any;
test.beforeEach(async ({ page }) => { test.beforeEach(async ({ page }) => {
context = await setup({ page, isEmptyProject: true }); context = await setup({ page, isEmptyProject: true });

3
tests/playwright/tests/db/features/webhook.spec.ts

@ -5,7 +5,7 @@ import makeServer from '../../../setup/server';
import { WebhookFormPage } from '../../../pages/Dashboard/WebhookForm'; import { WebhookFormPage } from '../../../pages/Dashboard/WebhookForm';
import { isSubset } from '../../../tests/utils/general'; import { isSubset } from '../../../tests/utils/general';
import { Api, UITypes } from 'nocodb-sdk'; import { Api, UITypes } from 'nocodb-sdk';
import { isEE, isMysql, isSqlite } from '../../../setup/db'; import { enableQuickRun, isEE, isMysql, isSqlite } from '../../../setup/db';
const hookPath = 'http://localhost:9090/hook'; const hookPath = 'http://localhost:9090/hook';
@ -103,6 +103,7 @@ async function buildExpectedResponseData(type, value, oldValue?) {
} }
test.describe.serial('Webhook', () => { test.describe.serial('Webhook', () => {
if (enableQuickRun()) test.skip();
let api: Api<any>; let api: Api<any>;
// start a server locally for webhook tests // start a server locally for webhook tests

9
tests/playwright/tests/db/general/toolbarOperations.spec.ts

@ -2,7 +2,7 @@ import { expect, test } from '@playwright/test';
import { DashboardPage } from '../../../pages/Dashboard'; import { DashboardPage } from '../../../pages/Dashboard';
import { ToolbarPage } from '../../../pages/Dashboard/common/Toolbar'; import { ToolbarPage } from '../../../pages/Dashboard/common/Toolbar';
import setup, { unsetup } from '../../../setup'; import setup, { unsetup } from '../../../setup';
import { isMysql } from '../../../setup/db'; import { enableQuickRun, isMysql } from '../../../setup/db';
import { UITypes } from 'nocodb-sdk'; import { UITypes } from 'nocodb-sdk';
test.describe('Toolbar operations (GRID)', () => { test.describe('Toolbar operations (GRID)', () => {
@ -28,6 +28,7 @@ test.describe('Toolbar operations (GRID)', () => {
}); });
test('Create a GroupBy and Verify With Sort, Filter, Hide', async () => { test('Create a GroupBy and Verify With Sort, Filter, Hide', async () => {
if (enableQuickRun()) test.skip();
// Open Table // Open Table
await dashboard.treeView.openTable({ title: 'Film' }); await dashboard.treeView.openTable({ title: 'Film' });
@ -160,6 +161,7 @@ test.describe('Toolbar operations (GRID)', () => {
}); });
test('Create Two GroupBy and Verify With Sort, Filter, Hide', async () => { test('Create Two GroupBy and Verify With Sort, Filter, Hide', async () => {
if (enableQuickRun()) test.skip();
// Open Table // Open Table
await dashboard.treeView.openTable({ title: 'Film' }); await dashboard.treeView.openTable({ title: 'Film' });
@ -302,6 +304,7 @@ test.describe('Toolbar operations (GRID)', () => {
}); });
test('Create Three GroupBy and Verify With Sort, Filter, Hide', async () => { test('Create Three GroupBy and Verify With Sort, Filter, Hide', async () => {
if (enableQuickRun()) test.skip();
// Open Table // Open Table
await dashboard.treeView.openTable({ title: 'Film' }); await dashboard.treeView.openTable({ title: 'Film' });
@ -451,6 +454,7 @@ test.describe('Toolbar operations (GRID)', () => {
}); });
test('Update GroupBy and Verify', async () => { test('Update GroupBy and Verify', async () => {
if (enableQuickRun()) test.skip();
await dashboard.treeView.openTable({ title: 'Film' }); await dashboard.treeView.openTable({ title: 'Film' });
if (isMysql(context)) { if (isMysql(context)) {
@ -504,6 +508,7 @@ test.describe('Toolbar operations (GRID)', () => {
}); });
test('Change View and Verify GroupBy', async () => { test('Change View and Verify GroupBy', async () => {
if (enableQuickRun()) test.skip();
await dashboard.treeView.openTable({ title: 'Film' }); await dashboard.treeView.openTable({ title: 'Film' });
// Open GroupBy Menu // Open GroupBy Menu
@ -529,6 +534,7 @@ test.describe('Toolbar operations (GRID)', () => {
}); });
test('Duplicate View and Verify GroupBy', async () => { test('Duplicate View and Verify GroupBy', async () => {
if (enableQuickRun()) test.skip();
await dashboard.treeView.openTable({ title: 'Film' }); await dashboard.treeView.openTable({ title: 'Film' });
await dashboard.viewSidebar.createGridView({ title: 'Film Grid' }); await dashboard.viewSidebar.createGridView({ title: 'Film Grid' });
@ -552,6 +558,7 @@ test.describe('Toolbar operations (GRID)', () => {
}); });
test('Delete GroupBy and Verify', async () => { test('Delete GroupBy and Verify', async () => {
if (enableQuickRun()) test.skip();
await dashboard.treeView.openTable({ title: 'Film' }); await dashboard.treeView.openTable({ title: 'Film' });
// Open GroupBy Menu // Open GroupBy Menu

8
tests/playwright/tests/db/views/viewForm.spec.ts

@ -7,10 +7,12 @@ import { Api, UITypes } from 'nocodb-sdk';
import { LoginPage } from '../../../pages/LoginPage'; import { LoginPage } from '../../../pages/LoginPage';
import { getDefaultPwd } from '../../../tests/utils/general'; import { getDefaultPwd } from '../../../tests/utils/general';
import { WorkspacePage } from '../../../pages/WorkspacePage'; import { WorkspacePage } from '../../../pages/WorkspacePage';
import { isEE } from '../../../setup/db'; import { enableQuickRun, isEE } from '../../../setup/db';
// todo: Move most of the ui actions to page object and await on the api response // todo: Move most of the ui actions to page object and await on the api response
test.describe('Form view', () => { test.describe('Form view', () => {
if (enableQuickRun()) test.skip();
let dashboard: DashboardPage; let dashboard: DashboardPage;
let form: FormPage; let form: FormPage;
let context: any; let context: any;
@ -248,6 +250,8 @@ test.describe('Form view', () => {
}); });
test.describe('Form view with LTAR', () => { test.describe('Form view with LTAR', () => {
if (enableQuickRun()) test.skip();
let dashboard: DashboardPage; let dashboard: DashboardPage;
let loginPage: LoginPage; let loginPage: LoginPage;
let wsPage: WorkspacePage; let wsPage: WorkspacePage;
@ -402,6 +406,8 @@ test.describe('Form view with LTAR', () => {
}); });
test.describe('Form view', () => { test.describe('Form view', () => {
if (enableQuickRun()) test.skip();
let dashboard: DashboardPage; let dashboard: DashboardPage;
let context: any; let context: any;
let api: Api<any>; let api: Api<any>;

3
tests/playwright/tests/db/views/viewFormShareSurvey.spec.ts

@ -2,6 +2,7 @@ import { test } from '@playwright/test';
import { DashboardPage } from '../../../pages/Dashboard'; import { DashboardPage } from '../../../pages/Dashboard';
import { SurveyFormPage } from '../../../pages/Dashboard/SurveyForm'; import { SurveyFormPage } from '../../../pages/Dashboard/SurveyForm';
import setup, { unsetup } from '../../../setup'; import setup, { unsetup } from '../../../setup';
import { enableQuickRun } from '../../../setup/db';
test.describe('Share form', () => { test.describe('Share form', () => {
let dashboard: DashboardPage; let dashboard: DashboardPage;
@ -18,6 +19,8 @@ test.describe('Share form', () => {
}); });
test('Survey', async () => { test('Survey', async () => {
if (enableQuickRun()) test.skip();
// close 'Team & Auth' tab // close 'Team & Auth' tab
await dashboard.closeTab({ title: 'Team & Auth' }); await dashboard.closeTab({ title: 'Team & Auth' });
await dashboard.treeView.openTable({ title: 'Country' }); await dashboard.treeView.openTable({ title: 'Country' });

4
tests/playwright/tests/db/views/viewKanban.spec.ts

@ -3,12 +3,14 @@ import { DashboardPage } from '../../../pages/Dashboard';
import { ToolbarPage } from '../../../pages/Dashboard/common/Toolbar'; import { ToolbarPage } from '../../../pages/Dashboard/common/Toolbar';
import setup, { unsetup } from '../../../setup'; import setup, { unsetup } from '../../../setup';
import { isPg, isSqlite } from '../../../setup/db'; import { enableQuickRun, isPg, isSqlite } from '../../../setup/db';
import { TopbarPage } from '../../../pages/Dashboard/common/Topbar'; import { TopbarPage } from '../../../pages/Dashboard/common/Topbar';
const filmRatings = ['G', 'PG', 'PG-13', 'R', 'NC-17']; const filmRatings = ['G', 'PG', 'PG-13', 'R', 'NC-17'];
test.describe('View', () => { test.describe('View', () => {
if (enableQuickRun()) test.skip();
let dashboard: DashboardPage, toolbar: ToolbarPage, topbar: TopbarPage; let dashboard: DashboardPage, toolbar: ToolbarPage, topbar: TopbarPage;
let context: any; let context: any;

Loading…
Cancel
Save