Commit Graph

588 Commits

Author SHA1 Message Date
Denys Vuika
9c7ac17161 Various code fixes (#1704)
* fix typings and missing lib

* fix i18n typo, add typings

* code improvements

* fix missing awaits

* more fixes

* fix bug in the evaluators, simplify code

* more fixes
2020-10-04 18:09:27 +01:00
arditdomi
4547621da6 Update to latest ADF and fix unit tests and broken e2e (#1702)
* Update to latest ADF

* Trigger a run with an older ADF version (investigation of e2e failures)

* Update to latest ADF

* Fix search e2e to search for a more specific search term according to the files uploaded
2020-10-02 12:28:31 +01:00
davidcanonieto
51184e5b16 [ADF-5257] Refactor Document list header filters (#1691)
* [ADF-5219] Refactor Document list header filters

* Fix navigation

* Remove unsued code

* Push package-lock

* Fix C306990
2020-09-28 09:14:02 +01:00
maurizio vitale
9d4da12c8c Add the lite-server-proxy 2020-09-23 15:32:41 +01:00
Maurizio Vitale
9b0c31073a ACA Run the test against the remote env (#1669)
* Run the test against the remote env

* Use remote user

* exclude e2e and raise issue

* Exlude more

* small change to trigger travis

* add api method to get totalItems of various endpoints

* lint fix

* remove tests from excluded to see what fails

* - fix some issues with the screenshot plugin
- add methods to get total items for some endpoints
- fix some waitForApi calls to consider initial total items number
- sortByModified descending in order to find the item needed by the test when having items on multiple pages

* Try to fix screenshots

* a few more fixes

* Upload screenshots

* a few more fixes

* Delete e2e-output-${retry} at the end

* delete unused variable

* some changes

* lint

* try one more fix

* Try to fix retry

* a few more fixes

* Try to fix retry

* some more fixes

* Fix "on Recent Files" suite

* Move "on Search Results" at the beginning of the class in order to avoid waitForApi:catch

* Empty commit

* Empty commit

* Empty commit

* Run e2e with lite-server

* Exclude protractor report folder

* Remove useless config

* change browser size

* no message

* one more try

* Empty commit

* try to maximize

* fix upload Recent files tests

* revert maximizing the browser

* don't "Run e2e with lite-server"

* fix mark-favorite tests

* few more fixes

* fix viewer and share tests

* test the lite server with retry

* Verify suites with lite server

* some final fixes

* Try to use httpserver

* Print the file and use http server

* Use http-server to fix protractor retry

* more fixes

* forgot a space :|

* remove extra job not needed anymore
rename test data into more specific

* play with the screenshots

* try new run

* trigger one more run

* a few more little fixes

* Fix comments

* Remove comment

* Fix lint error

Co-authored-by: Adina Parpalita <Adina.Parpalita@ness.com>
Co-authored-by: Cristina Jalba <cristina.jalba@ness.com>
Co-authored-by: iuliaib <iulia.burca@ness.com>
2020-09-18 12:01:55 +01:00
Eugenio Romano
9d52b366a1 change plugin (#1663)
* change plugin

* fix

* fix upload
2020-09-09 14:42:47 +01:00
Eugenio Romano
64ab91007b Remove excluded test (#1614) 2020-08-17 10:09:50 +01:00
Eugenio Romano
8096741398 Update protractor.conf.js (#1606)
* Update protractor.conf.js

* add option to retry for wanted executions

* cahnges
2020-08-14 15:32:52 +01:00
Silviu Popa
9bdaa59657 [ACA-3848] - change default sorting (#1600)
Co-authored-by: Silviu Popa <p3701014@L3700101120.ness.com>
2020-08-13 16:50:54 +01:00
Denys Vuika
b86db21e93 [ACA-3593] fix library builds (#1593)
* upgrade to solution style tsconfig

* remove missing path

* add e2e config to the solution

* fix config path
2020-08-11 17:13:22 +01:00
Vito
053d2de069 [ACA-3796] - fixed error on sorting (#1575)
* [ACA-3796] - fixed error on sorting

* [ACA-3796] - fixed unit test

* [ACA-3796] - start fixing e2e plus fixed filter parent node

* Rebased and upgraded to the latest ADF

* [ACA-3796] - fixed pr comments

* last adf update

* remove unused loading

* clean unit test

* [ACA-3796] - reverted fix for filters parent

Co-authored-by: Eugenio Romano <eugenio.romano@alfresco.com>
Co-authored-by: Eugenio Romano <eromano@users.noreply.github.com>
2020-08-10 21:13:28 +01:00
Popovics András
d7e61e8fcb [ACA-3394] Fixing wrong rebase for file preview and exclude failing regressive e2es (#1586)
* [ACA-3394] Fixing wrong rebase for file preview

* Exclude failing tests
2020-08-08 11:44:43 +02:00
Silviu Popa
ce081aaad2 [ACA-3808] - fix e2e actionMenu (#1580)
* fix e2e actionMenu

* PR changes

* wait for context menu to close

* wait for menu to close after escape key

Co-authored-by: Silviu Popa <p3701014@L3700101120.ness.com>
2020-08-06 20:45:05 +01:00
Denys Vuika
b7d7d607a0 disable flaky e2e test 2020-08-05 16:19:36 +01:00
Urse Daniel
f59abb4228 [ACA-100] View a previous version (#1562)
* added a feature to view a previous node version

* added latest versions

* added single selection to match the latest ADF change

* hide version list dialog when opening the viewer

* pass versionId to adf-viewer

* add view versions rendition routes for: shared, recent files, favorites, search.

* added functionality to download a previous version of a node

* small fix - no need to clear the store

* remove unused import

* removed changes

* Delete package-lock.json

* revert

* update to last dependencies

* ACA-3601: Add e2e tests for Preview of a file's previous version

* Address comments

* ACA-3601: Make sub-tests execute independently

* update dependencies

* ACA-3601: Add licenses

* Add type

* ACA-3601: Refactor execution

Co-authored-by: kristian <kristian.dimitrov@alfresco.com>
Co-authored-by: Denys Vuika <denys.vuika@alfresco.com>
2020-08-05 16:15:20 +03:00
Denys Vuika
3c5522821e exclude flaky test 2020-08-05 12:15:15 +01:00
Eugenio Romano
aee3afdeb8 Fix smart runner (#1570)
* [ACA-3799] add prefix filter

* add smart runner

* fix resolve

* add some configuration for smartrunner

* simplify

* fix

* we need to pass invertGrep in the devServerTarget because Angular overwrite it if you use the dev server
2020-08-01 00:26:22 +01:00
Eugenio Romano
d26bbc9bff [ACA-3799] add prefix * name filter (#1567)
* [ACA-3799] add prefix filter

* add smart runner

* fix resolve
2020-07-31 12:18:42 +01:00
Eugenio Romano
f1097800db Remove protractor noise plugin (#1526)
* remove protractor noise plugin

* missing plugin

* pin version

* new lock
2020-07-17 11:18:00 +01:00
dhrn
f35095a75b [ACA-3670] Inconsistent empty role value between library views (#1528)
* [ACA-3613] Inconsistent role value between library views

* * upgrade alpha

* fix ut
2020-07-15 09:51:09 +01:00
Denys Vuika
ddc6f36ab4 Prettier upgrade and e2e type checks (#1522)
* upgrade prettier

* noImplicitAny rule

* fix type

* update tsconfig

* upgrade to 150 print width
2020-07-14 10:03:23 +01:00
Denys Vuika
988d4c35c2 disable flaky e2e 2020-07-11 12:08:07 +01:00
Cristina Jalba
cf9e3180c9 Copy screenshots to env (#1508)
* add screenshots

* Fix protractor file

* make 1 test to fail

* remove method

* fix build number

* add log

* fix folder path

* fix test

* fix test

* Move saving screenshots to separate file

* Remove failing tests
2020-07-10 13:08:37 +01:00
Cristina Jalba
c74eb55653 Enable remaining tests (#1510) 2020-07-09 17:44:23 +01:00
Denys Vuika
2854c17cd9 [ADF-5183] Upgrade to Angular 10 (#1506)
* upgrade preparation fixes

* remove fdescribe

* update browserlist config

* ng8

* ngrx 8

* ng9

* ngrx 9

* remove entryComponents

* unit tests

* ng 10

* latest ADF

* fix unit tests

* fix lint

* update deps and travis

* code fixes

* upgrade webdriver

* cleanup libs

* fix test

* update test

* Use browserTarget as target for lite-serve

* Use the update webdriver with CI condition

* Use version console.log('load', path

* Fix path sh

* Try to use remote env

* Add the . to export variabled

* Use hardcoded chrome version

* Remove the run remote

* Avoid to use the escape

* Skip flaky e2e and raise issue ACA-3615

* SKip failing e2e

* Skip flaky e2e and raise issue ACA-3615

* Fix close app toolbar menu and preconditions + tests of  mark-favorite.test.ts  Personal Files section

* Fix mark-favorite tests

* Fix ext-header test

* Fix new-menu tests

* Fix lint

* no message

* Fix viewer tests

Co-authored-by: maurizio vitale <maurizio.vitale@alfresco.com>
Co-authored-by: Cristina Jalba <cristina.jalba@ness.com>
2020-07-09 09:37:06 +01:00
Baptiste Mahé
2e8b863413 [ACA-3468] Enable Document List filters in ACA (#1495)
* [ACA-3471] too long french translation doesn't fix in the UI (#1499)

* [ACA-3538] Fix search result layout (#1500)

* [ACA-3468] Enable Document List filters in ACA

* [ACA-3468] Get pagination settings from document list

* [ACA-3468] Move event handlers and pagination to page component

* [ACA-3468] Remove useless OnChanges

* [ACA-3468] Fix linter

* [ACA-3468] Add test for document list definition

* [ACA-3468] Fix lint

* [ACA-3468] Remove identifier

* [ACA-3468] Update to lastest ADF alpha to fix search result

* [ACA-3468] Update to lastest ADF alpha

* Fixed unit test

* re-enable tests

* rollback changes to test

* fix reload

* * fixed search e2e

* fix issue with page reload on search results

* update tests

Co-authored-by: arditdomi <32884230+arditdomi@users.noreply.github.com>
Co-authored-by: PizzaVito <vito.albano.123@gmail.com>
Co-authored-by: Denys Vuika <denys.vuika@gmail.com>
Co-authored-by: dhrn <dharan.g@muraai.com>
2020-06-29 17:28:31 +01:00
davidcanonieto
85f71f5ae1 [ACA-3427] Remove About tab when it's not useful (#1491)
* [ACA-3427] Remove About tab when it's  not useful

* Add unit tests for isLibraryManager rule

* Fix e2e tests

* Fix e2e tests and add rule to docs

* Fix e2e tests
2020-06-18 22:03:26 +01:00
davidcanonieto
03b75a5fb3 [ACS-180] Add Description column to My libraries / Favorites (#1486)
* [ACS-180] Add Description column to My libraries / Favorites

* Fix e2e test

* Fix datatable selector

* Fix role and visibility selectors

* Add description to search library layout

* Final fix
2020-06-16 14:54:26 +01:00
Urse Daniel
42d3d5cd6f [ACA-45] Drag and Drop a new version (#1477)
* added functionality to import a file from drag&drop

* handle dropping a file over another and triggering the dialog for manage versions while passing the dropped file

* handle receiving and passing a file to version manager

* handle dropping a file over another.

* refactoring the component by using 2 ADF components and showing them by a specific view case.

* updated the dialog ref based on how the version dialog should behave in order to change/view a file's versions

* handle the new drag&drop to upload a file's version functionality

* removed the custom previous version upload component

* added payload constructor

* added unit test, fixed some misstypes

* fix failing travis unit tests

* fix failing travis unit tests

* added translate module

* added last version and fix failing test

* small fixes and change type workflow to customevent.

* small fix

* fix flaky test

* deleted flaky merge

* ACA-45: Take drag'n'drop pop-up title from ACA rather than the ADF component

* fixed a logical issue

* ACA-45: Fix failing e2e tests

* unit testing error fixing

* unit testing error fixing

* fix unknown word travis

* unlock node after upload success

* unlock node after cancelling upload

* ACA-45: Introduce back fileUnlock asserts

* added unit test for checking if the locked node is unlocked when uploading successfully a new version

* added type of event and small update to unit test

Co-authored-by: kristian <kristian.dimitrov@alfresco.com>
2020-06-09 21:48:03 +01:00
Roxana Diacenco
6e17405787 [ACA-3392] Create aca-testing-shared project to be reused in ADW (#1480)
* Move e2e framework to aca-shared/testing

* * Update e2e suites imports from @alfresco/aca-shared/testing
* Remove testing framework from 'e2e' directory

* Move e2e testing framework to `aca-testing-shared` project
2020-06-04 22:40:07 +02:00
Eugenio Romano
5a12345865 [ACA-2312] Fix inconsistency for My Libraries (#1473)
* [ACA-2312] Fix inconsistency for My Libraries

* fix quality

* fix e2e

* modify e2e type

* fix file lib

* revert replace all
2020-05-22 00:46:24 +01:00
dhrn
3b4579c19c [ACA-3257] Add actions extension capability to info drawer (#1471)
* info drawer action added

* actions added

* * improved docs

* * added unit test

* fixed e2e

* * rename actions to toolbar

* * minor changes

* Update application-features.md

Co-authored-by: Eugenio Romano <eromano@users.noreply.github.com>
2020-05-19 17:46:11 +01:00
Cilibiu Bogdan
234b41b917 [ACA-3296] Header - support actions order (#1464)
* header action order property

* apply sort for parents and children

* update tests

* use parent class to set style

* render user component through configuration

* header should allow disable actions rendering

* update e2e header resource
2020-05-19 16:56:03 +01:00
Adina Parpalita
03a1a5c0e9 fix flaky tests (#1461) 2020-05-09 11:36:28 +01:00
Denys Vuika
5259f840a8 Optimize e2e framework (#1428)
* reduce breadcrumb page

* imrpove readability of code

* reduce data-table page size

* reduce datetime-picker code

* fix datatable page

* header and info drawer

* update datatable page

* toolbar cleanup

* more test components cleanup

* even move component cleanup

* move wait utils to the Utils

* unified waits

* cleanup menu page

* code fixes

* fix code

* code improvements

* rename api

* fix code

* fix code

* cleanup dialog pages

* more fixes and dead code removal

* code fixes

* try to fix the flaky teset

* fix code

* fix code

* update code

* fix lint

* unified text input

* fix lint

* add missing await

* reduce the wrapper method around clear text

* resolve element value

Co-authored-by: Cilibiu Bogdan <bogdan.cilibiu@ness.com>
2020-04-29 08:40:55 +01:00
Denys Vuika
bf509843b7 integrate Prettier with tslint (#1419)
* integrate prettier with tslint

* remove obsolte scripts

* update tsconfig

* fix lint issues

* fix lint errors

* more rules and fixes

* kebab case and lint fixes

* update helpers

* update util
2020-04-19 23:29:20 +01:00
Denys Vuika
6a84717a00 fix naming for e2e (#1418) 2020-04-17 14:33:05 +01:00
Denys Vuika
cfb9c4bca9 use Logger instead of console (#1417) 2020-04-17 12:25:25 +01:00
Adina Parpalita
2816e5fe11 E2E: try to fix one weird flaky test (#1401) 2020-04-07 09:53:44 +01:00
Denys Vuika
1b4bacf7fa upgrade to latest ADF alpha (#1373)
* upgrade to latest ADF alpha

* an extra step is needed now in order to open the calendar

* max date constraint

* upgrade libs

* upgrade node-sass

* upgrade spellcheck lib

* upgrade libs

* update test

* restore time back

* update libs

* update libs

* update libs

Co-authored-by: Adina Parpalita <Adina.Parpalita@ness.com>
2020-04-02 14:57:41 +01:00
Maurizio Vitale
b240909868 Use the e2e lite-serve (#1390)
* Enable liteserve Fix ecmHost Enable browser open

* Be able to pass a different admin credentials

* use the e2e liteserve

* sync package-lock

* Update webdriver

* Replace the app.conf values before running e2e. Be able to run e2e on external env

* Remove dist mystake

* Remove the baseUrl from the contains

* Use the docker image

* stop postgresql before install

* Try the new strategy

* regenerate the package lock

* Wait for the content to go up

* Change travis with start.sh

* do not override the baseUrl

* Create a different docker compose for e2e

Co-authored-by: Adina Parpalita <adina.parpalita@ness.com>
2020-04-02 09:21:44 +01:00
Adina Parpalita
2e126b787d add workaround needed in ADW due to REPO-4772 (#1353) 2020-02-25 18:43:32 +02:00
Adina Parpalita
a825c37da4 e2e refactorings (#1346)
* - create a generic-dialog class to remove some duplicated code
- add return types

* - share dialog needs custom methods
- also, fix copy/paste mistake :D
2020-02-25 12:28:59 +02:00
Cilibiu Bogdan
1a16d74b62 [ACA-2174][ACA-2173] Shared / Favorites - edit offline (#1341)
* edit offline

* try to fix test for viewer - password protected file

* bug: Edit in Microsoft Office action is displayed in Shared Files for a locked file
move Shared Files workaround down in the file to fix this

* remove some workarounds, update some comments

* remove other workarounds, make some tests independent, enable lock icon on Search results

* forgotten change

* remove another workaround

Co-authored-by: Adina Parpalita <adina.parpalita@ness.com>
2020-02-17 16:02:25 +02:00
Adina Parpalita
c37e5f431e add TestRail IDs (#1340) 2020-02-13 17:38:54 +02:00
Adina Parpalita
fe52b0f468 [ACA-2840] automate tests for the destination picker (#1332)
* automate tests for the destination picker

* fix spellcheck
2020-02-10 13:14:21 +01:00
Cilibiu Bogdan
d4f04323b3 ADF 3.7.0-bab49 (#1324)
* adf 3.7.0-1754

* fix header name selector

* fix  more / less state

* click correct button

* check correct button

* remove Thumbnail column from headers list

* 3.7.0-0256a update

* remove Thumbnail. from headers list

* remove Thumbnail

* header cell value selector

* adf 3.7.0-bab49

* change selector after accessibility fixes

Co-authored-by: Adina Parpalita <adina.parpalita@ness.com>
2020-02-06 15:31:27 +02:00
Adina Parpalita
2733c69c9a [ACA-1921] automate tests for Create folder from template (#1320)
* automate tests for Create folder from template
added unit test for exclusion of folder links

* fix stupid mistake
2020-01-23 17:47:25 +02:00
Cilibiu Bogdan
5e203cab96 [ACA-2882] Create from template - generic form errors (#1317)
* remove type from error message

* change validation message

* change required message
2020-01-23 09:58:30 +02:00
Cilibiu Bogdan
8603d13f71 [ACA-1921] Create folder structure from template (#1309)
* update template actions

* update template effects

* declare menu option

* rename dialog component

* rename service

* update tests

* update docs

* e2e fix locator

* fix translation reference
2020-01-22 10:35:32 +02:00