Commit graph

549 commits

Author SHA1 Message Date
Ponnusamy
71c09c1320
feat: list-view click and drag on check box to select multiple rows (#20457) 2023-04-03 16:59:23 +05:30
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
Shariq Ansari
6e3ef3dc3d test: fixed failing UI test 2023-03-23 17:53:18 +05:30
Ankush Menat
139d4a87b4 fix: corrected banker's rounding
closes https://github.com/frappe/frappe/issues/19570
2023-03-13 12:30:48 +05:30
Ankush Menat
97ca92e3d1
refactor: change rounding method names (#20299)
These are easy to understand.

Added third method for corrected banker's rounding.
2023-03-10 14:57:15 +05:30
Ankush Menat
68d8a8eadd feat: implement custom rounding in JS 2023-03-08 12:13:42 +05:30
Shariq Ansari
f1a9e51687 test: UI test for number_card workspace block 2023-03-01 19:14:42 +05:30
Devin Slauenwhite
d5ce94d6a5
feat: disable comment count on list view settings. (#20039)
* feat: add list view setting disable column count.

* fix: cast using sbool

* fix: make modified last-child if comment_count is disabled.
2023-02-22 18:17:45 +05:30
Shariq Ansari
766cc94cd1 test: undo/redo UI test 2023-02-21 22:37:10 +05:30
Shariq Ansari
177ca618eb test: fix flaky control_link UI test 2023-01-26 17:05:24 +05:30
Shariq Ansari
114db456f8 test: fix flaky navigation UI test 2023-01-26 16:44:47 +05:30
Shariq Ansari
28e9b44dbc test: fix flaky folder_navigation UI test 2023-01-26 16:19:23 +05:30
Shariq Ansari
ea306db2a2 test: fix flaky view_routing UI test 2023-01-26 16:11:49 +05:30
Shariq Ansari
586613d94c test: fixed failing control_color UI test 2023-01-26 15:36:18 +05:30
Riandrys Góngora Román
ba438fe4a6 test: update docfield property using set_df_property in child table
add UI test with cypress on form.js
update docfield property using set_df_property in child table
2023-01-23 11:26:07 -05:00
Shariq Ansari
8abd144de6 test: fixed failing UI test 2023-01-16 10:24:45 +05:30
Shariq Ansari
f19e7281ae test: added UI test for hide/unhide workspace 2023-01-09 20:41:18 +05:30
Shariq Ansari
a135ac587c test: fixed failing date control UI test 2023-01-05 16:46:24 +05:30
Marica
53563b9283
Merge branch 'develop' into kanban-access-w-perms 2023-01-03 12:37:41 +05:30
Shariq Ansari
4022a5c5f4 test: fixed failing UI test 2023-01-02 21:53:23 +05:30
marination
5b319f0830 test: Check if Kanban Board is not editable by non-system user who does not own the board
- User should only be able to view the board, and drag the cards
- No column actions, no board actions
2022-12-29 23:11:30 +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
Shariq Ansari
d0e68a198b test(UI): force clear text 2022-12-08 18:26:44 +05:30
Shariq Ansari
f11e7c27d7 test(UI): added more UI tests 2022-12-08 17:42:07 +05:30
Shariq Ansari
d1a236d92e chore: removed unsed code 2022-12-06 22:15:08 +05:30
Shariq Ansari
3f00a7993c test: using custom doctype to test form builder 2022-12-06 22:12:59 +05:30
Shariq Ansari
b7fea0ffe5 test: UI Test for basic form builder features 2022-12-06 20:39:56 +05:30
Ankush Menat
c1f3cb101c
test: custom grid buttons (#19073)
[skip ci]
2022-12-01 13:16:00 +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
5d1d3564ef test: Dashboard basic ui test + whitelisting 2022-11-06 10:59:38 +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
2fa5d7636f chore: disable flakey test
This has 29% failure rate and after repeated attempt to fix it, it's
still quite flaky.
2022-10-13 12:07:57 +05:30
Ankush Menat
45645c3f73 feat: consistent, translatable timeline messages (#17526)
reapply accidentally reverted commit

[skip ci]
2022-10-12 22:27:04 +05:30
Ankush Menat
ab3f706948 Revert "feat: consistent, translatable timeline messages (#17526)"
This reverts commit 112c492f3e.
2022-10-12 18:03:57 +05:30
Shariq Ansari
458757708f test: minor change 2022-10-06 18:05:24 +05:30
Shariq Ansari
930f8c34ed test: minor change 2022-10-06 16:52:39 +05:30
Shariq Ansari
2e80f044c2
Merge branch 'develop' into ui-test-fix 2022-10-06 16:08:24 +05:30
Raffael Meyer
112c492f3e
feat: consistent, translatable timeline messages (#17526)
* feat: consistent, translatable timeline messages

* fix: save only filename for attachment comments

The rest of the comment will be added and translated ad-hoc by form_timeline.js

* patch: clean up Comments of type "Attachment"

* feat: further message types

* style: format with prettier

* test: cypress timeline

Timeline now correctly displays "You ..." instead of "{User} ..."

* feat: german transations for timeline comments

* fix: enable auto_commit_on_many_writes

* fix: don't update modified timestamp in patch
2022-10-06 16:05:34 +05:30
Shariq Ansari
36bc9d3142 test: flaky Cypress test 2022-10-06 15:57:49 +05:30
Ankush Menat
45b74861af test: fix broken test
Not sure why there's test on doctype "created by". Makes no sense.
2022-09-10 13:07:37 +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
c400e18979 refactor: drop file upload plugin
Cypress supports this natively now!
2022-09-08 16:51:59 +05:30
mergify[bot]
eb4c4fb7b2
fix: encode docname when routing (backport #17092) (#17374)
(cherry picked from commit c8777c59cf665ab54218cd7bf9accd1d8e22ddf9)

Co-authored-by: phot0n <ritwikpuri5678@gmail.com>
2022-09-07 21:25:51 +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
HENRY Florian
df9e8c62dd
feat: review Custom and Build workspace, move background Job to Build Workspace (#17981)
* feat: review link for Custom, build and NavBar

* feat: review link for Custom, build and NavBar

* feat: review link for Custom, build and NavBar

* feat: review link for Custom, build and NavBar

* feat: review link for Custom, build and NavBar

* feat: review link for Custom, build and NavBar

* chore: linter json

* fix: replace Block Module By Module Profile

* chore: cypress test

* chore: reset package.json to develop

* refactor: workspace link, system logs section

- removed workspace listview link, visiting list view isn't required for
  practically all the tasks
- Frappe Logs -> System Logs

[skip ci]

Co-authored-by: Ankush Menat <ankush@frappe.io>
2022-09-02 11:20:59 +05:30
Ankush Menat
7cca7ca0e7 refactor: move section assignment and add test 2022-08-31 12:24:56 +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
Shariq Ansari
2181233c75 test: fixed failing UI test 2022-08-17 21:27:09 +05:30