Commit Graph

413 Commits

Author SHA1 Message Date
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
Martin Muller
f051f01279 WIP: [ACA-823] automate undo copy (#1057)
[ACA-823] automate undo copy
2019-04-09 13:30:30 +01:00
Cilibiu Bogdan
839c9d0dbb [ACA-2320] Navigation - support store actions (#1052)
* move component into folder

* update module

* add children template references

* clean up styling

* clean up theme

* use content projection

* remove old tests

* button menu component

* expand menu component

* link item component

* resolve action directive

* custom active link directive

* collapse template reference

* expanded template reference

* expansion panel directive

* item template directive

* menu panel directive

* support for ngrx actions

* update side navigation inplementation

* remove unused component

* remove unused styling

* update module

* clean up

* unit tests

* unit tests

* remove unused component

* lint

* remove unused import

* fix test

* add tooltip

* fix text

* fix e2e

* use action route commands

* remove fdescribe

* styles fix

* e2e fix tooltip test

* fix active route when drill down

* update docs
2019-04-05 13:03:40 +01:00
Adina Parpalita
deea3465e0 [ACA-1088] add tests for search results page and actions on search results (#1051)
* add tests for search results page and actions on search results

* fix selector and add more tests

* split unshare tests

* fix tests

* add more tests and TestRail ids
2019-04-03 18:49:34 +01:00
Denys Vuika
672d6a75b1 [ACA-2302] upgrade to ADF 3.2.0 beta (#1049)
* upgrade to ADF 3.2.0 beta 2

* remove deprecated extension classes

* fix some DL style issues

* update class names

* update cell classes

* update viewer

* fix test

* update angular dependencies

* cleanup login component

* update tests

* fix selector

* fix document list cell selector

* fix viewer extension test

* upgrade to beta3

* fix some tests and disable tests until regression is fixed on ADF side

* disable hyperlink e2e for now

* upgrade to latest alpha

* restore tests
2019-03-30 16:48:15 +00:00
Suzana Dirla
9744c1618e fix random failing e2e test C290014 (#1045) 2019-03-26 18:34:01 +00:00
Adina Parpalita
6ac697564d update copyright year (#1022)
* update copyright year

* forgot a file

* update year on licence header
2019-03-19 15:41:27 +02:00
Denys Vuika
07f45e08cf various bug fixes (#1010)
* various bug fixes

* use 'remove favorite' label where appropriate

* fix toggle favorite component labels

* e2e type check and fixes

* favorite library label

* support toggle favorite component selectors

* update tests

* update e2e tests

* update e2e

* e2e update

* update e2e
2019-03-14 15:40:38 +00:00
Adina Parpalita
dbf821628c [ACA-1627] add automated tests for Comments (#1012) 2019-03-12 15:42:55 +00:00
Denys Vuika
92a5ec44e8 [ACA-2215] toggle search filter (#998)
* support for toggling search filter

* update docs

* disable e2e test

* update e2e
2019-03-07 14:04:44 +02:00
Adina Parpalita
0b5555d2fc [ACA-1259] automate remaining tests for sidebar (#977)
* automate remaining tests for sidebar

* formatting
2019-02-27 08:40:44 +00:00
Adina Parpalita
f25eef599d [ACA-2222] add e2e tests for pagination on Favorite Libraries (#969)
* add tests for pagination on Favorite Libraries

* add TestRail ids
add tests for pagination for empty page and single page

* Delete package-lock.json

* Revert "Delete package-lock.json"

This reverts commit 41eba0c57532373d87d454372273b54ba00e880a.

* restore package-lock
2019-02-26 15:55:01 +02:00
Adina Parpalita
88ca0cb886 [ACA-833] automate tests for download as zip (#968)
* add tests for downloading a single file

* automate tests for download as zip
2019-02-23 17:42:18 +02:00
Adina Parpalita
8f00aa77f1 add tests for downloading a single file (#967) 2019-02-22 14:37:26 +02:00
Adina Parpalita
a2df75a6dc add tests for Upload New Version (#960) 2019-02-20 09:13:15 +02:00
Adina Parpalita
9ceefff5e6 [ACA-2199] fix Upload New Version action availability (#959)
* fix Upload New Version action availability

* update unit tests

* remove workaround

* add catch for tests failing on Bamboo

* add new line
2019-02-19 16:24:43 +02:00
Cilibiu Bogdan
2fd0ff3825 [ACA-2177] Actions - rearrange actions order (#922)
* rearange actions

* remove separator duplication

* don't show last divider element

* update e2e

* update e2e

* Update toolbar-single-selection.test.ts

remove fdescribe

* move comment as well

* edit folder locator

* edit folder action

* edit folder action from toolbar more menu

* edit folder context menu id

* dont render versions tab
2019-02-19 12:26:34 +02:00
Suzana Dirla
58272f7fbe [ACA-2171] enable copy and move to library tests (#933) 2019-02-12 16:54:35 +00:00
Adina Parpalita
819f6ddced [ACA-2160] add tests for Edit offline actions availability (#921)
* add tests for Edit offline actions availability

* fix delete / undo delete tests
2019-02-07 19:45:24 +00:00
Cilibiu Bogdan
913685eb14 [ACA-213] Edit Offline - permissions (#911)
* edit offline action rules

* unlock node error message

* update extensions rules

* lock unlock evaluators

* LockNodeDirective over EditOfflineDirective

* disable tests failing cause of unrelated bug

* isUserWriteLockOwner over isUserWriteLock
2019-02-05 18:39:11 +00:00
Cilibiu Bogdan
e004d365a9 [ACA-213] Edit Offline (#909)
* WRITE_LOCK evaluator

* evaluate actions for WRITE_LOCK

* edit offline action

* DL icon for WRITE_LOCK files

* edit offline directive

* custom name column

* localisation

* toggle offline edit extension

* move takeUntil operator

* add tooltip

* better selector to differentiate Edit folder from Edit Offline

* default to empty object for null properties object

* isPersonalFiles evaluator

* isLibraryFiles evaluator

* isLibraryFiles evaluator

* isPersonalFiles evaluator

* update canEditLockedFile rule
2019-02-01 11:52:08 +00:00
Adina Parpalita
5eaa5c1bc7 add tests for Move content (#908) 2019-01-31 08:50:47 +02:00
Adina Parpalita
42b5f4b749 [e2e] new reporter (#906)
* try new reporter

* run specific suite for testing purposes

* change folder output for report

* more report settings

* remove fdescribe

* remove package and update package-lock

* remove disabled tests not needed by the new reporter

* try to identify cause of travis failure

* run only specific tests for investigation purpose

* remove sleep and increase retry delay

* try a different fix

* revert to previous fix

* try different expects

* call different js-api method

* remove parameter not needed anymore
2019-01-29 14:10:02 +02:00
Adina Parpalita
b61b54d5e9 [ACA-820] add tests for Copy content (#899)
* add tests for Copy content

* fix

* forgot some ids

* update expected favorites number
2019-01-22 16:09:35 +00:00
Denys Vuika
f0a3f6f630 upgrade to latest JS-API and ADF (#896)
* improved update script and latest ADF libs

* upgrade to latest js-api and ADF

* upgrade tests

* update viewer code

* use @alfresco/js-api

* update to latest adf

* fix deprecation issues

* update viewer

* fix copy/move dialog

* change expect

* fix remove site from favorites

* fix unit test

* update adf version

* use ADF upload dialog
2019-01-22 14:10:48 +00:00
Denys Vuika
da3527b0db unified format for viewer sub-menus (#901)
* unified format for viewer sub-menus

* fix tests

* update prettier
2019-01-20 11:13:55 +00:00