Browse Source

Merge pull request #3511 from nocodb/test/0906-stability

test: stability experiments
pull/3522/head
Raju Udava 2 years ago committed by GitHub
parent
commit
3aa0bea7c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 43
      scripts/cypress/integration/common/4c_form_view_detailed.js

43
scripts/cypress/integration/common/4c_form_view_detailed.js

@ -77,10 +77,11 @@ export const genTest = (apiType, dbType) => {
});
beforeEach(() => {
// fix me!
// window.localStorage.setItem('nc-right-sidebar', '{"isOpen":true,"hasSidebar":true}')
cy.restoreLocalStorage();
cy.wait(500);
// fix me!
window.localStorage.setItem('nc-right-sidebar', '{"isOpen":true,"hasSidebar":true}')
});
afterEach(() => {
@ -385,27 +386,27 @@ export const genTest = (apiType, dbType) => {
// validate if form has appeared again
validateFormHeader();
// verify URL & copy it for subsequent test
cy.url().should("contain", `Country/Form-1`);
cy.url().then((url) => {
cy.log(url);
formViewURL = url;
});
cy.wait(300);
});
it.skip(`Validate ${viewType}: URL validation after re-access`, () => {
// visit URL
cy.log(formViewURL);
cy.visit(formViewURL, {
baseUrl: null,
// // verify URL & copy it for subsequent test
// cy.url().should("contain", `Country/Form-1`);
// cy.url().then((url) => {
// cy.log(url);
// formViewURL = url;
// });
//
// cy.wait(300);
});
// New form appeared? Header & description should exist
validateFormHeader();
});
// it.skip(`Validate ${viewType}: URL validation after re-access`, () => {
// // visit URL
// cy.log(formViewURL);
//
// cy.visit(formViewURL, {
// baseUrl: null,
// });
//
// // New form appeared? Header & description should exist
// validateFormHeader();
// });
it(`Delete ${viewType} view`, () => {
// cy.visit("/");

Loading…
Cancel
Save