Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

15700 add tests for PokeAPI #15701

Merged
merged 11 commits into from
Sep 2, 2022

Conversation

SofiiaZaitseva
Copy link
Contributor

No description provided.

@CLAassistant
Copy link

CLAassistant commented Aug 16, 2022

CLA assistant check
All committers have signed the CLA.

@SofiiaZaitseva SofiiaZaitseva changed the title add tests for PokeAPI 15700 add tests for PokeAPI Aug 16, 2022
@timroes timroes added the area/frontend Related to the Airbyte webapp label Aug 26, 2022
@timroes timroes requested a review from ambirdsall August 26, 2022 15:14
@github-actions github-actions bot added the area/platform issues related to the platform label Aug 29, 2022
@SofiiaZaitseva SofiiaZaitseva marked this pull request as ready for review August 30, 2022 12:37
@SofiiaZaitseva SofiiaZaitseva requested a review from a team as a code owner August 30, 2022 12:37
Copy link
Contributor

@ambirdsall ambirdsall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left a number of smaller comments about edits for certain lines of code and a vaguer long-term suggestion for organizing the files; but overall, I'm totally fine with the changes in here. Once the suggested changes are in place and there's a passing CI run, I'll be happy to approve this PR. Good work so far!

import { createTestSource } from "./source";
import { createLocalJsonDestination } from "./destination";
import { createPokeTestSource, createPostgresSource } from "./source";
import { openAddSource } from "pages/destinationPage"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The most common pattern for a cypress/commands/ directory is to create general-purpose utilities for interacting with a specific app: shortcuts for logging in as a given user, selecting an element by a conventional selector (like our use of data-testid attributes), or working with more complicated UI elements like dropdowns are all standard examples.

I have no serious problem with the code as you've written it, but I do think that pattern is a very useful way to work with Cypress tests; in the long run, I'd recommend reorganizing things a little bit, so that the utilities in pages/ import utilities from files in commands/ but the utilities in commands/ don't import from files in pages/.

@SofiiaZaitseva SofiiaZaitseva force-pushed the Sofiia_UpdateConnection_ExtendE2ETests branch from 4c9ccbc to 2428bf8 Compare September 1, 2022 20:27
@github-actions github-actions bot removed normalization area/documentation Improvements or additions to documentation area/worker Related to worker kubernetes area/scheduler CDK Connector Development Kit area/connectors Connector related issues labels Sep 1, 2022
@sherifnada sherifnada removed the request for review from a team September 2, 2022 04:45
fix request url and schedule dropdown value
@SofiiaZaitseva SofiiaZaitseva merged commit 504389a into master Sep 2, 2022
@SofiiaZaitseva SofiiaZaitseva deleted the Sofiia_UpdateConnection_ExtendE2ETests branch September 2, 2022 16:40
letiescanciano added a commit that referenced this pull request Sep 5, 2022
* master: (47 commits)
  Add email to identify users analytics call (#16327)
  🎉 Source Amazon Ads: improve `config.start_date` validation (#16191)
  Add comments about intermediate state emission (#16262)
  MySQL Source : Standardize spec.json for DB connectors that support log-based CDC replication (#16216)
  MSSQL Source : Standardize spec.json for DB connectors that support log-based CDC replication (#16215)
  Hide a bunch more destination with potential unsecure API access (#16320)
  Skip unit tests when run-tests is false (#16267)
  Hide Destination connections from UI (#16310)
  Add scheduled task to clean up old files from workspace (#16247)
  Source Google Analytics v4: Re-name google analytics connector (#16306)
  🐛 Source Facebook Marketing: remove "end_date" from config if empty value (re-implement #16096) (#16222)
  Fix github action syntax (#16277)
  Re-name google analytics cionnectors (#16287)
  Bump Airbyte version from 0.40.3 to 0.40.4 (#16275)
  Hide ES and Redis destination connectors from Cloud (#16276)
  15700  add tests for PokeAPI (#15701)
  Add ProtocolVersion to StandardDefs (#16237)
  🪟 🔧 🧹 Migrate attempt `bytesSynced` to `totalStats.bytesEmitted` and cleanup `AttemptDetails` component (#16126)
  Improve behavior of password input field (#16011)
  Improve airbyte-metrics support in the Helm chart (#16166)
  ...
robbinhan pushed a commit to robbinhan/airbyte that referenced this pull request Sep 29, 2022
* 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>
jhammarstedt pushed a commit to jhammarstedt/airbyte that referenced this pull request Oct 31, 2022
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment