mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-30 12:56:53 +00:00
test: cy misc test suite local storage handling fix
Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
This commit is contained in:
@@ -68,11 +68,9 @@ export const genTest = (apiType, dbType) => {
|
||||
|
||||
describe(`Import from excel`, () => {
|
||||
before(() => {
|
||||
|
||||
// loginPage.signIn(roles.owner.credentials);
|
||||
|
||||
cy.restoreLocalStorage();
|
||||
cy.wait(1000);
|
||||
|
||||
cy.task("readSheetList", {
|
||||
file: `./scripts/cypress/fixtures/${filepath}`,
|
||||
@@ -89,19 +87,21 @@ export const genTest = (apiType, dbType) => {
|
||||
sheetData = rows;
|
||||
});
|
||||
|
||||
// loginPage.signIn(roles.owner.credentials);
|
||||
cy.visit("/")
|
||||
projectsPage.createProject({ dbType: "none", apiType: "REST", name: "importSample" }, {})
|
||||
cy.wait(4000);
|
||||
|
||||
cy.saveLocalStorage();
|
||||
cy.wait(1000);
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
cy.restoreLocalStorage();
|
||||
cy.wait(1000);
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
cy.saveLocalStorage();
|
||||
})
|
||||
|
||||
it("File Upload: Upload excel as template", () => {
|
||||
|
||||
cy.get('.nc-add-new-table').should('exist').trigger('mouseover')
|
||||
@@ -265,24 +265,6 @@ export const genTest = (apiType, dbType) => {
|
||||
}
|
||||
cy.closeTableTab("Sheet1");
|
||||
});
|
||||
|
||||
after(() => {
|
||||
// delete project once all operations are completed
|
||||
// mainPage.toolBarTopLeft(mainPage.HOME).click();
|
||||
// projectsPage.deleteProject("importSample");
|
||||
|
||||
// cy.get('.nc-noco-brand-icon').click();
|
||||
//
|
||||
// cy.get(`.nc-action-btn`)
|
||||
// .should("exist")
|
||||
// .last()
|
||||
// .click();
|
||||
//
|
||||
// cy.getActiveModal()
|
||||
// .find(".ant-btn-dangerous")
|
||||
// .should("exist")
|
||||
// .click();
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user