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"] },
|
||||
function () {
|
||||
beforeEach(() => {
|
||||
cy.startRoutesForDatasource();
|
||||
_.dataSources.StartDataSourceRoutes();
|
||||
});
|
||||
|
||||
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"] },
|
||||
function () {
|
||||
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 () {
|
||||
cy.Createpage(pageid);
|
||||
EditorNavigation.SelectEntityByName("Page1", EntityType.Page);
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ describe(
|
|||
});
|
||||
|
||||
beforeEach(() => {
|
||||
cy.startRoutesForDatasource();
|
||||
dataSources.StartDataSourceRoutes();
|
||||
});
|
||||
|
||||
it("1. Create a page/moveQuery/rename/delete in explorer", function () {
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ describe("GlobalSearch", function () {
|
|||
});
|
||||
|
||||
beforeEach(() => {
|
||||
cy.startRoutesForDatasource();
|
||||
_.dataSources.StartDataSourceRoutes();
|
||||
});
|
||||
|
||||
it("1. Shows And Hides Using Keyboard Shortcuts", () => {
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ describe(
|
|||
let datasourceName;
|
||||
|
||||
beforeEach(() => {
|
||||
cy.startRoutesForDatasource();
|
||||
dataSources.StartDataSourceRoutes();
|
||||
cy.startInterceptRoutesForS3();
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ describe(
|
|||
agHelper.AddDsl("executionParamsDsl");
|
||||
});
|
||||
beforeEach(() => {
|
||||
cy.startRoutesForDatasource();
|
||||
dataSources.StartDataSourceRoutes();
|
||||
});
|
||||
it("1. Create a postgres datasource", function () {
|
||||
cy.NavigateToDatasourceEditor();
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ describe(
|
|||
});
|
||||
|
||||
beforeEach(() => {
|
||||
cy.startRoutesForDatasource();
|
||||
dataSources.StartDataSourceRoutes();
|
||||
});
|
||||
|
||||
it("1. Create a PostgresDataSource", () => {
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ describe(
|
|||
{ tags: ["@tag.Datasource"] },
|
||||
function () {
|
||||
beforeEach(() => {
|
||||
cy.startRoutesForDatasource();
|
||||
dataSources.StartDataSourceRoutes();
|
||||
cy.createPostgresDatasource();
|
||||
cy.get("@saveDatasource").then((httpResponse) => {
|
||||
datasourceName = httpResponse.response.body.data.name;
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ describe(
|
|||
{ tags: ["@tag.Datasource"] },
|
||||
function () {
|
||||
beforeEach(() => {
|
||||
cy.startRoutesForDatasource();
|
||||
dataSources.StartDataSourceRoutes();
|
||||
});
|
||||
|
||||
it("1. Create a empty datasource", function () {
|
||||
|
|
|
|||
|
|
@ -28,20 +28,9 @@ describe(
|
|||
});
|
||||
|
||||
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 () {
|
||||
dataSources.CreateDataSource("S3");
|
||||
cy.get("@dsName").then((dsName) => {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import { dataSources, agHelper } from "../../../../support/Objects/ObjectsCore";
|
|||
describe("Switch datasource", { tags: ["@tag.Datasource"] }, function () {
|
||||
let dsName_1, dsName_2, MongoDB;
|
||||
beforeEach(() => {
|
||||
cy.startRoutesForDatasource();
|
||||
dataSources.StartDataSourceRoutes();
|
||||
});
|
||||
|
||||
it("1. Create postgres datasource", function () {
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ describe(
|
|||
{ tags: ["@tag.Datasource", "@tag.Sanity"] },
|
||||
function () {
|
||||
beforeEach(() => {
|
||||
cy.startRoutesForDatasource();
|
||||
dataSources.StartDataSourceRoutes();
|
||||
});
|
||||
|
||||
it("1. Create elastic search datasource", function () {
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ describe(
|
|||
beforeEach(() => {
|
||||
agHelper.AddDsl("noiseDsl");
|
||||
|
||||
cy.startRoutesForDatasource();
|
||||
dataSources.StartDataSourceRoutes();
|
||||
});
|
||||
|
||||
it("1. Verify after killing MySQL session, app should not crash", function () {
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ describe(
|
|||
{ tags: ["@tag.Datasource", "@tag.Sanity"] },
|
||||
function () {
|
||||
beforeEach(() => {
|
||||
cy.startRoutesForDatasource();
|
||||
dataSources.StartDataSourceRoutes();
|
||||
});
|
||||
|
||||
it("1. Create, test, save then delete a MySQL datasource", function () {
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ describe(
|
|||
{ tags: ["@tag.Datasource", "@tag.Sanity"] },
|
||||
function () {
|
||||
beforeEach(() => {
|
||||
cy.startRoutesForDatasource();
|
||||
dataSources.StartDataSourceRoutes();
|
||||
});
|
||||
|
||||
it("1. Create, test, save then delete a postgres datasource", function () {
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ describe(
|
|||
{ tags: ["@tag.Datasource", "@tag.Sanity"] },
|
||||
function () {
|
||||
beforeEach(() => {
|
||||
cy.startRoutesForDatasource();
|
||||
dataSources.StartDataSourceRoutes();
|
||||
});
|
||||
|
||||
it("1. Create, test, save then delete a Redshift datasource", function () {
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ describe(
|
|||
function () {
|
||||
let SMTPDatasourceName;
|
||||
beforeEach(() => {
|
||||
cy.startRoutesForDatasource();
|
||||
dataSources.StartDataSourceRoutes();
|
||||
});
|
||||
before(() => {
|
||||
agHelper.AddDsl("SMTPTestdsl");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user