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

Loading…
Cancel
Save