78 Commits

Author SHA1 Message Date
Akash Rathod
fef55a3f73
[ACS-5923] remove navigation protractor e2e test (#3541) 2023-11-28 04:36:18 -05:00
Akash Rathod
c086bf2023
[ACS-6367] action available e2e remove (#3540)
* [ACS-6367] action available e2e remove

* [ci:force]

* Revert "[ACS-6367] action available e2e remove"

This reverts commit 0a92a383459797f970ea397c30bfb3350ba1ebeb.

* [ACS-6367] action available e2e remove
2023-11-27 09:43:55 -05:00
Akash Rathod
7468111d19
[ACS-6368] remove special permissions e2e test (#3536) 2023-11-24 11:04:54 +00:00
Denys Vuika
7ab4cc5e53
[ACA-4715] break dependency on envsubst (#3325)
* remove BPM host

* break dependency on envsubst

* remove prebuild script

* cleanup package.json
2023-07-11 08:39:17 +01:00
Michał Fidor
c843a8dbaa
[ACS-5343] refactor Playwright framework in ACA (#3261)
* [ACS-5343] refactor Playwright framework in ACA

* Add the tests for Actions, from the Adam PR [ACS-5328]

* Small fixes

* Improve logs

* [ACS-5343] adding-goThroughPages-and-delete

* [ACS-5343] added git changes

* [ACS-5343] added git changes for playwright

* [ACS-5343] fix for e2e

* [ACS-5343] e2e protractor path fix

* remove import

* [ACS-5343] e2e playwright user fix

* [ACS-5343] e2e playwright user ids fix

* [ACS-5343] e2e playwright users ids fix

* changes for git

* fix playwright test run

* tsconfig path fix

* playwright action yml added

* retrigger checks

* add test id from testrail

* merge conflits

* fix gha

* fix credentials

---------

Co-authored-by: adam.zakrzewski <adam.zakrzewski@hyland.com>
Co-authored-by: akash.rathod@hyland.com <akash.rathod@hyland.com>
Co-authored-by: Denys Vuika <denys.vuika@gmail.com>
2023-06-16 13:07:09 -04:00
MichalKinas
cb84a06e25
[ACA-4625] Add ADF linking to unit tests and e2es (#2853) 2022-12-20 09:40:33 +00:00
Dharan
35289a95f2
[ACA-4507] Fix folder tests (#2227)
* [ACA-4507] Fix folder tests

* * wait for recent files

* * increase timeouts

* * fix comments

* * search untill found

* Revert: * wait for recent files (7be52b12)

* * update timeout

* * upload fixed and improve recent files
2021-07-08 17:25:47 +01:00
Eugenio Romano
7e5cbaa1eb
fix retry (#2226) 2021-07-08 12:16:58 +01:00
Eugenio Romano
4e87adfba3
Remove ora not used dependency (#2179)
* remove ora

* fix argv

* fix lock
2021-06-14 19:53:34 +02:00
Dharan
fa998cdd3e
[ADF-5391] Cannot update multi-value metadata property (#2146)
* [ADF-5391] Cannot update multi-value metadata property

* * fix lint

* * remove unwanted lints

* fix upload screenshot

* fix upload screenshot

Co-authored-by: Eugenio Romano <eugenio.romano@alfresco.com>
2021-05-18 21:32:47 +01:00
Maurizio Vitale
4ebc7447f9
Refactor env variables (#2094)
* Rename the env to sync with BE/Docker

* Refactor envs

* Use the env.yml strategy
2021-04-28 16:14:20 +02:00
Adina Parpalita
febaf6601a
[ACA-3908] use different selectors that are valid for ADW as well (#2091)
* use different selectors in order to be valid for ADW as well

* trigger travis
2021-04-27 17:55:34 +03:00
Popovics András
aaefe4c416
[AAE-4608] Use smartrunner version 2 (#2009)
* [AAE-4608] Use smartrunner version 2

* Fix wrong path
2021-02-19 22:21:31 +01:00
Adina Parpalita
13fa065654
exclude one test and do some fixes (#1869)
* exclude one test and do some fixes

* try to get more logs

* some more fixes

* try to workaround the slow update of toggle menus

* more logging

* no message

* trigger another run

* Update delete-undo-delete.test.ts

* no message

* rename methods

* no message

* no message

* no message

* no message

* no message

* no message

* update travis.yml

* run travis on branch

* trigger travis

* cleanup

* no message
2020-12-15 10:10:01 +00:00
Eugenio Romano
ad58be3d05
Rebalance suites conf to be less error prone (#1819)
* rebalance suites conf to be less error prone

* shared api - wait for specific files instead of totalItems

* remove unused

* - make search api wait calls more stable on parallel runs
- remove not needed workaround from closeMoreMenu

* reorganize test suites
a few more test stabilisations

* improve copy tests for parallel running

* more changes to consider parallel running

Co-authored-by: Adina Parpalita <Adina.Parpalita@ness.com>
2020-12-04 12:39:39 +00:00
Iulia Burcă
43cd3fd1dd
[ACA-3601] Enable tests excluded by ACA-3601 (#1789)
* Enable tests excluded by ACA-3601

* add version-actions tests to protractor.conf
2020-11-25 06:21:19 +00:00
Eugenio Romano
8186ee16ac
increase default timeout due possible slow env (#1812)
* increase default timeout due possible slow env

* parallel test can affect this check

* unused call

* remove

* reduce size test lib

* fix search test

* remove log

* build

* reorganize file actionsAvailable tests

* fix

* fix

* Update single-file-actions.test.ts

* Update single-file-actions.test.ts

* fix viewer actions from search results tests

* fix snackbar actions tests

* forgot console.log

* exclude

Co-authored-by: Adina Parpalita <Adina.Parpalita@ness.com>
2020-11-23 10:35:28 +00:00
Eugenio Romano
8308573f3c
Unexclude due the timeout (#1805)
* change base method to wait

* fix import

* reduce log

* fix

* data placeholder

* fix

* fix

* fix

* fix style

* change visibility with common method

* fix

* use common get value method

* remove unused import

* fix a few incorrect api calls

* - use separate variables

* correctly wait for items after they have been created

* use browseraction click

* Exclude failing tests

* increase timeout and some fix

* check env before execute test

* simplify conf

* exclude

* rerun

* logs

* refactor pagination tests to use only 51 items
take out pagination tests into a separate stage

* fix check

* remove hardcoded total items. other shared files might already exist

Co-authored-by: Adina Parpalita <Adina.Parpalita@ness.com>
Co-authored-by: iuliaib <iulia.burca@ness.com>
2020-11-19 16:07:57 +00:00
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
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
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
Popovics András
3edf48f050
[AAE-3278] Temporary fix for some flakyness: C297638 and C297638 (#1602) 2020-08-13 23:20:05 +02:00
Kristian Dimitrov
cc8532dbd9
[ACA-3793] - Make e2e download folder path OS agnostic (#1581)
* ACA-3793: Make e2e download folder path OS agnostic

* Update protractor.conf.js

Co-authored-by: Denys Vuika <denys.vuika@alfresco.com>

Co-authored-by: Denys Vuika <denys.vuika@alfresco.com>
2020-08-06 13:46:23 +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
805654a65d
update chrom to travis version (#1558) 2020-07-24 18:37:44 +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
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