1
0
mirror of synced 2026-01-14 21:06:21 -05:00
Commit Graph

50 Commits

Author SHA1 Message Date
Lake Mossman
60da9e470a [Connector Builder] Add Segment event tracking (#21686)
* direct connector builder to first workspace and fix routing

* add connector builder namespace and actions

* track connector builder start event

* track api url created event

* track auth method select

* fix action description

* track user input events

* track sidebar events

* track stream creation

* track copying stream

* track stream delete

* track stream test success/failure

* track download yaml and fix yaml file name

* track events for switching between ui/yaml

* track events for overwriting and merging schemas

* fix stream test failure/success events and add tracking of test initiation

* do not send schema contents in events

* track when stream is selected from testing panel

* fix typo

* handle initial setup completed in e2e tests

* add warning about not putting sensitive info into URL fields

* fix before in e2e test
2023-01-25 15:13:00 -08:00
Lake Mossman
fe4f37c0b6 🪟🔧 use https instead of http for localhost:3000 in e2e webapp tests (#21874)
* use https instead of http for localhost:3000 in e2e webapp tests

* Undo changes to :8000 urls
2023-01-25 20:15:36 +00:00
Vladimir
7f33f39809 🪟 🚦 E2E tests: clean up matchers (#20887)
* improve serviceTypeDropdownOption selector

* add test ids to PathPopout component(s)

* add unique id's to table dropdowns

* extend submitButtonClick to support optional click options

* update dropdown(pathPopout) matchers

* add test-id to Overlay component

* remove redundant function brackets

* revert changes onSubmit button click

* fix dropDown overlay issue

* move all duplicated intercepters to beforeEach

* add test id's to Connections, Sources and Destinations tables

* add table helper functions

* update source page actions

* intercepter fixes

* update createTestConnection function with optional replication settings

* remove extra Connection name check

* replace "cypress-postgres" with "pg-promise" npm package

* update cypress config

* Revert "update createTestConnection function with optional replication settings"

This reverts commit 8e47c7837b.

* Revert "remove extra Connection name check"

This reverts commit dfb19c7dd4.

* replace openSourceDestinationFromGrid with specific selector

* replace openSourceDestinationFromGrid with specific selector

* turn on test

* add test-id's

* fix selectors

* update test

* update test snapshots

* fix lost data-testid after resolve merge conflicts

* remove extra check

* move clickOnCellInTable helper to common.ts file

* remove empty line and comments

* fix dropdownType

* replace partial string check with exact

* extract interceptors and waiters to separate file

* fix selector for predefined PK

* fix selector

* add comment regarding dropdown
2023-01-19 17:21:01 +02:00
Vladimir
5f29824ed8 🪟 🚦 Fix connection tests naming in webapp e2e testing (#21463)
* fix connection test naming issue

* fix connection test naming issue
2023-01-18 15:34:25 +02:00
Jimmy Ma
c6b8279386 Add dependencies to docker-compose (#19321)
* Revert "Revert "Add dependencies to docker-compose (#19257)" (#19306)"

This reverts commit b16f28fd4d.

* Bump docker-compose version

* test

* Revert "test"

This reverts commit c3b28c9ec3.

* Bump docker compose version to 3.8

* test

* test

* Use a newer docker for platform build

* test

* Use docker compose v2

* Update docker for frontend e2e

* Use docker compose v2 for e2e tests

* Update tools to use docker compose v2

* Update more docker compose references to v2

* Update docker compose usage in docs

* Update deploying airbyte docs

* Fix permission

* Case insensistive check

* Add extra mention for docker compose in upgrading airbyte

* Improve upgrade docker note
2023-01-12 10:41:00 -08:00
Vladimir
c5e5659ebe 🪟 🚦 E2E: Fix duplicated database object warning (#20926)
* replace "cypress-postgres" with "pg-promise" npm package

* update cypress config

* update userDefineConnection type and naming

* Update airbyte-webapp-e2e-tests/cypress/plugins/index.ts

Co-authored-by: Mark Berger <mark.berger@globallogic.com>

Co-authored-by: Mark Berger <mark.berger@globallogic.com>
2023-01-12 16:01:46 +00:00
Joe Reuter
f61a790a07 Connector builder: E2e tests (#21122)
* wip

* wip

* e2e tests for connector builder server

* rename function

* clean up

* clean up a bit more

* fix path

* fix and add documentation

* more documentation

* stabilze

* review comments
2023-01-10 12:44:09 +00:00
Teal Larson
63446e6498 🪟 🐛 Focus Connection Name input on field selection (#20162)
* fix using autofocus

* see if this fixes e2e

* debug e2e

* cleanup
2023-01-03 18:10:52 +00:00
Sofiia Zaitseva
6fb1971392 Add test for checking stream view (#20073)
add test for checking stream view
2022-12-14 19:38:52 +02:00
Joe Reuter
fbba4ec95b adjust e2e readme (#20305) 2022-12-12 14:55:48 +01:00
Tim Roes
bec8ef2f8e 🪟🔧 Fix node version on CI (#20287)
* Fix node version on CI

* Use lts/gallium

* Restore setup-node actions where needed

* Package-lock changes

* Regenerate package-lock.json
2022-12-12 12:34:12 +01:00
Sofiia Zaitseva
da6a015b25 enable test due to bug fixing (#20157) 2022-12-12 10:16:57 +02:00
Edmundo Ruiz Ghanem
1c02097582 🪟 🧹 Improve and fix linting in webapp-e2e-tests (#20134)
* Apply similar eslint rules to the webapp project and fix outstanding issues

* add paths to e2e tsconfig (for webstorm)
2022-12-07 15:38:57 -05:00
Sofiia Zaitseva
d16f673c87 🪟 🚥 Add tests for verify sync mode options (#16549)
add tests for checking sync mode options
2022-11-30 12:03:23 +02:00
letiescanciano
8eac44ce9a 🪟🧪 Remove empty state page when there are no connectors (#19112)
* 🪟🧪 Remove empty state page when there are no connectors

Demo: https://www.loom.com/share/6c2860ec8f0a4d95b80eb024f848bdf6

* Remove unused components

* remove unnecesary images

* fix card broken layout
2022-11-29 16:04:00 +01:00
Vladimir
66edbfbbec 🪟 🧪E2E testing: DB data manipulation + Catalog Diff modal test cases (#19447)
* add cypress-postgres package

* fix plugins/index.ts warnings

* fix plugins/index.ts warnings

* setup test db actions

* add setup db (just for testing purpose)

* add create db command to gradle

* Revert "add create db command to gradle"

This reverts commit bc0f350fbd.

* add test-id to components

* update db queries in tests

* fix format

* add tests with diff modal

* remove 'only' flag

* update failed snapshots

* update aria label and data-testid in components

* move selectors to separate pages

* update tests

* update test snapshots

* update test since data-testid was added
2022-11-28 18:19:20 +02:00
Tim Roes
d66dc88e6d 🪟🎉 Remove the onboarding page (#19539)
* Remove the onboarding page

* Fix e2e tests
2022-11-17 16:00:17 +01:00
Sofiia Zaitseva
065cf66aea Add tests for checking Unsaved changes modal (#19080)
add tests
2022-11-14 18:32:14 +02:00
Mark Berger
79e895964b Replaced react-select menu with headless ui menu source and destination buttons (#17664)
* Replaced react-select menu with headless ui menu

- Code refactoring
- Added keyboard interaction
2022-11-11 00:03:29 +02:00
Alex Birdsall
1d2a4baf6b Cypress initial cleanup pass (#16189)
* Update README with instructions

* Prevent test failures from intentionally-thrown errors

* Rephrase cypress open instructions in README

* Add CI repro documentation
2022-10-14 09:22:37 -07:00
Krishna (kc) Glick
4d73eb05f4 Improve E2E testing around the Connection Form (#17577)
* Added an e2e test: creates a connection, then edits the schedule type

* Schedule types successfully tested!

* Removing .only

* Prefix testing

* Analytics calls fire as expected

* Strict connection save check for schedule type

* better check

* Fixing failing tests

* Lake CR

* Update airbyte-webapp-e2e-tests/cypress/integration/connection.spec.ts

* Can't test
2022-10-07 13:55:59 -04:00
Lake Mossman
0ff7234504 make FE E2E tests more reliable (#16759)
* make tests more reliable

* switch back to localhost

* run test 100 times

* pass props through to Text element

* ensure names are unique from one test run to the next

* fix test result check
2022-09-17 11:21:44 -07:00
Teal Larson
dd4b7be5ca 🪟 🧹 Display returned error messages on replication view (#16280)
* display error messages if they exist

* get it working with styled components first

* migrate to scss module

* use variables and text component

* add data-id back for cypress

* cleanup from pr review
2022-09-15 11:30:43 -04:00
Lake Mossman
ed1ff0314f comment out flaky test suite while it is being investigated (#16752) 2022-09-14 14:45:53 -07:00
Harshith Mullapudi
cfeeeed67d feat: added cron field to connections form (#16375)
* feat: added cron field to connections form

* fix: tests are failing for formConfig

* fix: made changes requested

* fix: tests are failing for formConfig

* fix: tests are failing for formConfig

* fix: tests are failing for formConfig

* fix: tests are failing in cypress

* fix: merge conflicts

* fix: tests are failing

* fix: validation error for formik fields

* fix: tests are failing

* fix: tests are failing

* Update airbyte-webapp/src/views/Connection/ConnectionForm/components/ScheduleField.tsx

Co-authored-by: Krishna (kc) Glick <krishna@airbyte.io>

* Update airbyte-webapp/src/views/Connection/ConnectionForm/components/ScheduleField.tsx

Co-authored-by: Krishna (kc) Glick <krishna@airbyte.io>

* fix: make the requested changes

* fix: tests are failing

* fix: tests are failing

* feat: added cron test for the string

* Update airbyte-webapp/src/views/Connection/ConnectionForm/formConfig.test.ts

Co-authored-by: Lake Mossman <lake@airbyte.io>

* fix: error message for invalid cron string

Co-authored-by: Krishna (kc) Glick <krishna@airbyte.io>
Co-authored-by: Lake Mossman <lake@airbyte.io>
2022-09-14 22:31:59 +05:30
dependabot[bot]
18d3e5c68c Bump async from 3.2.0 to 3.2.4 in /airbyte-webapp-e2e-tests (#13821)
Bumps [async](https://github.com/caolan/async) from 3.2.0 to 3.2.4.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/master/CHANGELOG.md)
- [Commits](https://github.com/caolan/async/compare/v3.2.0...v3.2.4)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Krishna (kc) Glick <krishna@airbyte.io>
Co-authored-by: Teal Larson <LARSON.TEAL@GMAIL.COM>
2022-09-12 17:30:21 -04:00
Lake Mossman
787e87dd92 Exclude webapp from spotless styling (#16455)
* exclude webapp from spotless styling

* also exclude airbyte-webapp-e2e-tests

* add comma

* add prettier to airbyte-webapp-e2e-tests

* run prettier on airbyte-webapp-e2e-tests
2022-09-09 12:19:46 -07:00
Sofiia Zaitseva
504389af32 15700 add tests for PokeAPI (#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 (#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>
2022-09-02 19:40:46 +03:00
Harshith Mullapudi
4016c1473d 🪟 🧹 Use scheduleData instead of schedule for connection (#15924)
* refractor: use scheduleData instead of schedule for connection

* refractor: move away from ConnectionSchedule type

* fix: make the requested changes

* fix: send schedule in create connection call

* fix: use scheduleData and scheduleType completely

* fix: use scheduleData instead of schedule
2022-08-30 10:49:51 +05:30
Parker Mossman
614ebb615d Multi-Cloud MVP: Combined branch for testing and merge (#15997)
* add new Configs for multi-cloud

* add api endpoints for setting workflow attempt id and createOrUpdate state

* update activities to call APIs instead of persistence

* workerApp refactor to separately initialize control or data plane dependencies

* modify syncWorkflow to call new activity that decides which task queue for data plane tasks

* misc to get build working

* move StateConverter to worker, so that server and worker can both access without needing to introduce any new dependencies

* update configs - remove extranneous helpers, clarify naming and comments, removed COMBINED value

* forgot to actually remove COMBINED enum value, this removes it

* add WorkerApp todo for breaking API Client into a scoped client

* rename decideTaskQueueActivity var to routeToTaskQueueActivity

* pr comments

* naming fix

* refactor secretHydrator instantiation

* WorkerApp PR feedback: move API client logic to separate class, use updated configs, etc

* add a RouterService class that is injected into RouteToTaskQueueActivityImpl

* AttemptApi cleanup and added unit test coverage

* fix confusion between AttemptId and AttemptNumber in new AttemptApi

* remove unused getDataPlaneSecretsHydrator

* remove unused import

Co-authored-by: Xiaohan Song <xiaohan@airbyte.io>
2022-08-26 14:10:19 -07:00
Lake Mossman
377a1499cf Move 'updateNew' logic into 'update', and remove 'updateNew' (#15863)
* save

* clean up more usages and remove withRefreshedCatalog

* make webapp use correct endpoint

* add back intercept

* fix acceptance test

* fix log

* remove 'new' from test name
2022-08-23 11:36:48 -07:00
Lake Mossman
81eac50e12 🪟 🎉 remove sub-1 hour frequency options (#15708)
* remove sub-1-hour frequency options, and add current connection frequency to dropdown

* fix e2e test

* add additional frequency to end of options instead of beginning

* use better jest expect methods

* refactor getFrequencyConfig util function to just use connection schedule values

* move frequencyConfig to a TS file and remove unnecessary type field

* use named export

Co-authored-by: Tim Roes <tim@airbyte.io>
2022-08-18 09:49:17 -07:00
Tim Roes
87dcfd2dea 🪟 Per-Stream state new flow (#14634)
* [WIP] new per stream flow

* Start work on ModalSerice

* Continue work

* Fix typo

* Change wording

* Add todos and remove dead code

* Remove dead message

* Adjust to new API

* Adjust to new modal changes

* Remove debug output

* Fix e2e test

* Add data-testids

* Adjust for PR review

* Switch to new ModalFooter/Body components

* Add ModalService tests

* Downgrade user-events again

* Only compare selected streams

* Update airbyte-webapp/src/locales/en.json

Co-authored-by: Andy Jih <andyjih@users.noreply.github.com>

* Update airbyte-webapp/src/locales/en.json

Co-authored-by: Andy Jih <andyjih@users.noreply.github.com>

* Remove redundant space

Co-authored-by: Andy Jih <andyjih@users.noreply.github.com>
2022-07-19 20:01:56 +01:00
Vladimir
1e808ec7ee 🪟 🐛 Update connection name - fix minor issues (#13550)
* align text to center in edit mode

* fix firing onChange event twice

* fix wrong prop drilling

* fix issues:
- unable to delete last chart in input
- delete the whole name by 'select all' command
- trim entered names
- don't allow to save empty names

* remove debug from test

* remove unused import

* update tests due to changes in base Input component

* reorder default input data-testId in order to have ability to overwrite it

* fix e2e tests

* Improvements:
- replace "props: any" with right types
- rename 'addEnterEscFuncForInput' to more general and self-describable name

* replace styled components with scss modules

* add eslint-plugin-css-modules rules

* Fixes:
- turn on eslint css modules rule as error
- remove unused styles

* minor fix after master merge

* Revert "Fixes:"

This reverts commit d7fb68abc6.

* Revert "add eslint-plugin-css-modules rules"

This reverts commit 0333a70108.

* apply suggested changes after PR review

* add updates due to changes in PR #13914

* add react-app-rewired to tweak webpack config and fix the css order issue

* remove test flag "CI=true"

* Revert "add react-app-rewired to tweak webpack config and fix the css order issue"

This reverts commit 81d7ba42
2022-07-08 21:11:58 +03:00
Tim Roes
2e60a1cc1e Improve Gradle build and fix storybook (#13719)
* Improve Gradle build and fix storybook

* Run all copy tasks after copyDocker
2022-06-13 21:36:31 +02:00
Edmundo Ruiz Ghanem
a0e37801e7 Show manual frequency in connection table and use intl for frequency values (#13621)
* Update frequency cell in connection table to return Manual when manual sync

* Move frequency labels to en.json

* Update frequencyConfig text prop to type
Add getFrequencyConfig utility to correctly find frequency configuration

* Fix testid for createTestConnection dropdown

* Show manual in Replication settings dropdown when schedule is manual

* Split form.every string into minutes and seconds with pluralization

Signed-off-by: Edmundo Ruiz Ghanem <edmundo@airbyte.io>

* Updte testid in update connection test
2022-06-10 12:06:07 -04:00
Edmundo Ruiz Ghanem
609541d9ae Migrate cypress tests and commands to TypeScript (#13091)
* Migrate cypress tests and commands to TypeScript

* Cypress added plugins to tsconfig

* Update cypress plugins file to .ts
2022-06-03 13:00:58 -04:00
Harshith Mullapudi
ae2aea8b12 feat: connection name can be edited through UI (#12803)
* feat: connection name can be edited through UI

* fix: changes requested by edmundito

* 1. feat: Added connection name edit in connection settings
2. feat: Added connection name in listing connections page
3. fix: requested changes

* chore: handle UI and e2e tests

* chore: fix e2e tests for webapp

* fix: UI margins

* fix: webe2e tests

* fix: input is not focused when clicked on name

* fix: disable input while making API call

* feat: added enter/esc functionality to connection name edit
2022-05-31 10:49:41 +05:30
Evan Tahler
40d1dc1421 Faker source gains purchases and products (#13248)
* Faker source gains purchases and products

* ranges start at 1

* fix nits

* lint

* user_ids start at 1

* v0.1.3

* fix IDs in test output recods

* auto-bump connector version

* lint

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2022-05-27 16:14:59 -07:00
Teal Larson
f687136641 Documentation Side Panel open by default (#13130)
* remove documentation link

* remove X from documentation panel

* cleanup hook sending empty string

* documentation panel open by default

* add padding to edit source/destination pages

* clean up styling

* use laptop size viewport

* remove unneeded suspense

* cleanup

* cleanup

* don't show docs or overlay on mobile

* use react-use windowSize
2022-05-27 14:07:14 -04:00
Tim Roes
524605cced Fix bugs in form behavior (#13052)
* Fix bugs in form behavior

* Fix e2e tests

* Clear timeout properly
2022-05-25 17:43:20 +02:00
Peter Hu
83817cc33f Configure test retries in Cypress (#11816)
* configure cypress retries

* test failure

* no failures
2022-04-07 22:25:34 -07:00
Artem Astapenko
70cf071f79 Move from rest-hooks to react-query (#11524)
* Refactor sync and rest connections calls

* Refactor connections store to react-query

* Fix imports

* Refactor workspaces to react-query

* Remove SourceDefinition and DestinationDefinition resources

* Refactor Source and Destination resources

* Move discover_schema request to react-query

* Remove rest-hooks specific code

* Fix lint errors

* Fix lint

* Update package.lock

* Disable refetch

* Minor code update

* Fix wrong port

* set initialSetupComplete for /get request in e2e

* Add query mocks

* Use completed setup prop instead of true

* Fix e2e assignment

Co-authored-by: Tim Roes <tim@airbyte.io>

* Add invalidation scopes

* Remove not required invalidation

Co-authored-by: Tim Roes <tim@airbyte.io>
2022-04-01 20:20:06 +03:00
Tim Roes
55a87bf291 Select connector type before name (#11388)
* Select connector type before name

* Fix typos

* Fix e2e tests

* Shorten SetDefaultName
2022-03-25 11:50:55 +01:00
dependabot[bot]
5b2ded7c3a Bump minimist from 1.2.5 to 1.2.6 in /airbyte-webapp-e2e-tests (#11380)
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-24 11:01:07 +01:00
Tim Roes
d73af697e4 Use cypress dashboard and stabilize e2e tests (#10807)
* Record e2e tests to cypress dashboard

* Make env variable accessible in script

* Improve e2e_test script

* Properly wait for server to be ready

* Isolate test suites better

* More test isolation

* Revert baseUrl for development
2022-03-03 18:29:07 +01:00
Artem Astapenko
f82dd2d3e2 New connection page design (#9025)
* Add replication page. Remove connection form from settings

* Fix styles for delete block

* Add transfer form

* Fix transfer

* Remove source and destination icon and name from connection form

* Remove frequency field from edit connection form

* Add transformation view

* Update title for connection page

* Hide transformation page

* Edit search in connection form

* Add CollapsibleCard, FormCard

* Edit columns

* Split connection pages

* Implement core views for new connection form

* Add info tooltip

* Edit sync cell

* Edit styles for checkbox

* Edit radiobutton styles

* Fix styles

* Add toggle

* Extract logs to separate service

* Fix styles for sync mode dropdown

* Bulk fix

* Make namespace definition an optional field

* Implement bulkEdit for syncMode

* Refactor bulk edit. Refactor table components

* Add bulk reset

* Move components to style folder

* Add custom guard for operations

* Replace formatted message with FormattedHtmlMessage

* Minor review comments

* Add ts-expect-error

* Use gap for css

* move files a bit

* Fix issue with unselecting manual sync

* Remove ?? [] condition

* Add message for unsupported operation

* Remove top from tooltip

* Fix e2e tests for connection

* fix update connection e2e test

* Fix e2e tests for connection update

* Do not display options for keys when is not possible

Co-authored-by: Julia Astapenko <julia.chvyrova@gmail.com>
2022-02-21 16:01:42 +03:00
Artem Astapenko
5ffc880c3a Some updated for e2e tests (#9091) 2022-01-06 13:17:34 +03:00
Iakov Salikov
467f047db3 Add cloud e2e tests (#7523)
* Implement e2e tests

* Revert cypress tests

* Fix testids

* Bump versions

* Rename submit button command

* Bymp cypress version

Co-authored-by: Artem Astapenko <jamakase54@gmail.com>
2021-12-22 18:38:13 +03:00
Charles
2c7f239182 airbyte-e2e-testing => airbyte-webapp-e2e-tests (#8892)
* move webapp tests module
2021-12-20 13:16:08 +03:00