Browse Source

test: remove redundant login invocation

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/3655/head
Raju Udava 2 years ago
parent
commit
095a635038
  1. 2
      packages/nc-gui/components/virtual-cell/components/ListChildItems.vue
  2. 17
      scripts/cypress/integration/common/4g_table_view_expanded_form.js

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

@ -81,7 +81,7 @@ const expandedFormRow = ref()
watch(
() => props.cellValue,
() => {
if (!isNew.value) loadChildrenList()
if (!isNew.value && vModel.value) loadChildrenList()
},
)
</script>

17
scripts/cypress/integration/common/4g_table_view_expanded_form.js

@ -6,12 +6,18 @@ function capitalizeFirstLetter(string) {
return string.charAt(0).toUpperCase() + string.slice(1);
}
// function verifyExpandFormHeader(title) {
// cy.getActiveDrawer(".nc-drawer-expanded-form")
// .should("exist")
// .find(".nc-expanded-form-header")
// .contains(title)
// .should("exist");
// }
function verifyExpandFormHeader(title) {
cy.getActiveDrawer(".nc-drawer-expanded-form")
.should("exist")
.find(".nc-expanded-form-header")
.contains(title)
.should("exist");
cy.get(
`.nc-drawer-expanded-form .nc-expanded-form-header :contains("${title}")`
).should("exist");
}
export const genTest = (apiType, dbType) => {
@ -19,7 +25,6 @@ export const genTest = (apiType, dbType) => {
describe(`${apiType.toUpperCase()} api - Table views: Expanded form`, () => {
before(() => {
loginPage.loginAndOpenProject(apiType, dbType);
cy.restoreLocalStorage();
// open a table to work on views

Loading…
Cancel
Save