@ -6,7 +6,7 @@ export const genTest = (apiType, dbType) => {
if ( ! isTestSuiteActive ( apiType , dbType ) ) return ;
// tbd: this needs a proper fix
let waitTime = 200 0;
let waitTime = 0 ;
let clear ;
describe ( ` ${ apiType . toUpperCase ( ) } api - Link to another record ` , ( ) => {
@ -185,7 +185,6 @@ export const genTest = (apiType, dbType) => {
// Click on `Add new row` button
cy . get ( ".nc-add-new-row-btn:visible" ) . should ( "exist" ) ;
cy . get ( ".nc-add-new-row-btn" ) . click ( ) ;
cy . wait ( waitTime ) ;
// Title
cy . get ( ".nc-expand-col-Title" )
@ -205,32 +204,26 @@ export const genTest = (apiType, dbType) => {
. find ( ".nc-action-icon" )
. should ( "exist" )
. click ( { force : true } ) ;
cy . wait ( waitTime ) ;
cy . wait ( "@waitForCardLoad" ) ;
cy . getActiveModal ( ".nc-modal-link-record" )
. find ( ".ant-card" )
. should ( "exist" )
. eq ( 0 )
. click ( ) ;
cy . wait ( waitTime ) ;
// MM
cy . get ( ".nc-expand-col-Sheet1.List" ) . find ( ".ant-btn-primary" ) . click ( ) ;
cy . wait ( waitTime ) ;
cy . wait ( "@waitForCardLoad" ) ;
cy . getActiveModal ( ".nc-modal-link-record" )
. find ( ".ant-card" )
. should ( "exist" )
. eq ( 0 )
. click ( ) ;
cy . wait ( waitTime ) ;
// HM
cy . get ( ".nc-expand-col-Link2-1hm" ) . find ( ".ant-btn-primary" ) . click ( ) ;
cy . wait ( waitTime ) ;
cy . wait ( "@waitForCardLoad" ) ;
cy . getActiveModal ( ) . find ( ".ant-card" ) . should ( "exist" ) . eq ( 0 ) . click ( ) ;
cy . wait ( waitTime ) ;
// Save row
cy . getActiveDrawer ( ".nc-drawer-expanded-form" )
@ -256,13 +249,11 @@ export const genTest = (apiType, dbType) => {
. getCell ( "Sheet1" , 2 )
. find ( ".nc-action-icon" )
. click ( { force : true } ) ;
cy . wait ( waitTime ) ;
cy . getActiveModal ( ".nc-modal-link-record" )
. find ( ".ant-card" )
. should ( "exist" )
. eq ( 1 )
. click ( ) ;
cy . wait ( waitTime ) ;
// MM
mainPage
@ -270,13 +261,11 @@ export const genTest = (apiType, dbType) => {
. find ( ".nc-action-icon" )
. last ( )
. click ( { force : true } ) ;
cy . wait ( waitTime ) ;
cy . getActiveModal ( ".nc-modal-link-record" )
. find ( ".ant-card" )
. should ( "exist" )
. eq ( 1 )
. click ( ) ;
cy . wait ( waitTime ) ;
// HM
mainPage
@ -284,13 +273,11 @@ export const genTest = (apiType, dbType) => {
. find ( ".nc-action-icon" )
. last ( )
. click ( { force : true } ) ;
cy . wait ( waitTime ) ;
cy . getActiveModal ( ".nc-modal-link-record" )
. find ( ".ant-card" )
. should ( "exist" )
. eq ( 1 )
. click ( ) ;
cy . wait ( waitTime ) ;
} ) ;
// Existing row, expand record
@ -300,49 +287,37 @@ export const genTest = (apiType, dbType) => {
addRow ( 3 , "2c" ) ;
cy . wait ( waitTime ) ;
cy . get ( ".nc-row-expand" ) . eq ( 2 ) . click ( { force : true } ) ;
cy . wait ( waitTime ) ;
// wait for page render to complete
cy . get ( 'button:contains("Save row"):visible' ) . should ( "exist" ) ;
// BT
cy . wait ( waitTime ) ;
cy . get ( ".nc-expand-col-Sheet1" )
. find ( ".nc-action-icon" )
. should ( "exist" )
. click ( { force : true } ) ;
cy . wait ( waitTime ) ;
// cy.wait("@waitForCardLoad");
cy . getActiveModal ( ".nc-modal-link-record" )
. find ( ".ant-card" )
. should ( "exist" )
. eq ( 2 )
. click ( ) ;
cy . wait ( waitTime ) ;
// MM
cy . get ( ".nc-expand-col-Sheet1.List" ) . find ( ".ant-btn-primary" ) . click ( ) ;
cy . wait ( waitTime ) ;
// cy.wait("@waitForCardLoad");
cy . getActiveModal ( ".nc-modal-link-record" )
. find ( ".ant-card" )
. should ( "exist" )
. eq ( 2 )
. click ( ) ;
cy . wait ( waitTime ) ;
// HM
cy . get ( ".nc-expand-col-Link2-1hm" ) . find ( ".ant-btn-primary" ) . click ( ) ;
cy . wait ( waitTime ) ;
// cy.wait("@waitForCardLoad");
cy . getActiveModal ( ".nc-modal-link-record" )
. find ( ".ant-card" )
. should ( "exist" )
. eq ( 2 )
. click ( ) ;
cy . wait ( waitTime ) ;
cy . getActiveDrawer ( ".nc-drawer-expanded-form" )
. find ( "button" )