1
0
mirror of synced 2026-01-02 12:02:47 -05:00
Commit Graph

33 Commits

Author SHA1 Message Date
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