Commit graph

90 commits

Author SHA1 Message Date
Ejaaz Khan
435b6d0144
Merge pull request #32143 from marination/list-view-buttons
fix: Render List row buttons as columns
2025-07-31 12:13:20 +05:30
Soham Kulkarni
64db88228f
refactor: seperate blogs into a seperate app (#32737)
* fix: remove doctypes,workspace blocks, files

* fix: minor python tests and UI tests

* fix: remove blog post from tests

* fix: remove blogger as role for tests

* fix: add check for if doctype exists

* fix: ui test

* fix: more cleanup

* fix: cleanup comments and fix test_query

* fix: resolve conflicts

* fix: add warning and handle comments
2025-07-28 14:35:02 +05:30
marination
723a95c955 Merge branch 'develop' into list-view-buttons 2025-07-24 11:16:10 +02:00
Ankush Menat
b443851ce1
test: fix test data generation code (#33314)
This never worked, it was just silently ignored till now.
2025-07-14 09:19:53 +00:00
sokumon
4b3e256045 fix(test): insert translation 2025-07-14 12:49:26 +05:30
Sagar Vora
b3e1eda4c8
feat: global frappe.in_test flag (#32960)
* feat: global `frappe.in_test` flag

* feat: helper utility to toggle `frappe.in_test`

* fix: use `toggle_test_mode` util

* fix: use `frappe.in_test`

* chore: add comment explaining global `in_test`

* chore: ignore commit replacing flag usage

* test: temporarily disable `frappe.in_test`

this worked earlier because flag was set in werkzeug.local which was separate for API test client

* test: add comment explaining change
2025-06-17 19:19:31 +05:30
Sagar Vora
b7fb654688 chore: use frappe._dev_server 2025-06-17 14:26:17 +05:30
Akhil Narang
309c18cabb
fix(ui_tests): create email account
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-04-23 17:54:43 +05:30
marination
e9fed9dcc9 fix: Render List row buttons as columns to avoid overflow
- In the RHS, the buttons caused the like button to flow outside the container
2025-04-15 18:18:31 +02:00
Rushabh Mehta
b7758be1b5 fix(test): fix tests 2024-08-14 17:08:01 +05:30
Rushabh Mehta
057d32a02d fix(test): complete workspace setup before running UI tests 2024-08-07 18:16:52 +05:30
Rushabh Mehta
0837a39335 fix(test): complete workspace setup before running UI tests 2024-08-07 09:50:17 +05:30
Ankush Menat
de9ac89748 style: re-format with ruff 2024-02-05 18:53:33 +05:30
barredterra
c35476256f refactor: simplify conditional logic
Command: `sourcery review --fix --enable de-morgan .`
2023-12-05 11:14:41 +01:00
Ankush Menat
1b406edd54 feat: Desk User role 2023-08-28 22:31:23 +05:30
Suraj Shetty
77e5ad26fe
Merge pull request #21819 from marination/attachments-access 2023-08-17 09:46:30 +05:30
marination
d9e4791b15 chore: Use lighter files as test fixtures 2023-08-09 17:29:56 +05:30
barredterra
b553ed98d8 refactor: inline immediately returned variable
Inline a variable to a return in the case when the
variable being declared is immediately returned
2023-08-08 18:09:49 +02:00
marination
140595f587 test: Sidebar attachments UX
- Added 10 royalty free images from 'https://unsplash.com/images/stock/royalty-free'
- Test to check state of attachments actions through different user actions
- UI Helper function to create ToDo and add max attachment limit of 12
2023-07-31 19:00:00 +05:30
Shariq Ansari
3b2f2ef418 test: fix sidebar UI Test 2023-07-16 12:06:48 +05:30
Ankush Menat
4ece3da47d test: publish_progress ui test 2023-07-01 18:06:34 +05:30
Ankush Menat
ab44a9cca8 test: socketio tests
- conflict check (moved from form)
- list view updates
- custom event subscribe and recieve
2023-07-01 12:43:53 +05:30
Raffael Meyer
417f2bbd97
Merge branch 'develop' into fix-note-2 2023-04-05 19:14:28 +02:00
Marica
f206b1582e
test: Kanban Test fails to remove System Manager role (#20505)
* fix: Kanban Test fails to remove System Manager role

- As there's only one user with System Manager role, role removal is reverted
- Add another user with this role, so that role removal on test user works

* chore: Reuse `create_test_user` util

* fix: user switching in kanban test

---------

Co-authored-by: barredterra <14891507+barredterra@users.noreply.github.com>
2023-04-02 15:14:40 +05:30
barredterra
cff29e23b0 test: route to form
Test routing to User form instead of Note
2023-03-08 18:21:25 +01:00
barredterra
f3c30065a2 test: web form with new Note behaviour 2023-03-08 17:17:14 +01:00
Ankush Menat
1eaca4e1d5
fix: RSS feed escaping (#19546)
if title contains reserved chars then malformed XML is generated.

Try title with ampersand in it.

[skip ci]
2023-01-10 11:45:31 +05:30
marination
49143922c5 chore: Kanban and ToDo UI test helpers
- `create_admin_kanban` and `create_todo` UI test helpers
- `switch_to_user` Cypress command: logs out and logs in as specified user
- Used `remove_role` in permissions test
- Used `switch_to_user` command in test helper
2022-12-28 23:00:00 +05:30
Sagar Vora
6e896aa412 fix: decorator usage 2022-11-21 17:17:18 +05:30
marination
4cd80bd279 fix: Avoid caching unsaved documents and secure whitelist decorator
- Avoid caching documents like 'new-item-1', default to doctype perms instead
- Use secure `whitelist_for_tests` decorator instead
2022-11-21 16:41:37 +05:30
Marica
eec7a7fd13
Merge branch 'develop' into get_role_permissions-js-consistency 2022-11-21 14:03:17 +05:30
marination
ed2804d1c5 test: Cypress test to check basic has_perm and get_perm JS APIs
- Test removes System Manager role for user and expects certain perms
- On Kanban Board DocType, only System Manager is allowed to print/export/email/report/share
- DocType level test only
2022-11-21 13:41:04 +05:30
Ankush Menat
f488a4953f
chore: validate ui test helpers at runtime (#18922)
[skip ci]
2022-11-17 18:17:22 +05:30
Ankush Menat
ad7c0816f8
fix: prevent deleting standard doctypes in prod (#18803) 2022-11-08 21:27:41 +05:30
Shariq Ansari
b0c1e400ea
feat: configurable default views (#18409)
Co-authored-by: hrwx <himanshuwarekar@yahoo.com>
Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
Co-authored-by: Ankush Menat <ankush@frappe.io>
2022-10-17 16:36:01 +05:30
Ankush Menat
0896873c8a test: add test role to user 2022-09-10 12:48:33 +05:30
Ankush Menat
a6b341bd59 test: fix tests using admin account 2022-09-10 12:48:33 +05:30
Ankush Menat
f07bc3b369 test(UI): use non-admin user for tests 2022-09-10 12:48:33 +05:30
Ankush Menat
e397b27d29 test: upgrade cypress from v6 to v10
chore: run cypress migrator

fix: specPattern should be an array

test: correct intercept URL

This is breaking change in cypress 7.0

test: make list view test rerunnable

test: redo undo tests and add compare doc

test: scroll to action button

chore: drop flaky tests

fix: remove scroll behaviour

fix: clear filters before running count test

test: input delay causes flake
2022-09-02 17:47:30 +05:30
Ankush Menat
e8af6b2c16 feat: make attachments public on doctypes
When this checkbox is checked, while uploading docs using fileuploader
the default visibility will be set to "public".

At present all uploaded attachments are private, however in following
cases it makes sense to set default as public:

1. Blog post
2. Item catalog
3. Website item

Considering this we decided to add this configurtion so developers can
specify sane default while user still has control over it using
"Customize form"

Enabled this for "blog post" doctype

Unrelatd change: consistent "form settings" section on DocType and customize
form
2022-08-26 12:42:26 +05:30
Ankush Menat
2eec621e95 chore: db.get_all -> get_all
Reduces 1 pointless function call.
Function calls are also not "super cheap" in python.
2022-08-22 11:35:14 +05:30
Himanshu
2aa140d4c3
chore: set correct translation for ui tests
Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
2022-08-11 13:47:21 +01:00
Himanshu
e68aac866f
Merge branch 'develop' into merge_translated_doctypes 2022-08-10 18:49:04 +01:00
Shariq Ansari
cfb56688e9
refactor: Multi Step Web Form (#17783) 2022-08-10 18:05:20 +05:30
hrwx
b01929405d refactor: translatable doctypes 2022-08-05 21:38:10 +01:00
Ankush Menat
81b37cb7d2
refactor: clean up code to py310 supported features (#17367)
refactor: clean up code to py39+ supported syntax

- f-strings instead of format
- latest typing support instead of pre 3.9 TitleCase
- remove UTF-8 declarations.
- many more changes

Powered by https://github.com/asottile/pyupgrade/ + manual cleanups
2022-07-01 11:51:05 +05:30
Shariq Ansari
5c3b448c09 refactor: used list comprehension 2022-04-22 16:59:03 +05:30
Suraj Shetty
c0c5b2ebdd
style: format all python files using black (#16453)
Co-authored-by: Frappe Bot <developers@frappe.io>
2022-04-12 10:59:25 +05:30
Jannat Patel
f787d101e1 fix: conflicts in ui test helper 2022-03-19 10:14:34 +05:30
mergify[bot]
b176443792
Merge pull request #16070 from shariquerik/grid-search-feat
feat: Grid Search
2022-03-17 07:03:44 +00:00