Commit graph

50 commits

Author SHA1 Message Date
Ameya Shenoy
d746d1e8af Added test-list option to run-ui-tests (#4540)
* Added test-list option to run-ui-tests

will help bifurcating the ui tests into stages

* modified to add new parameters at the end
2017-11-30 16:26:43 +05:30
Shreya Shah
acdbb97ba5 Moved feed from Communication to Activity Log (#4435)
* Removed comment_type 'updated'

* New doctype activity log

* Moved feed.py to activity_log

* Updated feed gets stored in activity_log

* Activity page fetches feed from activity_log

* feed match condition change

* modified

* modified hooks.py

* modified sessions.py

* patch added

* naming in patch

* moved login, logout feed to activity_log

* changes in auth.py, hooks.py

* deleted doctype authentication_log and added test cases

* added utils.py in core

* moved some methods from communication.py to utils.py
2017-11-21 15:46:51 +05:30
Rushabh Mehta
c02a7469aa
[refactor] a better set-only-once implementation with child tables (#4475)
* [refactor] a better set-only-once implementation with child tables

* [refactor] document.is_child_table_same(fieldname)

* [refactor] tests

* [refactor] tests

* [test] catch timeout reason

* [minor] edit in full page more prominent

* [minor] tests
2017-11-13 17:17:20 +05:30
Zarrar
d29e280d14 [Fix] Workflow ui test dependency (#4421)
* timer increased, role selection removed

* used return promise instead of timeout
2017-11-03 13:37:48 +05:30
Zlash65
fec63a32f1 test case added for count 2017-10-31 16:14:36 +05:30
Rushabh Mehta
8c246365aa Role Profile (#4395)
* Added doctype Role Profile

* Set role profile for user

* Fetch roles from role profile

* Added tests, updated user.js and role_profile.py

* update_roles on add/delete moved to user controller

* added py test

* improved naming

* validate_roles method added

* [minor] style
2017-10-27 15:34:04 +05:30
Revant Nandgaonkar
ebf3554754 Geolocation control (#4327)
* added static map field

* leaflet draw plugin added to map control

* Editable layer working no icons

* Save and load data in form field

* images and icons working

* Locate plugin added, and loads on geolocation

* organized map control code

* loads layer as per form

* new form clears editableLayers

* update: leaflet 1.2.0 and leaflet-draw 0.4.2

* changed to ERPNext colors

* Multiple map fields and fixes

* fixes codacy suggestions

* loaded geojson data editable

* Map layers editable

* add only one layer on draw:create

* code organized with helper functions

* Replaced Leaflet Draw with Leaflet Editable

* read values from database

* layers saved in db

* Using Patched Leaflet Draw (mobile-friendly)

* Working Map field with multiple forms open

* Leaflet Draw css image path fix

* Leaflet Draw

Fixes Leaflet draw css image paths
Fixes Circle marker and Circle

* locate to geolocation or set featurecollection as center

* [fix] leaflet fitBounds padding 50,50

* [Fix] Leaflet (auto) locate

* Map field basic test

* added refresh button on map

* Mute map geojson in print format

* renamed Map field to Geolocation

* Suggested changes and fixes

* eslint disable

* csslint allow important
2017-10-25 18:30:25 +05:30
Rushabh Mehta
64748a0905 [fix] test_html_control.js 2017-10-20 11:45:07 +05:30
Rushabh Mehta
f0e23a5a6c [refactor] domain and domain settings (#4163)
* [refactor] domain and domain settings

* [fix] test_domain.py

* [fix] patches

* [fix] domain activation after setup

* [fix] tests and lint

* [fix] tests and lint

* [enhance] better prompt naming

* [fix] setup wizard test

* [fix] testing

* [minor] new item in quick entry from form dashboard
2017-10-17 12:29:08 +05:30
Revant Nandgaonkar
d80a8e8804 Oauth2 implicit grant fixes tests (#4261)
* [Fix] Implicit Grant / Token

* test for oauth2 implicit grant
2017-10-06 11:47:33 +05:30
Faris Ansari
d20f9e2895 Data Migration Tool (for hub) (#4144)
* migration tool

* custom field for primary key added

* foreign key and multiple linking F_key issue resolved

* refined code

* many-to-one mapping temp fix

* added support for pre-process + cleaned up code

* [various] fixes to setup wizard for developer mode, frappe.enqueue_doc, share with assign

* Refactor data migration module

* added migration for hub

* Add "Skip errors" in data import tool

* move db_set to document.py

* Add Data Migration Run

* Dynamic Migration ID

* move run() from Mapping to Run

* Push Deleted Documents

* fixes

* [migration] doc operation counts

* insert and update instead of push in connection

* fix count and total_pages, skip sync if total_pages is 0

* [migration] child tables

* fix complete()

* [page] remove required libs

* Add sidebar.js, rename old sidebar.js to form_sidebar.js

* [minor] get_empty_state fixes

* svg in icon

* remove image check

* fix codacy

* fix is_child_table check

* [connector] add get_list()

* Add test for Data Migration Run

* fix test

* truncate tabNote

* fix test

* sync todo with event to fix test

* fix db count

* [mapping] export Mapping to json

* Add docs for Data Migration Tool

* [migration] pull data as list, test case

* [hub] remove mapping export to files

* Pull refactor

* [test]

* Add comments

* [mapping] exec in mapping formula

* fix codacy

* fix codacy

* Remove exec for pre-process and post-process

* Add pre and post process for Push

* Remove formula

* fixes

* [refactor] add failed_log to pull, handle error in pull

* [test] Push, pull, update

* Fix codacy, fix insert_doc for pull

* Set migration id on successful insert

* fix update_doc

* fix update_doc

* method is a function

* child table mapping

* Refactor logging

* fix update_doc again

* fix hostname, password

* update docs, minors

* Remove assign_if_none

* Remove error handling from connection methods

* [refactor] Data migration run

* Break push stages into methods

* Migration run refactor

- fix test
- add separate fields for logging

* fix codacy

* fix hostname password

* fix test
2017-10-05 11:15:35 +05:30
Emad Shaaban
04e639b02d [UI Test] UI Test for ControlHTML 2017-09-14 10:18:33 +02:00
Nabin Hait
81dc1cf4eb Set 5 mins timeout for long test cases 2017-09-12 16:20:39 +05:30
Nabin Hait
116a123f50 Wait for after_ajax after setting form values 2017-09-12 15:37:35 +05:30
Rushabh Mehta
a8a10a9d72 Merge pull request #3882 from pratu16x7/user-progress
User Progress dialog
2017-09-04 11:13:35 +05:30
Zlash65
b7b77609ce added workflow mechanism to add user 2017-08-29 11:08:40 +05:30
pratu16x7
674308958a [setup-wiz] UI test command 2017-08-29 10:03:04 +05:30
tunde
a0e95877f6 adds some jsdocs style function comments 2017-08-17 20:23:06 +01:00
tunde
4996771f8e adds new function is_disabled_field 2017-08-17 14:17:02 +01:00
Rushabh Mehta
6081c30971 [tests] less verbose logs 2017-08-10 11:11:04 +05:30
Faris Ansari
44ee24aa75 Colors in Event Calendar using color picker (#3857)
* Add Color field to Event, show colored event in calendar

* [minor] handle edge cases

* Fix test boilerplate

* Add test for event

* fix codacy

* fix test
2017-08-07 13:36:27 +05:30
Rushabh Mehta
784603acf1 [fix] selenium 2017-08-03 17:55:34 +05:30
Vishal Dhayagude
9d9cef9c0b [fix] multiple grid_row fetch (#3856) 2017-08-03 16:52:18 +05:30
Aditya Hase
375dfd601d Replaced urlparse imports with six.moves.urllib.parse (#3847) 2017-08-03 11:43:28 +05:30
mbauskar
80a2beb32c resolved merge conflicts 2017-08-02 18:10:23 +05:30
Rushabh Mehta
eb2c725dba [fix] stop action if trigger fails for validate and before_, fixes frappe/erpnext#10200 (#3842)
* [fix] stop action if trigger fails for validate and before_, fixes frappe/erpnext#10200

* [fix] stop action if trigger fails for validate and before_, fixes frappe/erpnext#10200

* [fix] codacy

* [fix] add test to tests.txt
2017-08-02 17:53:28 +05:30
mbauskar
11da197bba resolved merge conflicts 2017-07-28 16:07:36 +05:30
Faris Ansari
67277507f0 [hotfix] Linked with and List item click (#3803)
* [hotfix] Linked with and List item click

* Run a single test using Test Runner

* Add test for Linked With

* [minor] List view fixes
2017-07-28 14:30:18 +05:30
Utkarsh Goswami
be60a22365 [UI Test Report] Test for Query Report (#3801)
* Updated Test for Query Report

* Correct path updated
2017-07-27 17:44:54 +05:30
Utkarsh Yadav
877f8e2a23 [UI Test] Kanban view (#3777)
* added changes and one test for column

* changes in tests for new test runner

* codacy fixes
2017-07-25 12:05:18 +05:30
Revant Nandgaonkar
0fa951f893 Oauth2 tests (#3756)
* Test for oauth2 test_authorize_guest_redirect

* fix test oauth2

* [Fix] using py requests instead of werkzeug test client

* [Fix] https://www.codacy.com/app/frappe/frappe/pullRequest?prid=788942

* Test OAuth 2 Authorization Code Bearer Token flow

* [Fix] https://www.codacy.com/app/frappe/frappe/pullRequest?prid=788942
2017-07-24 11:25:05 +05:30
Rushabh Mehta
ebbad93d26 [minor] allow tests with longer timeout 2017-07-20 15:14:27 +05:30
Rushabh Mehta
db6743cf3c [minor] allow tests with longer timeout 2017-07-20 15:14:27 +05:30
Rushabh Mehta
5577442251 [tests] refactor tests (#3743)
* [tests] refactored client side tests

* [tests] refactored client side tests

* [tests] refactored client side tests
2017-07-19 18:09:06 +05:30
Rushabh Mehta
ff52a61e03 [minor] link filters should be selectable (#3736)
* [minor] link filters should be selectable

* [test] add timeout
2017-07-19 15:52:16 +05:30
Rushabh Mehta
d4ba711178 Fixing tests (#3735)
* [check] test_calendar_view.js

* [check] test_calendar_view.js

* [tests] run all together

* [tests] run all together

* [tests] that work
2017-07-19 10:21:55 +05:30
Rushabh Mehta
9f97ce568a [tests] allow test anywhere in app and add boilderplate _test_controller.js (#3724)
* [tests] allow test anywhere in app and add boilderplate _test_controller.js

* [fix] test_number_format.js

* [minor] dont run test_runner.js

* [test] _test_module_menu.js

* [test] why is browser crashing?
2017-07-18 18:01:54 +05:30
Utkarsh Yadav
7be8b20a14 [UI Test] Module view (#3707)
* [UI Test] Module view

* changed file names

* minor changes
2017-07-18 14:43:55 +05:30
Rushabh Mehta
ac55a8626e [minor] added timeout while setting values 2017-07-18 14:38:51 +05:30
Rushabh Mehta
368bbeeb29 [fix] filters for calendars frappe/erpnext#9850 (#3686)
* [fix] filters for calendars frappe/erpnext#9850

* [add] tests
2017-07-18 10:50:26 +05:30
Rushabh Mehta
b81946b217 [minor] test name for test_test_runner.py 2017-07-17 12:02:28 +05:30
Utkarsh Yadav
f4c955d5b6 [UI Test] list view (#3684)
* [UI Test] List view

* some fixes in test_list_menu

* codacy fixes

* minor fixes

* removed menu test
2017-07-14 17:36:28 +05:30
Ameya Shenoy
0a32ad83bf [tests] restructured tests to work with the new testing framework (#3683)
* minor changes and added global_test_search

* stashing the changes

* named assertions, modified test_lib to fit ES6 standard, added global search test

* modified to work with the new testing framework

* renamed files

* increased timeouts

* only calendar and desktop test

* modified travis.yml
2017-07-14 17:34:25 +05:30
Rushabh Mehta
7b4957d1f3 [tests] more timeouts 2017-07-13 15:26:11 +05:30
Rushabh Mehta
25ad8ef16c Test Runner - Refactored (#3679)
* [tests] test_runner to run one JS test at a time

* [tests] test_runner to run one JS test at a time

* [test] ignore failing tests

* [test] comment test_calendar_view

* [test] add timeout

* [test] add timeout
2017-07-13 15:17:12 +05:30
Ameya Shenoy
9d9933491d Desktop, Calendar View and Gantt View tests (#3652)
* verify desktop icon and links

* added comments and fixed indentation

* refactored test_desktop, added test_calendarView, added custom functions to test_lib

* .

* added a generic func to click dropdown items

* codacy fixes

* added comments, changed test_list to delete the todo created

* Update test_lib.js
2017-07-11 14:22:56 +05:30
Rushabh Mehta
b14a625153 [fix] dont call setup twice 2017-07-11 12:39:24 +05:30
Prateeksha Singh
afed0c9374 Setup wizard refactor (#3548)
* [wizard] refactor and UI cleanups

* [wip] attach image control cleanup

* try and detect lang, country, gravatar

* password control

* frappe.wiz to frappe.setup

* cleaned up slides, yet to decide on master data

* Add function to add dynamic fields in layout

* [fix] independent slide fields numbering by deep-cloning initial fields

* refresh only appended fields, autofill user_details

* [wizard] UI test

* [wizard] frappe icon, reuse get_geo_ip_country, cleanups
2017-07-03 18:15:40 +05:30
Rushabh Mehta
f409fd7358 [ui-tests] python is back! (#3565)
* [ui-tests] python is back!

* [minor] remove old test

* [test] dont test test_runner

* [tests] try firefox

* [tests] try chrome

* [tests] try chrome

* [tests] try chrome

* [tests] try chrome 1

* [tests] try chrome 2

* [tests] try chrome 3

* [tests] try phantomJS

* [tests] try chrome

* [tests] try chrome

* [tests] try chrome

* [tests] try chrome

* [tests] try chrome

* [tests] try chrome

* [tests] try chrome

* [tests] try chrome

* [tests] login click button

* [tests] login click button

* [tests] show log

* [test] test with start_maximized

* [test] test only login

* [travis] test another port for selenium

* [travis] try running ui tests after unittests are done

* [travis] pring body_div if fails

* [tests] complete setup wizard for frappe

* [minor] move ui tests to frappe/ui/tests

* [tests] ui tests in public and codacy fixes

* [fix] tests + eslint

* [minor] move tests to tests/ui folder and print console after print

* [fix] linting

* [tests] added documentation and better integration testing

* [promise] form triggering is now promise based

* [test]

* [test]

* [test]

* [test]

* [test] print output

* [minor] default empty in select and print console

* [cleanup] more minor fixes

* [enhance] first-cut done!

* [minor] frappe.run_serially to pass arguments while chaining
2017-07-03 11:53:00 +05:30
Faris Ansari
a9cf952505 UI Tests for Frappe (#3500)
* init nightwatch.js

* add nightwatch to travis

typo

nightwatch fix

kill node

launch_url

run tests on local selenium

manually run sc

sc in bg with sleep

minor

minor

run test on chromedriver

simplify travis

minor

add chrome package

implicit chromedriver

nightwatch.global.js

path fix

console statement

enable screenshot

send screenshot to telegram

path

minor

remove chromium

add binary

screenshot

url

cleanup

increase timout

minor

minor

minor

* login test

add page_objects in config

Fix login test

* bench run-ui-tests

* update package.json

* update travis

* bench reinstall before running ui tests
2017-06-19 17:58:45 +05:30