50 Commits

Author SHA1 Message Date
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
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
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
Maurizio Vitale
e9f33c554d
[ACA-3342] Rename API_HOST to API_CONTENT_HOST (#1475)
* Rename API_HOST to API_CONTENT_HOST

* Use the right property called API_CONTENT_HOST

* Replace missing keys
2020-05-22 09:17:55 +01:00
Adina Parpalita
03a1a5c0e9
fix flaky tests (#1461) 2020-05-09 11:36:28 +01:00
Maurizio Vitale
092fdd71e1
use absolute path 2020-04-25 12:35:18 +01:00
Adina Parpalita
3c4b800a5c
enable fogotten tests (#1429) 2020-04-24 09:50:01 +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
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
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
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
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
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
Denys Vuika
7591710fd0 use fixed chrome version via puppeteer (#1204)
* use fixed chrome version via puppeteer

* remove not needed option and try a headful run

* update to latest Chrome 77

* Update protractor.conf.js

switch back to headless
2019-09-13 13:29:52 +03: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
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
Adina Parpalita
2a4be64bcc [ACA-823] refactoring (#1077) 2019-04-16 10:01:39 +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
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
Denys Vuika
ff19e57185
[ACA-2162] allow custom icons with navbar (#917)
* allow custom icons with navbar

* fix breaking change

* update protractor settings
2019-02-04 21:11:10 +00: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
24f5f01900 [ACA-1928] e2e improvements - part2 (#884)
* refactor Mark as favourite tests
rename method to be more clear
create separate methods for some checks and actions

* forgot some changes

* refactor delete-undo tests

* some more refactoring

* fix

* small improvements / refactoring
2018-12-21 17:04:13 +02:00
Adina Parpalita
ae382f8b39 [ACA-1940] add tests for search input (#776) 2018-11-03 16:38:39 +00:00
Adina Parpalita
37b4d9d00b [ACA-1937] automate tests for Library properties (#771) 2018-11-01 14:52:46 +00:00
Adina Parpalita
7d73ae309c [ACA-1628] async await (#693)
* async / await on login component and utils

* more async / awaits

* remove fdescribe

* expect for exact totalItems in waitForApi methods
other async / awaits

* pagination tests

* more tries

* disable selenium promise manager

* try to fix shared-links tests

* re-enable selenium_promise_manager and some more fixes

* add target es2017 to e2e

* set target to es2017 on tsconfig.spec.json

* other tries

* forgotten console.log

* disable pagination tests

* some fixes for pagination

* temporary fix viewer actions tests

* fix some actions tests

* fix some tests for actions

* fix some tests for undo action

* try to fix some more tests

* fixes for toolbar actions

* fix NoSuchElementError for openMoreMenu

* fix NoSuchElementError for rightClickOnMultipleSelection

* fixes for mark as favourite

* more fixes

* more fixes

* change order of some expects

* forgot describe
2018-10-08 09:21:02 +01:00
Denys Vuika
93e6489881
[ACA-1843] tomcat e2e runs (#674)
* tomcat environment

* disable artifact deployment for now

* travis settings update

* protractor settings

* protractor settings

* e2e fixes

* e2e fixes

* [ACA-1842] fix library dialog

* cleanup travis settings

* disable test (bug raised)

* fix after rebase

* fix after rebase
2018-09-29 11:21:38 +01:00
Adina Parpalita
a9467dcc47 [ACA-1767] add tests for Viewer actions (#641)
* add tests for Viewer actions

* exclude e2e from auto-formatting for now

* update lock file
2018-09-18 16:54:33 +01:00
Suzana Dirla
6e98721a62 [ACA-1569] Close dialogs on logout (#621)
* Close dialogs on logout

* [ACA-1569] e2e tests

* [ACA-1569] review required change on e2e test
2018-09-13 09:05:55 +01:00
Adina Parpalita
b550fe7f72 add specific methods for single click on item name link (#618)
automate tests for Single click on item name
2018-09-07 14:17:07 +01:00
Adina Parpalita
a3c5753a6e [ACA-1549] info drawer extension e2e tests (#580)
* add Info Drawer component and Info Drawer extensibility tests

* add default extensibility configs
2018-08-24 12:15:10 +03:00
Adina Parpalita
c0321fe449 [ACA-1683] add tests for viewer - general (#570)
* rename method to be more clear

* change some files to async / await as they were very difficult to follow

* add uploadApi and a few resource files needed by Viewer tests

* add Viewer e2e component and viewer general tests

* add tests for the other list views as well

* add “docx” to dictionary
2018-08-17 12:27:22 +01:00
Adina Parpalita
b8cc5422f4 [ACA-1653] add testrail ids to e2e tests (#557)
* add testrail ids - WIP

* add TestRail ids to tooltips tests

* added more TestRail ids

* separate tests from Create folder to correct sub-suites

* add more TestRail ids to automated tests

* added more TestRail ids

* added more ids and some missing tests

* combined delete and undo delete tests and added TestRail ids

* decrease protractor timeouts to try and speed up the execution when tests fail

* disable some tests that are incomplete in order to match numbers from TestRail
2018-08-09 12:03:57 +01:00
Denys Vuika
15dff74eea
use port 4000 for e2e runs (#387)
* use port 4000 for e2e runs

* upgrade to latest node images

* Revert "upgrade to latest node images"

This reverts commit 88177f508468f7f9b7d07c388785df1a5c30e27e.

* disable the deletion test for now
2018-06-07 13:32:51 +01:00
Denys Vuika
09aeeff204 initial e2e integration (#329)
* e2e integration with ci

* update travis config

* try always build image

* build the app in production mode

* try to stop previous

* stop default postgresql service

* try upgrade selenium-webdriver

* disable Gecko for webdriver-manager

* use stable chrome and latest protractor
2018-04-23 14:21:41 +03:00
Denys Vuika
d586073705 use default port 4200 for development (#322) 2018-04-19 12:10:32 +03:00
Denys Vuika
e36ad93a98
Sync latest development (#147)
* fix navigation docs issues

* update documentation (#142)

* update documentation

changed start command
used a tags for links nested inside table and p tags, because Github did not render them correctly

* set link to navigation on side-nav.md

* [ACA-1061] update project version (#145)

[ACA-1061] update project version

* move e2e to a separate repo

* fix "view" button (toolbar)
2017-12-14 18:55:01 +00:00
Adina Parpalita
9681b459f7 [e2e] fix selectors (#116)
* fix selectors
start chrome headless

* use case insensitive
2017-12-06 14:32:30 +02:00
Adina Parpalita
2d6ae127aa [ACA-990] stabilise e2e tests (#104) 2017-12-01 11:12:24 +00:00
Adina Parpalita
2ce7d57737 [ACA-990] e2e fixes (#101)
* change selector
rename methods
separate pagination tests into multiple files to try to avoid jasmine timeout
increase a bit the timeouts

* shared-links api needs a bit more time to complete

* a bit more time
2017-11-30 19:44:21 +00:00
Adina Parpalita
79f8ec33a9 [ACA-990] framework improvements (#96)
* refactoring

* e2e API improvements

* forgot one file
2017-11-28 22:02:47 +02:00
Adina Parpalita
d7ba58616c add tests for Restore from Trash (#79) 2017-11-22 17:36:35 +02:00
Adina Parpalita
9632f57e5e provide the list of specs to enforce their execution order
proper formatting
2017-11-08 16:16:18 +02:00
Cilibiu Bogdan
25a9f92c10 junit reporter prefix 2017-10-25 17:43:50 +03:00
Bogdan Cilibiu
0b27836d6a run all tests 2017-10-25 11:47:54 +03:00
Bogdan Cilibiu
e2a0ce84d5 e2e reporters 2017-10-25 11:46:30 +03:00
Denys Vuika
639e1e9aaf update protractor config 2017-10-19 16:37:49 +01:00
Denys Vuika
7f12841e5a e2e tests 2017-10-19 13:47:25 +01:00
Denys Vuika
b41a547e74 initial project scaffold 2017-10-18 17:16:29 +01:00