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

131 add feature tests #149

Merged
merged 30 commits into from
Mar 6, 2024
Merged

131 add feature tests #149

merged 30 commits into from
Mar 6, 2024

Conversation

leilabb
Copy link
Contributor

@leilabb leilabb commented Mar 5, 2024

Added flow tests for:

  • Sign up
  • Sign in
  • Create a team
  • Create a chat

Had problems importing functions from other files, so some functions are redefined in the test file.

leilabb and others added 29 commits January 12, 2024 14:20
* add key perk to landing page

* fix spelling
* modify copy when creating a new team

* add missing env to gh action/workflow

---------

Co-authored-by: Toni Oriol <[email protected]>
* Change 'fork' to 'clone' and change icon

* Change copy of modal after clicking 'Clone'

* replace fork with clone
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 4.3.9 to 4.5.2.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v4.5.2/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v4.5.2/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Include GitHub Actions version updates.
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v2...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 2 to 4.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](actions/setup-node@v2...v4)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump axios, openai and postmark

Bumps [axios](https://github.com/axios/axios) to 1.6.5 and updates ancestor dependencies [axios](https://github.com/axios/axios), [openai](https://github.com/openai/openai-node) and [postmark](https://github.com/ActiveCampaign/postmark.js). These dependencies need to be updated together.


Updates `axios` from 0.25.0 to 1.6.5
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](axios/axios@v0.25.0...v1.6.5)

Updates `openai` from 3.3.0 to 4.25.0
- [Release notes](https://github.com/openai/openai-node/releases)
- [Changelog](https://github.com/openai/openai-node/blob/master/CHANGELOG.md)
- [Commits](openai/openai-node@v3.3.0...v4.25.0)

Updates `postmark` from 3.0.19 to 4.0.2
- [Release notes](https://github.com/ActiveCampaign/postmark.js/releases)
- [Changelog](https://github.com/ActiveCampaign/postmark.js/blob/main/CHANGELOG.md)
- [Commits](ActiveCampaign/postmark.js@3.0.19...4.0.2)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: indirect
- dependency-name: openai
  dependency-type: direct:production
- dependency-name: postmark
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* update to openai@4 fixes

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Toni Oriol <[email protected]>
* add grouping to chats

* add last 30 days group

* add last year group

* refactor time functions

* change function name

* change func name

* add tests + new grouping function

* refactoring

* add grouping to all chats ever made

* add code fix

* change function name

* change type name

* refactor

* style code

* add tests

* catch future dates¨

* add final fixes
…action

Also adjust DATABASE_URL in env example
@leilabb leilabb requested a review from tonioriol March 5, 2024 08:52
Copy link

render bot commented Mar 5, 2024

@leilabb leilabb requested a review from eriklindgren March 5, 2024 08:52
Copy link
Contributor

@tonioriol tonioriol left a comment

Choose a reason for hiding this comment

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

Do they work for you locally? They dont for me. Im getting timeouts for almost all of them.

@@ -89,6 +89,7 @@

{#if !loading}
<button
name="send"
Copy link
Contributor

Choose a reason for hiding this comment

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

is that necessary for the tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes exactly. There was no other way I could find that targets the send button otherwise.

@leilabb
Copy link
Contributor Author

leilabb commented Mar 6, 2024

Do they work for you locally? They dont for me. Im getting timeouts for almost all of them.

They do work for me locally! Hm why is that...

Copy link
Contributor

@tonioriol tonioriol left a comment

Choose a reason for hiding this comment

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

Ok, I can't make it work locally but if it works for you, I guess it's ok! Nice work :)

@leilabb leilabb merged commit 7d19427 into dev Mar 6, 2024
1 check failed
@leilabb leilabb deleted the 131-add-feature-tests branch March 6, 2024 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants