test: remove startRoutesForDatasource from commands (#33688)
Removed startRoutesForDatasource from Commands file and replaced with StartDataSourceRoutes from support/Pages/DataSources
This commit is contained in:
parent
ee43abd866
commit
f473da6197
|
|
@ -13,7 +13,7 @@ describe(
|
||||||
{ tags: ["@tag.Binding"] },
|
{ tags: ["@tag.Binding"] },
|
||||||
function () {
|
function () {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.startRoutesForDatasource();
|
_.dataSources.StartDataSourceRoutes();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("1. Create a query and populate response by choosing addWidget and validate in Table Widget & Bug 7413", () => {
|
it("1. Create a query and populate response by choosing addWidget and validate in Table Widget & Bug 7413", () => {
|
||||||
|
|
|
||||||
|
|
@ -19,15 +19,9 @@ describe(
|
||||||
{ tags: ["@tag.IDE"] },
|
{ tags: ["@tag.IDE"] },
|
||||||
function () {
|
function () {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.startRoutesForDatasource();
|
dataSources.StartDataSourceRoutes();
|
||||||
});
|
});
|
||||||
|
|
||||||
// afterEach(function() {
|
|
||||||
// if (this.currentTest.state === "failed") {
|
|
||||||
// Cypress.runner.stop();
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
|
|
||||||
it("1. Create a query with dataSource in explorer, Create new Page", function () {
|
it("1. Create a query with dataSource in explorer, Create new Page", function () {
|
||||||
cy.Createpage(pageid);
|
cy.Createpage(pageid);
|
||||||
EditorNavigation.SelectEntityByName("Page1", EntityType.Page);
|
EditorNavigation.SelectEntityByName("Page1", EntityType.Page);
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ describe(
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.startRoutesForDatasource();
|
dataSources.StartDataSourceRoutes();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("1. Create a page/moveQuery/rename/delete in explorer", function () {
|
it("1. Create a page/moveQuery/rename/delete in explorer", function () {
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ describe("GlobalSearch", function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.startRoutesForDatasource();
|
_.dataSources.StartDataSourceRoutes();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("1. Shows And Hides Using Keyboard Shortcuts", () => {
|
it("1. Shows And Hides Using Keyboard Shortcuts", () => {
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ describe(
|
||||||
let datasourceName;
|
let datasourceName;
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.startRoutesForDatasource();
|
dataSources.StartDataSourceRoutes();
|
||||||
cy.startInterceptRoutesForS3();
|
cy.startInterceptRoutesForS3();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ describe(
|
||||||
agHelper.AddDsl("executionParamsDsl");
|
agHelper.AddDsl("executionParamsDsl");
|
||||||
});
|
});
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.startRoutesForDatasource();
|
dataSources.StartDataSourceRoutes();
|
||||||
});
|
});
|
||||||
it("1. Create a postgres datasource", function () {
|
it("1. Create a postgres datasource", function () {
|
||||||
cy.NavigateToDatasourceEditor();
|
cy.NavigateToDatasourceEditor();
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ describe(
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.startRoutesForDatasource();
|
dataSources.StartDataSourceRoutes();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("1. Create a PostgresDataSource", () => {
|
it("1. Create a PostgresDataSource", () => {
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ describe(
|
||||||
{ tags: ["@tag.Datasource"] },
|
{ tags: ["@tag.Datasource"] },
|
||||||
function () {
|
function () {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.startRoutesForDatasource();
|
dataSources.StartDataSourceRoutes();
|
||||||
cy.createPostgresDatasource();
|
cy.createPostgresDatasource();
|
||||||
cy.get("@saveDatasource").then((httpResponse) => {
|
cy.get("@saveDatasource").then((httpResponse) => {
|
||||||
datasourceName = httpResponse.response.body.data.name;
|
datasourceName = httpResponse.response.body.data.name;
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ describe(
|
||||||
{ tags: ["@tag.Datasource"] },
|
{ tags: ["@tag.Datasource"] },
|
||||||
function () {
|
function () {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.startRoutesForDatasource();
|
dataSources.StartDataSourceRoutes();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("1. Create a empty datasource", function () {
|
it("1. Create a empty datasource", function () {
|
||||||
|
|
|
||||||
|
|
@ -28,20 +28,9 @@ describe(
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.startRoutesForDatasource();
|
dataSources.StartDataSourceRoutes();
|
||||||
});
|
});
|
||||||
|
|
||||||
// afterEach(function() {
|
|
||||||
// if (this.currentTest.state === "failed") {
|
|
||||||
// Cypress.runner.stop();
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
|
|
||||||
// afterEach(() => {
|
|
||||||
// if (queryName)
|
|
||||||
// cy.actionContextMenuByEntityName(queryName);
|
|
||||||
// });
|
|
||||||
|
|
||||||
before("Creates a new Amazon S3 datasource", function () {
|
before("Creates a new Amazon S3 datasource", function () {
|
||||||
dataSources.CreateDataSource("S3");
|
dataSources.CreateDataSource("S3");
|
||||||
cy.get("@dsName").then((dsName) => {
|
cy.get("@dsName").then((dsName) => {
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import { dataSources, agHelper } from "../../../../support/Objects/ObjectsCore";
|
||||||
describe("Switch datasource", { tags: ["@tag.Datasource"] }, function () {
|
describe("Switch datasource", { tags: ["@tag.Datasource"] }, function () {
|
||||||
let dsName_1, dsName_2, MongoDB;
|
let dsName_1, dsName_2, MongoDB;
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.startRoutesForDatasource();
|
dataSources.StartDataSourceRoutes();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("1. Create postgres datasource", function () {
|
it("1. Create postgres datasource", function () {
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ describe(
|
||||||
{ tags: ["@tag.Datasource", "@tag.Sanity"] },
|
{ tags: ["@tag.Datasource", "@tag.Sanity"] },
|
||||||
function () {
|
function () {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.startRoutesForDatasource();
|
dataSources.StartDataSourceRoutes();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("1. Create elastic search datasource", function () {
|
it("1. Create elastic search datasource", function () {
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ describe(
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
agHelper.AddDsl("noiseDsl");
|
agHelper.AddDsl("noiseDsl");
|
||||||
|
|
||||||
cy.startRoutesForDatasource();
|
dataSources.StartDataSourceRoutes();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("1. Verify after killing MySQL session, app should not crash", function () {
|
it("1. Verify after killing MySQL session, app should not crash", function () {
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ describe(
|
||||||
{ tags: ["@tag.Datasource", "@tag.Sanity"] },
|
{ tags: ["@tag.Datasource", "@tag.Sanity"] },
|
||||||
function () {
|
function () {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.startRoutesForDatasource();
|
dataSources.StartDataSourceRoutes();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("1. Create, test, save then delete a MySQL datasource", function () {
|
it("1. Create, test, save then delete a MySQL datasource", function () {
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ describe(
|
||||||
{ tags: ["@tag.Datasource", "@tag.Sanity"] },
|
{ tags: ["@tag.Datasource", "@tag.Sanity"] },
|
||||||
function () {
|
function () {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.startRoutesForDatasource();
|
dataSources.StartDataSourceRoutes();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("1. Create, test, save then delete a postgres datasource", function () {
|
it("1. Create, test, save then delete a postgres datasource", function () {
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ describe(
|
||||||
{ tags: ["@tag.Datasource", "@tag.Sanity"] },
|
{ tags: ["@tag.Datasource", "@tag.Sanity"] },
|
||||||
function () {
|
function () {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.startRoutesForDatasource();
|
dataSources.StartDataSourceRoutes();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("1. Create, test, save then delete a Redshift datasource", function () {
|
it("1. Create, test, save then delete a Redshift datasource", function () {
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ describe(
|
||||||
function () {
|
function () {
|
||||||
let SMTPDatasourceName;
|
let SMTPDatasourceName;
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.startRoutesForDatasource();
|
dataSources.StartDataSourceRoutes();
|
||||||
});
|
});
|
||||||
before(() => {
|
before(() => {
|
||||||
agHelper.AddDsl("SMTPTestdsl");
|
agHelper.AddDsl("SMTPTestdsl");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user