Commit Graph

588 Commits

Author SHA1 Message Date
Adina Parpalita
653be8bbcd refactor pagination e2e (#1312)
* wrap test suites in functions

* better naming and small improvements

* higher suite that calls the wrapped test functions
2020-01-22 07:46:57 +02:00
Adina Parpalita
4e7595f7b2 refactor available actions e2e (#1311)
* remove unused methods

* wrap suites in functions

* higher suite calling each wrapped function

* better naming

* wrap test suites in functions

* higher suite calling the wrapped functions

* add searchApi to adminActions
2020-01-22 07:46:41 +02:00
Adina Parpalita
fb6ba7cf6a [ACA-2874] improve the execution time of actions-available tests (#1307)
* some refactoring trying to improve the execution time of actions-available tests

* copyright update
2020-01-17 16:49:58 +02:00
Cilibiu Bogdan
66f9442563 update copyright (#1302)
* update copyright

* update year
2020-01-16 18:15:34 +02:00
Adina Parpalita
569ee98e8d [ACA-1920] automate tests for Create file from template (#1303)
* change component ancestor from ElementFinder to string for better usability
better naming for some methods
small code cleanup

* add test components and automate tests for Create File from Template action

* ignore e2e-downloads folder

* add return types

* enable check

* enable check after issue got fixed
2020-01-16 13:16:18 +02:00
Denys Vuika
3521a1cca4 Merge pull request #1291 from Alfresco/adina-e2e-search
[ACA-2841] Automate tests for Search results filters and sorting
2020-01-08 07:33:55 +00:00
Adina Parpalita
e17de2f733 reorganize the tests so that the comment is created closer to the moment when comment created date is checked, in order to avoid this flaky fail: (#1293)
Expected 'a few seconds ago' to be 'a minute ago', 'Incorrect comment created time'.
2020-01-07 14:23:50 +02:00
Adina Parpalita
9e94636172 small change to trigger travis 2020-01-06 01:07:25 +02:00
Adina Parpalita
821d0fc106 another try 2020-01-05 23:24:16 +02:00
Adina Parpalita
98e10adebd try to fix tests failing only on travis 2020-01-05 22:45:15 +02:00
Adina Parpalita
8077ec5078 small changes 2020-01-05 21:33:35 +02:00
Adina Parpalita
3d141cf42f remove fdescribe 2020-01-05 19:01:00 +02:00
Adina Parpalita
e27a517ad7 automate tests for search filters and search results sorting 2020-01-05 19:00:19 +02:00
Adina Parpalita
03bb0b139f add components for search filters and search sorting 2020-01-05 18:58:07 +02:00
Cilibiu Bogdan
55547ed163 [ACA-2850][ACA-2849] Viewer - document properties not refreshed after changes or uploading new version (#1286)
* update viewer on upload complete

* prevent multiple same actions triggers

* Display node again after upload was complete

* Add e2e test for showing 'Editing Offline' when a new version was uploaded and the node was locked before

* Add e2e test for showing 'Editing Offline' when a new version was uploaded and the node was locked before

* Add e2e test for showing 'Editing Offline' when a new version was uploaded and the node was locked before

* Update src/app/components/page.component.ts

return type

Co-Authored-By: Denys Vuika <denys.vuika@alfresco.com>

* return type

Co-Authored-By: Denys Vuika <denys.vuika@alfresco.com>

* return type

Co-Authored-By: Denys Vuika <denys.vuika@alfresco.com>

Co-authored-by: Martin Muller <damadden88@googlemail.com>
Co-authored-by: Denys Vuika <denys.vuika@gmail.com>
2020-01-02 20:17:59 +02:00
Cilibiu Bogdan
3221caea87 adf update 3.7.0-5c1aff (#1274)
* adf dep update

* fix ACA-2175 TODO

* remove workarounds
2019-12-05 12:02:04 +02:00
Martin Muller
725073c753 allow other base urls like localhost:8080/workspace (#1273) 2019-12-03 15:39:41 +02:00
Cilibiu Bogdan
f526db9657 [ACA-2621] Shared link - when dialog is closed focus is not returned to trigger (#1255)
* use custom component action

* adjust component. to render icon and menu action

* pass action data

* update selection after dialog closes

* update mocks
2019-11-22 14:16:23 +02:00
Martin Muller
b228ca2f64 Try latest ACS com to see if e2e are passing (#1248)
* use latest ACS com

* add workaround for REPO-4772

* due to the workaround done for REPO-4772, files now have an initial version set to MAJOR 1.0

* add workaround for REPO-4772 for bulk create files

* Get ACS log if something goes wrong

* wait for the dialog to close only in specific cases

* Import Custom Model into ACS. Update proxy to work with Share.
2019-11-18 18:08:32 +01:00
Adina Parpalita
9738752f0f [ACA-2822] add no-duplicate-imports rule (#1250)
* add no-duplicate-imports rule and fix few issues

* fix incorrect import :D
2019-11-15 14:57:34 +02:00
Suzana Dirla
3411b6051b [ACA-2813] Upgrade to latest ADF alpha (#1244)
* [ACA-2813] Upgrade to latest ADF alpha

* [ACA-2813] new upgrade to latest ADF alpha

* instead of double click, use click + toolbar action in order to open the viewer
2019-11-08 15:39:30 +02:00
Martin Muller
349a9df044 Update e2e Tests to allow ADW builds to run on them as well (#1242)
* make ECM host flexible
2019-11-05 15:50:10 +01:00
Adina Parpalita
5ac3304854 remove unused var 2019-10-22 19:56:32 +03:00
Adina Parpalita
7adba9e619 some more little fixes 2019-10-22 19:39:32 +03:00
Adina Parpalita
e8e353fd48 some more fixes 2019-10-22 16:54:02 +03:00
Adina Parpalita
e8ed183a44 added try - catch in api and handleError methods 2019-10-22 13:14:57 +03:00
Adina Parpalita
227e05e3f9 - remove some awaits
- add try catch
- small refactoring
2019-10-17 17:31:29 +03:00
pionnegru
3ca9f4a437 default to none string value 2019-10-16 13:25:07 +03:00
pionnegru
2c5fe7d3f4 amend implicit returns 2019-10-16 13:11:24 +03:00
Suzana Dirla
636693bd38 Revert "use Xenial on Travis (#1201)"
This reverts commit 10592b664a.
2019-09-12 10:09:05 +03:00
Adina Parpalita
10592b664a use Xenial on Travis (#1201)
* small changes

* forgot file

* use travis xenial

* delete commented line

* revert unrelated changes
2019-09-12 09:53:29 +03:00
Cilibiu Bogdan
e31c0d6caf [ACA-2087] Overlay Viewer (#1175)
* viewer outlet over preview route

* use ViewNodeAction over ViewFileAction

* pass data to dynamic component

* ViewNodeComponent for view file  custom actions

* update docs

* pass primary url to show preview outlet

* update tests

* reset selection on navigation event

* document list update selection action when not viewer

* close viewer for move and delete from viewer

* location as router commands to work with search query

* make viewer to behave like former preview

* viewer error route

* call correct preview method

* remove view/error route

* navigate to show error

* span element for action name

* fix folder navigation

* fix test

* page title fix

* update tests

* locate better the viewer toolbar

* fix viewer url  link

* update navigation rules

* document-list directive tests

* try workaround for chrome 76

* try another workaround for using chromedriver 75 instead of 76

* ViewerEffects tests

* reset selection over reload

* fix tests

* add reset event test

* remove actions

* context menu action refresh on favourite

* reset selection on navigation

* add delete and upload events

* takeUntil after operators

* remove chrome workaround parameter

* filter navigation event
2019-08-08 15:38:50 +03:00
Denys Vuika
957b93aa63 automated license header checks 2019-07-11 15:25:17 +01:00
Adina Parpalita
b0121f06f8 [ACA-2380] refactor actions-available tests (#1144)
* compare arrays of actions instead of checking the available actions one by one
add more tests for more file types
reorganise and separate test files
use correct capitalisation of “Leave Library”, according to ACA-2473
add some try catch blocks

* fix test and rebalance suites

* remove hidden old info button

- that exists in DOM, even though hidden, after fix of [ACA-2288] issue

* change actions order after ACA-2649
2019-07-03 07:03:02 +03:00
Suzana Dirla
c83a3f53cc [ACA-2288] Music / video stops playing when opening the Info drawer in the viewer (#1146)
* [ACA-2288] avoid triggering ngOnChanges on showRightSide toggle

* [ACA-2288] code review change

* check mediumDate corresponding format
2019-07-02 13:24:35 +03:00
Cilibiu Bogdan
17ce7f1cbc [ACA-2473] action menus - reorder and capitalisation (#1135)
* reorder actions and typography

* capitalize labels

* added titlecase pipe name

* remove titlecase pipe

* actions titlecase strings

* update e2e

* fix text selector

* e2e exclude deleteaction checks
2019-06-26 12:02:40 +03:00
Denys Vuika
cab4196872 upgrade to the ADF release 3.3.0 (#1134)
* upgrade to the ADF release 3.3.0

* update e2e config
2019-06-19 21:02:36 +01:00
Denys Vuika
3bc54478c0 latest ADF alpha (#1132)
* latest ADF alpha

* get latest adf

* update tests

* use date format via config

* update time format

* Revert "update time format"

This reverts commit 3a4864ef01.
2019-06-18 15:21:03 +01:00
Adina Parpalita
1c18f6c555 [ACA-2387] rebalance suites (#1107)
* rebalance suites

* try to fix flaky test

* fix more related tests

* fix retry

* reorganise some more suites

* move file to another suite
2019-05-15 09:47:52 +01:00
Martin Muller
39f528af67 Feature/ACA-1676 e2e share file (#1106)
* ACA-1676 add share tests with user logouts

* ACA-1676 add share tests with user logouts

* ACA-1676 split the logout test into own describe and reformat the tests a bit.

* ACA-1676 split the logout test into own describe and reformat the tests a bit.

* ACA-1676 split the logout test into own describe and reformat the tests a bit.

* ACA-1676 split the logout test into own describe and reformat the tests a bit.

* ACA-1676 change some protractor config as suggested from Adina

* ACA-1676 change some protractor config as suggested from Adina
2019-05-14 18:58:58 +03:00
Adina Parpalita
d5f8699976 [ACA-1258] automate tests for viewing file/image properties (#1101)
* split InfoDrawer test component and add tests for viewing properties

* add “date item” to spell ignore and remove commented code

* try to increase timeout
2019-05-09 14:57:31 +03:00
Cilibiu Bogdan
ad1c8c58e6 enable tests (#1093) 2019-05-03 16:00:02 +01:00
Denys Vuika
f3d8171579 upgrade to latest ADF and Angular libs (#1092)
* upgrade to latest ADF and Angular libs

* disable e2e tests for libaries

* [ACA-2130] fix a11y for header

* disable e2e tests

* sticky header, layout fixes

* switch to ADF upload dialog

* disable broken test

* disable broken test

* disable test
2019-05-02 21:02:06 +01:00
Suzana Dirla
91eaa3c305 [ACA-2350] fix ellipsis on DL and the context-menu issue (#1070)
* add adf-no-grow-cell & min-width on columns

* [ACA-2350] fix ellipsis on DL and the context-menu issue

- issues were caused by nested items with the same classname: 'adf-datatable-cell'

* [ACA-2350] fix unit test

* [ACA-2350] remove deprecated classname

- mention 'adf-datatable-cell--text' example container class for elements that have context menu

* [ACA-2350] small fixes on search-results display

* [ACA-2350] fix location check

* [ACA-2350] should clean-up code once [ADF-4401] issue is fixed

* [ACA-2350] change e2e expect to check match

* [plint] fix code formatting

* [plint] fix code formatting
2019-04-17 10:01:43 +01:00
Adina Parpalita
2a4be64bcc [ACA-823] refactoring (#1077) 2019-04-16 10:01:39 +01:00
Adina Parpalita
fcb077d803 add automated tests for password protected files (#1073) 2019-04-13 06:56:49 +01:00
Martin Muller
c83f78f801 Feature/ACA-1633 parallel tests (#1064)
* [ACA-1633] create test suites. update protractor to use suites. update travis to split in to test suite groups.
* disable tomcat tests
* exclude failing expect
2019-04-12 15:06:49 +01:00
Cilibiu Bogdan
5bf77dfc81 [ACA-2322] Sidenav - support dynamic components (#1066)
* dynamic components support

* subscribe to sidenav selector

* update module for extension

* sidenav selector

* support dynamic components definistion

* update docs

* stabilise tests

* Update src/app/components/sidenav/sidenav.module.ts

Co-Authored-By: pionnegru <pionnegru@users.noreply.github.com>

* Update src/app/components/sidenav/sidenav.module.ts

Co-Authored-By: pionnegru <pionnegru@users.noreply.github.com>

* rename selector
2019-04-12 10:39:05 +01:00
Suzana Dirla
8d02203a54 [ACA-2330] fix document-list styling (#1062)
* [ACA-2330] fix DL display - enable single click tests

* [ACA-2330] fix locked-by item display

* [ACA-2330] set text color and padding on DL

* [ACA-2330] fix ellipsis on name column text

* [ACA-2330] apply fix to library-name-column also

- fixes failing test on libraries DL

* [ACA-2330] set scss variables

* [ACA-2330] fix wrong variable names

* [ACA-2330] decrease thumbnail width

* [ACA-2330] enable related tests
2019-04-10 16:34:21 +01:00
Adina Parpalita
7df8d8a4ae [ACA-1766] disable selenium_promise_manager (#1061)
* disable selenium_promise_manager and fix some methods

* some more changes
2019-04-09 20:06:59 +01:00