-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add datasource connected page * Default to show connected screen in datasource editor * Update UI * Fixes - Change text from connected to saved - Show key with empty values if there are no values - After creating a new datasource go to edit mode * Stop calling test on save * Fix tests * Fix test * Dummy commit * Always be in view mode unless clicked on edit mode * Fixes - Update datasource connected page for rest api datasource - Fix empty array values not resetting * Fix create new api crashing - While creating new datasource show form in edit mode * Fix tests
- Loading branch information
1 parent
711507c
commit 2528503
Showing
19 changed files
with
442 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
app/client/cypress/integration/Smoke_TestSuite/Datasources/MongoDatasource_spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 29 additions & 2 deletions
31
app/client/cypress/integration/Smoke_TestSuite/Datasources/PostgresDatasource_spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,38 @@ | ||
const datasource = require("../../../locators/DatasourcesEditor.json"); | ||
const queryEditor = require("../../../locators/QueryEditor.json"); | ||
|
||
describe("Create, test, save then delete a postgres datasource", function() { | ||
let datasourceName; | ||
|
||
describe("Postgres datasource test cases", function() { | ||
it("Create, test, save then delete a postgres datasource", function() { | ||
cy.NavigateToDatasourceEditor(); | ||
cy.get(datasource.PostgreSQL).click(); | ||
cy.getPluginFormsAndCreateDatasource(); | ||
cy.fillPostgresDatasourceForm(); | ||
cy.testSaveDeleteDatasource(); | ||
cy.get("@createDatasource").then(httpResponse => { | ||
datasourceName = httpResponse.response.body.data.name; | ||
}); | ||
cy.testSaveDatasource(); | ||
}); | ||
|
||
it("Create a new query from the datasource editor", function() { | ||
cy.saveDatasource(); | ||
cy.get(datasource.createQuerty).click(); | ||
cy.wait("@createNewApi").should( | ||
"have.nested.property", | ||
"response.body.responseMeta.status", | ||
201, | ||
); | ||
|
||
cy.get(queryEditor.deleteQuery).click(); | ||
cy.wait("@deleteAction").should( | ||
"have.nested.property", | ||
"response.body.responseMeta.status", | ||
200, | ||
); | ||
|
||
cy.GlobalSearchEntity(`${datasourceName}`); | ||
cy.get(`.t--entity-name:contains(${datasourceName})`).click(); | ||
cy.deleteDataSource(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.