mergify[bot]
38d15d38fa
test(UI): non-admin user for UI tests and misc fixes (backport #17995 ) ( #18079 )
* test(UI): use non-admin user for tests
(cherry picked from commit f07bc3b369
)
# Conflicts:
# .github/workflows/ui-tests.yml
* test: fix tests using admin account
(cherry picked from commit a6b341bd59
)
# Conflicts:
# cypress/integration/dashboard_links.js
* test: add test role to user
(cherry picked from commit 0896873c8a
)
* chore: conflicts
* test: fix broken test
Not sure why there's test on doctype "created by". Makes no sense.
Co-authored-by: Ankush Menat <ankush@frappe.io>
2 роки тому
Ankush Menat
5d6b24f0b1
style: format JS files with prettier
(cherry picked from commit 40f27f908a
)
2 роки тому
Himanshu
70409a3c7b
fix: set translated text to link field ( #15451 )
- Fixes [Issue/15324](https://github.com/frappe/frappe/issues/15324 )
- When selecting a value for Link Field, the English text was set as link field value.
- This PR aims to fix it by setting the translated text as link field value on selection.
Todo:
- [x] Show translated text in the select dropdown
- [x] Set translated value to Link field on select
- [x] Show original value when link field is in focus
- [x] Add option to toggle this behaviour
### Behaviour
- Link field loses focus: show the translated name.
- Link field is focused
- If old value is present
- If options **are** one of [Role, DocType]: show the translated name
- Else: show the name (untranslated) to enable search in untranslated values
- Else: show what the user typed (untranslated) to enable search in untranslated values
- Value is selected: link field loses focus
## Demo
### Link to UOM in a custom Item DocType
The UOM names are in english, so the search needs to happen in english. When possible, the translation is displayed.
#### Before
https://user-images.githubusercontent.com/14891507/156415248-e5e80d05-53dc-4ca8-89c7-998986ff6e99.mov
#### After
https://user-images.githubusercontent.com/14891507/156410386-a874430c-f340-43ed-9c3a-92e8d4d50fc9.mov
### Link to DocType in Customize Form
The DocType names get translated before being searched. This is a preexisting hack in the framework for DocType and Role. In this case, we can search in the translations.
#### Before
https://user-images.githubusercontent.com/14891507/156414648-8e505f8c-9dee-4358-8182-3b358c28bb62.mov
#### After
https://user-images.githubusercontent.com/14891507/156411881-c4ca22e1-1397-4e13-9768-5e16b72f8d6d.mov
https://docs.erpnext.com/docs/v13/user/manual/en/customize-erpnext/customize-form/edit?wiki_page_patch=fdafee2715
3 роки тому
Komal-Saraf0609
a8fe3a8668
test: Adding Cypress tests for sidebar, timeline and email testing ( #13729 )
* test: fix get_field command
* test: Add timeline email test cases
* test: Add sidebar test cases
* test: Add timeline test cases
* test: Added new commands
* test: Added proper name for test case, added comments and removed redundancy
* test: Added proper name for test case, added comments and removed redundancy
* test: Added proper name for test case, added comments and removed redundancy
* test: Added new commands
* test: Added proper name for test case, added comments and removed redundancy
* test: Added proper name for test case, added comments and removed redundancy
* fix: Sider issues
* fix: Sider issues
* fix: Sider issues
* fix: UI Tests
* fix: UI tests
* fix: UI tests
* fix: UI tests
* fix: UI tests
* fix: UI tests
* fix: UI tests
* fix: UI tests
* fix: UI tests
* fix: UI tests
* fix: UI tests
* fix: UI tests
* fix: UI test
* fix: UI tests
* fix: UI tests
* fix: Context correction
* test: fix fill_field command
* test: fixed get_field command
(removed :visible for code)
* test: Fixed fill_field command
(removed .blur())
Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
3 роки тому
Sagar Vora
e81d2567ff
test: multiple cypress fixes
4 роки тому
Sagar Vora
c8763859ae
test: multiple cypress fixes
4 роки тому
Suraj Shetty
ccc8deed07
revert: "test: encoding @ since we encode each url (bp #12567 )" ( #12626 )
This reverts commit 907d418cfd
.
4 роки тому
Suraj Shetty
572b5d670c
revert: "test: encoding @ since we encode each url" ( #12625 )
4 роки тому
mergify[bot]
907d418cfd
test: encoding @ since we encode each url (bp #12567 ) ( #12599 )
Co-authored-by: hasnain2808@gmail.com <hasnain2808@gmail.com>
4 роки тому
hasnain2808@gmail.com
85de1a01df
test: encoding @ since we encode each url
4 роки тому
hasnain2808@gmail.com
a55e1a6394
fix(ToDo): cypress tests
4 роки тому
Suraj Shetty
d18751db07
test: Make tests Cypress v6 compatible
4 роки тому
prssanna
841c1b9852
fix: cypress tests
4 роки тому
Rushabh Mehta
54cee87826
fix(minor): tests + routing
4 роки тому
Faris Ansari
d719f77edb
fix(ui-tests): Pick admin password from config ( #7842 )
6 роки тому
Suraj Shetty
3d21bba74d
test: fix fill_field command for code fieldtype
6 роки тому
Faris Ansari
b61a37a233
fix: Notification test in Postgres ( #7044 )
6 роки тому
Faris Ansari
0f2b3657c8
test: Uncomment table_multiselect test
6 роки тому
Rushabh Mehta
2d7b4c7782
fix: liniting and comment multiselect tests
6 роки тому
Faris Ansari
f63ac68510
test: Fix Cypress tests
6 роки тому
Faris Ansari
c99726a3c2
fix(TableMultiSelect): Minor bugs ( #6730 )
* fix(TableMultiSelect): Minor bugs
- Show dropdown immediately after selecting a value
- Selecting first value in a new Form had no effect
- Delete last value on backspace
* fix: comment
* test(Table MultiSelect): Add tests, update database file
* test: Fix database name
* test: Fill description first
6 роки тому