forked from airbytehq/airbyte
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
15700 add tests for PokeAPI (airbytehq#15701)
* add tests for PokeAPI * Update connection.spec.ts add body verification * add page object model for update connection (poke api) test * change structure with using POM * Select sync mode dropdown with a data-testid (airbytehq#16053) * Fix coments * fix goToDestinationPage signature * move fillEmail method * change structure with using POM * Fix coments * Update connection.spec.ts fix request url and schedule dropdown value Co-authored-by: Alex Birdsall <ambirdsall@gmail.com>
- Loading branch information
Showing
17 changed files
with
352 additions
and
107 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { enterDestinationPath, selectServiceType, enterName, enterHost, enterPort, enterDatabase, enterUsername, enterPassword, enterPokemonName } from "pages/createConnectorPage" | ||
|
||
export const fillPostgresForm = (name: string, host: string, port: string, database: string, username: string, password: string) => { | ||
cy.intercept("/api/v1/source_definition_specifications/get").as( | ||
"getSourceSpecifications" | ||
); | ||
|
||
selectServiceType("Postgres"); | ||
|
||
cy.wait("@getSourceSpecifications"); | ||
|
||
enterName(name); | ||
enterHost(host); | ||
enterPort(port); | ||
enterDatabase(database); | ||
enterUsername(username); | ||
enterPassword(password); | ||
}; | ||
|
||
export const fillPokeAPIForm = (name: string, pokeName: string) => { | ||
cy.intercept("/api/v1/source_definition_specifications/get").as( | ||
"getSourceSpecifications" | ||
); | ||
|
||
selectServiceType("PokeAPI"); | ||
|
||
cy.wait("@getSourceSpecifications"); | ||
|
||
enterName(name); | ||
enterPokemonName(pokeName); | ||
}; | ||
|
||
export const fillLocalJsonForm = (name: string, destinationPath: string) => { | ||
cy.intercept("/api/v1/destination_definition_specifications/get").as("getDestinationSpecifications"); | ||
|
||
selectServiceType("Local JSON"); | ||
|
||
cy.wait("@getDestinationSpecifications"); | ||
|
||
enterName(name); | ||
enterDestinationPath(destinationPath); | ||
} |
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 was deleted.
Oops, something went wrong.
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.