0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-25 11:17:50 +01:00
Commit Graph

75 Commits

Author SHA1 Message Date
Michael Matloka
5f7341861f
fix(lemon-ui): LemonInputSelect 2.1 (#24478)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-09-25 16:08:08 +02:00
Julian Bez
1e1a740b6b
chore: Revert "chore(deps): Upgrade to Django 5" (#24668) 2024-08-29 10:51:36 +00:00
Julian Bez
9418235763
chore(deps): Upgrade to Django 5 (#23626) 2024-08-29 10:56:28 +01:00
Michael Matloka
ceccb49800
feat(insights): Make initial single insight load async v2 (#23978)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Anirudh Pillai <anirudhx5@gmail.com>
2024-08-01 13:03:34 +02:00
Juraj Majerik
d1e240eeef
fix(eslint): lint cypress files (#23548) 2024-07-09 09:59:53 +00:00
Raquel Smith
a21ab359db
fix: handle redirect on org delete properly (#22733)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-24 09:44:15 -07:00
Eric Duong
75f5c7c4a9
chore(insights): remove flag hogql-insights-preview (#22651)
* remove flag

* cleanup

* killing code

* update image exporter

* mypy baseline

* test_insight_cache

* kill tests that don't work anymore

* remove settings

* test passes

* test pass

* mypy fixes

* remove commented code

* rename and add capture back in

* remove references to feature flag

* remove the falg

* comment out failing test

* Update UI snapshots for `chromium` (1)

* fix jest

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Fix storybook test

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: Alexander Spicer <aspicer@gmail.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Tom Owers <owerstom@gmail.com>
2024-06-04 13:08:32 +01:00
Ben White
f930bf59cd
chore: Swap to just /api/billing (#22545) 2024-05-30 13:25:02 +01:00
Michael Matloka
3604a1ca66
test(e2e): Treat HogQL insights as fully rolled out (#21722)
* test(e2e): Treat HogQL insights as fully rolled out

* Only intercept /query in `interceptInsightLoad()`

* Remove long-broken `*Premium.cy.ts` tests

* Update e2e.ts

* Don't assume that untyped properties are boolean

* Update test_property.py
2024-04-23 11:48:20 +02:00
Zach Waterfield
06fdcb2051
fix: allow user to go to settings before a product is set up (#21146)
* Allow user to go to settings before a product is set up

* Add a new before onboarding login flow

* Move user-enterprise json to follow other files

* Update user-enterprise.json

* Update user-before-onboarding.json

* Update before-onboarding.cy.ts

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update before-onboarding.cy.ts

* Update user-before-onboarding.json

* Change how the team settings are set

* Update before-onboarding.cy.ts

* Update e2e.ts

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-26 21:22:58 -04:00
Neil Kakkar
36553c5f2c
chore: clean old flags (#21057) 2024-03-25 16:03:31 +00:00
PostHog Bot
3d73992761
chore(deps): Update posthog-js to 1.112.1 (#20782) 2024-03-11 07:48:55 -04:00
PostHog Bot
97e4751421
chore(deps): Update posthog-js to 1.109.0 (#20570) 2024-02-27 09:37:58 -05:00
Bianca Yang
0b8aab629b
fix: Fix Transition Between /products --> Onboarding --> Product Intro Pages (#20491)
* fix some state problems

* add onboarding test for this specific case

* some small updates
2024-02-22 00:35:59 +00:00
Raquel Smith
bed4d790e9
feat: use billing info for PayGateMini (#20438)
* refactor PayGateMini

* cypress command for handling subscription status

* fix
2024-02-20 22:43:48 +00:00
Ben White
f691f1e9a1
chore: Remove old prompts work (#20229) 2024-02-12 08:45:57 +00:00
Li Yi Yu
93774bfa58
chore(surveys): refactor and clean up old flags (#18972)
* refactor and clean up old flags

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-11-30 10:17:30 -05:00
Soon-Mi Sugihara
9b35787855
feat(surveys): Add open-ended choices for multiple and single choice surveys (#18258)
* feat(surveys) Add open-ended choices for multiple and single choice surveys

* Validate question choices in backend

* Update open choice behavior and appearance to reflect posthog-js

* Change multiple and single choice questions to have has_open_choice field

* Fix survey logic test

* Remove key warning

* Change has_open_choice to hasOpenChoice

* Hide Add Open-Ended Choice button behind feature flag

* Remove border from text input

* Pass frontend CI tests
2023-11-22 18:14:37 -05:00
Eli Kinsey
27e183b765
feat(surveys): Improved survey creation flow (#17902)
* create edit survey components for feature flagging

* visual type picker

* organization

* move previews into tooltips

* targeting

* sync preview and accordion

* better presentation view

* Update UI snapshots for `chromium` (2)

* fix migration file lint

* Update UI snapshots for `chromium` (2)

* make collapse panel header easier to see

* label question index

* more fixes

* update

* surveys new creation flow flag

* fix linter spacing

* form appearance file

* Update UI snapshots for `chromium` (2)

* fix

* fix

* Update UI snapshots for `chromium` (2)

* fix targeting

* fix cypress tests

* black

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Li Yi Yu <li@posthog.com>
Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>
2023-10-16 14:38:29 +00:00
Neil Kakkar
6269a4553d
feat(surveys): Add cypress e2e tests (#17920) 2023-10-13 12:40:34 +00:00
Paul D'Ambra
b75813b9bc
chore: update wait-on-action (#17945) 2023-10-12 11:00:40 +00:00
Paul D'Ambra
3c598e1195
fix: e2e testing posthog capture (#17940)
* fix: e2e testing posthog capture

* wat

* wat

* wat:
2023-10-12 11:15:17 +01:00
Paul D'Ambra
5da50e633a
fix: throw error so test failures are not swallowed (#17926)
So obvious in retrospect

If you listen to the Cypress fail event without re-throwing then you swallow all test failures

"fun"

When reviewing #17919 I knew the Cypress tests would have to be failing which is what prompted me to check

Introduced in bbb7ed9 (July 10th!)
2023-10-12 00:51:47 +01:00
David Newell
c3a21ce9f3
chore: add notebook tests (#16715)
* chore: add inital notebooks tests

* match mocks

* Cleanup mocks

* remove unnecessary mocks
2023-07-21 12:46:40 +01:00
Ben White
bbb7ed9968
feat: Added recording of e2e test runs (#16046)
Marius nerd-sniped us to try this out. Recording of Cypress runs.

Co-authored-by: Paul D'Ambra <paul@posthog.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-07-10 15:59:30 +01:00
Luke Harries
368a1e462c
feat: handle if user logged in to other instance and visited a link (#15119)
Co-authored-by: Michael Matloka <dev@twixes.com>
2023-04-21 11:40:29 +01:00
Paul D'Ambra
66dd1638ae
fix: use cached insight if the scene has it (#14842)
* fix: use cached insight if the scene has it

* add a cypress test

* better empty checking

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* slightly less bad

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-03-21 17:10:10 +00:00
Paul D'Ambra
8217ef92ab
fix: reset insight on tab change (#14798)
* fix: reset insight on tab change

* add some cypress tests

* and now a failing test

* refactor cypress file

* don't reset the insight logic

* Update cypress/e2e/insights.dataExploration.cy.ts

* hammer to crack a nut

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* tests are green

* a little cypress massaging

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* more cypress massaging

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* safer network intercept choice

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-03-20 20:03:11 +00:00
Thomas Obermüller
7414ae04ff
test(e2e): convert cypress to typescript (#13513) 2022-12-30 11:23:09 +01:00
Paul D'Ambra
452fa591dd
chore: wait for page to settle before starting tests (#12671)
wait for page to settle before starting tests
2022-11-08 11:03:40 +00:00
Paul D'Ambra
ed049830df
chore: add some cypress tests that exercise turbo mode more (#12350)
* chore: add some cypress tests that exercise turbo mode more

* a little before eaching
2022-10-20 13:24:56 +01:00
Paul D'Ambra
5c72f2d51e
chore: remove some feature flags (#12219)
Removes an unused flag TOOLBAR_LAUNCH_SIDE_ACTION
removes a flag ALLOW_CSV_EXPORT_COLUMN_CHOICE that has been on for cloud users for 23 days
2022-10-17 14:03:35 +01:00
Ben White
6ad9cbb9ea
fix: LemonButton options (#11223) 2022-08-10 15:46:02 +02:00
Paul D'Ambra
36622515f1
fix: home accessibility (#11211)
* feat: test a11y with Cypress

* axe test more pages

* archive a11y violations on success too

* remove date from file path

* don't warn if no accessibility files to upload... they're not on all test jobs

* support switching accessibility tests to failing

* support aria label on lemon buttons

* add story book axe add-on

* Defuckulate the tests

* oops

* can't stop skipping a11y failures for home just yet
2022-08-09 20:01:58 +01:00
Paul D'Ambra
0a6d99c0a6
feat: test a11y with Cypress (#11199)
* feat: test a11y with Cypress

* axe test more pages

* archive a11y violations on success too

* remove date from file path

* don't warn if no accessibility files to upload... they're not on all test jobs
2022-08-09 19:12:41 +01:00
Ben White
893c483adf
feat: LemonButton refactor (#11093) 2022-08-08 08:27:00 +02:00
Emanuele Capparelli
1dfaf539e5
chore: remove date filter experiment (#10688)
* chore: remove date filter experiment

* fix test
2022-07-08 12:26:02 +02:00
Emanuele Capparelli
dfc04afa08
feat: date filter experiment (#10462)
Co-authored-by: Ben White <ben@benjackwhite.co.uk>
2022-07-04 12:46:12 +01:00
Paul D'Ambra
023deb7693
feat: add toolbar launching from the side bar (#10354)
* feat: add toolbar launching from the side bar

* always have an add url button

* fix idiocy

* fix cypress tests

* fix cypress tests, ugh

* fix cypress tests, ugh

* add a toolbar launch button cypress test
2022-06-20 11:04:29 +02:00
Paul D'Ambra
d613f4bd06
chore: upgrade cypress to v10x (#9650)
* update cypress

* really click something that's actually there

* obey cypress and use done

* run cypress 9 in CI

* no need for before each when only one test

* no need to set window size to the default

* get tests passing file by file

* delay checking for a graph in a test

* be more specific cypress

* use cy command

* select text like a human

* silly cypress

* try and avoid cypress deciding that a visible field is not valid

* select delete button correctly

* find save button differently

* try and avoid not always typing the first character

* better trends selections

* use cy command to navigate

* conitnue trying to get tests to pass in CI

* another try at setting feature flag names in CI

* can CI find undo button without a wait?

* better assertion for cypress

* up to v10

* fix splitting specs with v10 path

* show cypress how to wait for the test to finish

* remove redundant file

* change return to satisfy new cypress

* move import
2022-06-09 11:14:21 +01:00
Paul D'Ambra
4519ffb295
chore(cypress): remove component tests (#9323)
* remove tests that have been off for a year

* remove component tests that are covered by main cypress tests

* remove a bunch of component based test setup and upgrade cypress

* get tests running but not all passing on Cypress 9

* don't upgrade yet

* don't upgrade yet
2022-04-02 17:35:14 +01:00
Paolo D'Amico
125486140f
feat(sso): SSO enforcement (#9208) 2022-03-23 18:58:08 +01:00
Marius Andra
20ebfd6b75
feat(storybook): cleanup volume 5 (#9078)
* fix toolbar multiple errors, rearrange mdx stories

* tweak some stories

* add "how to create stories" and "how to mock requests"

* move from __stories__ folders to just __mocks__

* how to build a form and how to use components

* how to build a scene

* fix unrenamed logic
2022-03-17 12:02:19 +01:00
Tim Glaser
da63a728c5
E2E don't login before each test (#8111)
* E2E don't login before each test

* fix
2022-01-18 16:16:44 +01:00
Michael Matloka
b32a77fb56
Release lemonade for self-hosted users (#7059)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-11-11 12:20:01 -08:00
Marius Andra
bc9ebaf712
Release Saved Insights (#6995) 2021-11-09 15:29:05 -08:00
Marius Andra
85aa9f3b74
Fix Cypress component tests (#6461)
* fix component tests

* disable sessions test

* add console errors into cypress output
2021-10-15 12:47:06 +02:00
Marius Andra
00633412cc
Insight logic refactor version 1 - keyed insightLogic (#6310)
* kea test "toNotHaveDispatchedActions"

* fix dashboard logic test

* add props and key to insight logic (has no effect)

* inform about is_sample's uniqueness

* use common InsightLogicProps

* persist state via BindLogic and shared insightProps

* persist hashParams

* remove cached Urls

* upgrade new to saved logic

* upgrade typegen

* patch metadata logic

* always show title if saved insights active

* fix negative bug

* fix interval filter

* go to view mode after saving

* full reload when going from dashboard to insight

* use clean filter

* createInsight is no longer used

* fix tests

* fix setAllFilters

* clean retention table duplicate code, fix test

* scene has its own key

* unify insightLogicProps key logic

* consolidate logic fetching

* fix test

* fix reloads

* clears the scene funnel

* move setInsight to reducer

* stronger clicks on menu items

* remove wait

* clarify testcases
2021-10-08 12:13:23 +00:00
Tim Glaser
5f242b2bed
Solve ospath issue (#5014)
* Solve ospath issue

* try separate cypress cache

* Separate install

* ls

* try

* Try to put everything in same cache

* Remove cypress plugin snapshot

* fix cohorts and funnels
2021-07-07 14:04:39 +02:00
Tim Glaser
bb572272ca
Improve e2e flakeyness, skip Insights spec test (#4869)
* attempt to fix toolbar flakyness

* fix dashboard flakyness

* fix flake

* add retries to components

* Try speeding up build by skipping sourcemaps

* debug components

* show errors

* better error

* don't generate source map

* fix errors

* speed up component tests

* Try empty insights page

* Revert "Try empty insights page"

This reverts commit 68701b3804.

* Skip trends tests for now
2021-06-29 22:20:02 +02:00