271 Commits

Author SHA1 Message Date
Denys Vuika
c9705b06d5
TestElement prototype to greatly reduce e2e coding time (#6525)
* TestElement prototype

* introduce byText wrapper

* extend TestElement api

* cleanup tests a bit more

* cleanup e2e

* more e2e cleanup

* add missing CSS classes

* fix test
2021-01-15 11:31:45 +00:00
Eugenio Romano
1c51b2a1a6
Use hash strategy in demo shell as the other apps (#6402)
* hash startegy

* use hash in e2e

* trigger build

* fix

* fix

* remove children router overwrite crazynes

* Update login.module.ts

* revert not needed changes

* some fixes

* fix

* remove fdescribe

* fix

* fix

* Update share-file.e2e.ts

* Update lock-file.e2e.ts

* Update share-file.e2e.ts

* some fix

* some other fixes

* username as id

* fix after rebase

* username

* fix usernamee

* Fix the errorComponent

* Attempt to fix unit test - to check

* * Fixed circular dependency error while building adf-testing package

* * Fixed failing UT

* fix

* use username

* some fixes

* some fix

* fix

Co-authored-by: Maurizio Vitale <maurizio.vitale@alfresco.com>
Co-authored-by: Vito Albano <vitoalbano@vitoalbano-mbp-0120.local>
Co-authored-by: sivakumar414ram <siva.kumar@muraai.com>
2020-12-16 18:46:56 +00:00
dhrn
d70cfa7fc9
[ADF-5283] Fix Permission Flaky test (#6380)
* [ADF-5283] Fix Permission Flaky test

* * Removed search service

* * check permission for folder

* * execution flow fixed

* * wait for files to index

* Fix e2e tests

* * wait for user to index

* * try something api fix

* * revert back the changes

* Add sleep

* Refactor permission tests

* bring back good things

Co-authored-by: Cano <david.cano.nieto@gmail.com>
Co-authored-by: Eugenio Romano <eromano@users.noreply.github.com>
Co-authored-by: Eugenio Romano <eugenio.romano@alfresco.com>
2020-12-08 11:43:55 +00:00
Eugenio Romano
ababde3760
ix build (#6347)
* create after e2e and before e2e script

* permission test exclude

* flaky exclude

* fix

* chmod permission

* modify check cs

* fix

* execute

* fix

* fix
2020-11-16 00:49:10 +00:00
davidcanonieto
973b58f420
[ACA-4124] Change name displayed for groups in Add Permission Panel Component (#6305)
* [ACA-4124] Change property displayd for groups in Add Permission Panel Component

* [ACA-4124] Add 503 localization

* Fix e2e test

* Fix e2e test
2020-11-10 10:18:59 +00:00
Eugenio Romano
fca378a12b
move users in the users object to make loginWithProgile general purpose (#6270)
* move users in the users object to make loginWithProgile general puropose

* add loginProfile in login page too

* fix

* fix

* fix

* fix

* fix

* fix

* more fix

* fix

* fix

* fix

* change

* fix script

* fix
2020-10-26 17:46:54 +00:00
Denys Vuika
217ae445c6
improved e2e login api (#6248)
* improved e2e login api

* throw error on missing profile
2020-10-16 07:30:43 +01:00
Eugenio Romano
04f5fdffd7
[ADF-5263] Empty page displayed all the time when load content fix (#6209)
* Make test run on API update
Improve create librrary test

* Fix empty page displayed always first

* remvoe console

* fix

* fix

* lint

* fix

* fix

* fix

* fix

* fix
2020-10-05 00:26:56 +01:00
Eugenio Romano
7fb42d79c0
Test improve 2 (#6167)
* more debug log

* fix

* next chrome

* fix favorite

* fix

* Fix spelling

* fix

Co-authored-by: Adina Parpalita <adina.parpalita@ness.com>
2020-09-28 00:05:07 +01:00
Eugenio Romano
3f1a9f4853
Test improve (#6146)
* fix

* fix datatable wait method

* slow down isEmpty check

* fix

* fix

* fix
2020-09-23 13:32:27 +01:00
Eugenio Romano
46ccda68b3
[ADF-5235] Facet fix and improve search test (#6122)
* improve search test

* fix

* fix

* fix

* changes

* modify

* logout public URL

* improve stability some e2e

* fx lint

* fix

* fix

* improve

* fix

* improve

* fix

* fix

* fix

* fix [skip ci]

* fix

* some fix [skip ci]

* fix

* fix lint

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* convert C291893 in manual test case in testrail

* fix

* fix
2020-09-21 09:35:01 +01:00
Eugenio Romano
c57253ff54
Remove excluded test (#6096)
* remove excluded test part1

* remove fit

* fix

* fix lint

* fix

* fix

* fix

* fix

* fix lint

* fix lint

* fixes

* update protractor due incompatibility with new node versions

* increase timeout pdf when system is busy
2020-09-08 14:39:22 +01:00
Eugenio Romano
a630cfb390
Fix e2e (#6087)
* fix protractor conf

* remove update env

* fix cli error script cs

* change screenshot plugin

* remove unused param

* fix

* fix

* fix

* moment comment nvm

* fix

* fix

* fix

* fix

* remove adf redirect

* fix

* fix

* save remote report

* report fix

* improve save result

* fix folder save

* fix folder save

* fix placeholder pointer , they needs refactor later

* fix

* fix lint

* fix

* remove test already covered by unit
fix the test in core needed
exclude the one impossible to make it works without APS basic support

* lint

* fix some logout missing

* fix

* Fix the custom-tasks-filters.e2e

* fix lint

* fix

* fix

* fix

* Fix wait on start process  and on process definition options

* Fix logout before login again

* fix uplaod test

* fix

* Fix infodrawer with check detail and sleep

* lint

* increase list of excluded test

* fix

* fix lint

* change wait method datatable

* fix

* fix

* revert check value

* fix

* fix

* change tag test

Co-authored-by: maurizio vitale <maurizio.vitale@alfresco.com>
2020-09-04 13:27:55 +01:00
Eugenio Romano
7cfb95da9d
Execute test when change exclude file (#5989)
* Execute test when change exclude file

* Update protractor.excludes.json

* Update nx.json

* fix first call use all params document list
2020-08-17 10:45:55 +01:00
Cristina Jalba
ff8cfb1d05
Improve attach file widget PO (#5973)
* Improve attach file widget

* Fix import

* Fix import

* no message
2020-08-11 13:45:48 +01:00
Urse Daniel
7c09fb1fb9
added functionality to view a previous version (#5913) 2020-07-27 09:29:29 +01:00
arditdomi
b9dc285d2b
[ACA-3596] Fix e2e due to process header properties changes (#5873)
* [ACA-3596] Fix e2e due to process header properties changes

* Change pages structure

* Move the build demoshell as last step and exclude for PR

* move more pages

* change testing pkg

* better JSON import

* update script

* move CLOUD in the right place

* some logs and not used methods

* retrycout

Co-authored-by: maurizio vitale <maurizio.vitale@alfresco.com>
Co-authored-by: Eugenio Romano <eugenio.romano@alfresco.com>
Co-authored-by: Eugenio Romano <eromano@users.noreply.github.com>
2020-07-16 22:22:22 +01:00
Eugenio Romano
d1672596ba
Unify hash url strategy (#5866)
* unify hash url startegy

* improve
2020-07-14 16:00:32 +01:00
dhrn
d7dc6d7230
[ADF-5191] move reusable actions to testing package (#5842)
* [ADF-5191] move reusable actions to testing package

* * tenant added

* * improved logic

* fix circular deps error and warns

* fix unit test
2020-07-08 09:11:30 +01:00
Denys Vuika
cd2b489100
[ADF-5146] Upgrade to Angular 10 (#5834)
* remove useless module

* upgrade to angular 8

* upgrade material to v8

* upgrade adf libs

* migrate demo shell to v8

* upgrade to angular 9

* upgrade material to v9

* remove hammer

* upgrade nx

* upgrade datetime picker

* upgrade flex layout

* update core api

* remove entry components

* code fixes

* upgrade testbed usage

* code fixes

* remove unnecessary core-js from tests

* upgrade CLI

* ts config fixes

* fix builds

* fix testing config

* compile fixes

* fix demo shell dev setup

* fix core tests

* fix card view import

* upgrade nx

* disable smart builds for now

* remove fdescribe

* restore smart builds

* fix issues

* unify tsconfigs and fix newly found issues

* fix configuration and cleanup package scripts

* improved production build from the same config

* use ADF libs directly instead of node_modules

* disable smart build

* single app configuration (angular)

* fix core build

* fix build scripts

* lint fixes

* fix linting setup

* fix linting rules

* various fixes

* disable affected libs for unit tests

* cleanup insights package.json

* simplify smart-build

* fix content tests

* fix tests

* test fixes

* fix tests

* fix test

* fix tests

* disable AppExtensionsModule (monaco example)

* remove monaco extension module

* upgrade bundle check rules

* fix insights tests and karma config

* fix protractor config

* e2e workaround

* upgrade puppeteer and split linting and build

* reusable resources config

* update protractor config

* fix after rebase

* fix protractor config

* fix e2e tsconfig

* update e2e setup

* Save demoshell artifact on S3 and remove travis cache

* Push the libs on S3 and fetch before releasing it

* Add deps

* Add dependencies among libs and run only affected unit test and build

* fix the travis stage name

* fix after renaming dev to demoshell

* force the order of the projects

* remove unused dependencies

* fix content e2e script

* exit codes fix

* add extra exit codes to core e2e

* postinstall hook and package cleanup

* cleanup packages

* remove deprecated code and dependency on router

* improve bundle analyzer script

* minor code fixes

* update spec

* fix code after rebase

* upgrade protractor after rebase

* fix e2e mapping lib

* Update tsconfig.e2e.json

* update e2e tsconfig

* fix angular config

* fix protractor runs

* cache dist folder for libs

* update material selectors for dropdowns

* selector fixes

* remove duplicated e2e that have unit tests already

* fix login selector

* fix e2e

* fix test

* fix import issues

* fix selector

* cleanup old monaco extension files

* cleanup demo shell login

* add protractor max retries

* disable customisations of protractor

* fix login validation

* fix after rebase

* fix after rebase, disable latest versions of libs

* Hide the report tab and rollback the localstorage

* rename protractor config back to js

* restore lint as part of build

* cleanup code

* do not copy anything to node_modules on dist test

* fix unit tests

* config fixes

* fix code

* fix code after rebase

* fix tests

* remove existing words from spellcheck

* remove useless directive decorators

* update package.json after rebase

* add js-api back

* code fixes

* add missing export

* update configs

* fix code

* try fix the sso login test

* fix

* remove puppeteer unit

* fix e2e script

* fix

* make provider easy

* fix routes module before upgrade

* fix unit tests

* upgrade angular cli

* upgrade to angular 10

Co-authored-by: maurizio vitale <maurizio.vitale@alfresco.com>
Co-authored-by: Eugenio Romano <eugenio.romano@alfresco.com>
Co-authored-by: Eugenio Romano <eromano@users.noreply.github.com>
2020-07-03 13:01:05 +01:00
davidcanonieto
2547f9692d
[ADF-5174] Add Permisssions Dialog to adf-testing Lib (#5824)
* [ADF-5174] Add Permisssions Dialog to adf-testing Lib

* Fix linting
2020-06-30 11:39:01 +01:00
Denys Vuika
e9350bd297
various code quality fixes (#5792)
* various code quality fixes

* reduce duplicated code

* add safety check
2020-06-18 17:57:46 +01:00
Eugenio Romano
fffa97c7f8 use new static drop actions 2020-06-09 01:25:08 +01:00
Eugenio Romano
1c030d7b48
improve e2e configuration (#5752)
* improve e2e configuration

* fix login

* fix login

* use storage

* fix

* default oauth

* improve share file test and add baseShareUrl init in e2e

* some click script better usage
2020-06-06 20:12:54 +01:00
Eugenio Romano
a78f24ada1
[ACS-259] refactor login page (#5733)
* refator login page

* refator login page

* remove obsolete classes and move what is needed in the test pck

* fix const

* revert modify

* remove duplicate browser property

* fix build

* fix

* fix

* fix lint

* move drop action in testing
remove not necessary space
js-api centralize content

* first refactor use js-api

* fix protractor

* refactor test config

* simplify properties
fix namings

* ps cloud simplify
remove unused js files

* id fix

* fix search test
simplify environment var step 1

* fix lint

* first user iteration fix

* fix model

* unify use of apiService

* first step automatic user creation Identity

* refactor creation user content-services

* refactor creation user search

* refactor creation user core

* process service refactoring 1

* process service refactoring 1

* process service refactoring 2

* fix process

* appconfig

* fix process util

* fix gallery

* fix "this" reference issues

* fix incorrect import paths

* fix core

* some fixes

* allign

* fix some test
remove structure folder and move in actions

* fixes

* move folders in the right place

* fix

* fix rebase

* solve build issue

* fix e2e

* change init aae

* order api and some fixes

* fix possible not valid password

* fix some ps test

* replace host port also in objects

* Update app-config.service.ts

* fix process

* fix process test

* process service cloud fix

* fiexs

* modify init script

* fix two test

* remove unused property

* host issue

* not use npx

* fix ps cloud test

Co-authored-by: Denys Vuika <denys.vuika@gmail.com>
2020-06-04 14:41:30 +01:00
Cristina Jalba
5133705469
[ACA-3028]Move breacrumb page to adf testing package (#5705)
* Move breacrumb page to adf testing package

* no message
2020-05-14 23:51:34 +01:00
Eugenio Romano
bf729f60a2
[Impreove e2e] Dev delete sites e2e missing (#5695)
* fix e2e sites delete

* fix lint

* permamenent
2020-05-13 22:35:31 +01:00
Cristina Jalba
24786b54e3
[ACA-3269]Move notificationPage to adf testing package (#5687)
* Move notificationPage to adf testing package

* Fix lint

* Fix test

* Fix test

* Wait for snackbar to be closed in the tests

* Fix notification tests
2020-05-12 23:09:55 +01:00
Eugenio Romano
f72f82ed4a
fix e2e (#5686)
* fix e2e

* Update notifications-component.e2e.ts

* fix e2e

* fix e2e

* try with interval

* Update version-actions.e2e.ts
2020-05-12 10:04:55 +01:00
davidcanonieto
8f68899ce0
[ADF-4900] Card View and Metadata Components refactoring (#5592)
* [ADF-4900] Card View and Metadata Components refactoring

* CSS linting

* Unit test excluded

* Rebase branch

* Fix unit tests

* Fix linting

* Fix e2e tests

* Fix 2e2 tests

* Fix process-services e2e tests

* More fixes

* Fix more e2e tests

* Fix unit test

* Improve flaky unit test

* Fix process services e2e tests

* Update Process Header Cloud Page

* Fix linting

* Fix timing issue

* Lintintg

* Fix selectors

* Fix e2e tests

* Fix timing issue

* Fix C260328

* Fix spellcheck

* save screenshot

* performance issue

* Fix unit tests and e2e tests

* fix e2e

* refactoring

* fix lint

* fix e2e

* Fix C309698

* fix other e2e

* fix lint

* increase timeout

Co-authored-by: Eugenio Romano <eugenio.romano@alfresco.com>
2020-04-27 00:09:52 +01:00
Eugenio Romano
b9842ba12b
add slower type method for user picker (#5632)
* add slower type method for user picker

* add slower type method for user picker

* slower

* other fixes

* remove slow digit

* fix some more test

* slow down

* fix some more test

* exclude test

* exclude C315268
2020-04-23 23:23:32 +01:00
Cristina Jalba
098b9881eb
[ACA-3023]Refactor APS1 PO and ACS API calls of ADF testing package (#5629)
* Change the uploadFile method from ADF testing package

* Fix lint

* no message

* Fix a part of the tests

* Fix last tests

* Fix test

* Fix tests

* Fix test
2020-04-23 09:49:41 +01:00
Eugenio Romano
f36cbd57ef
Fix E2E run (#5624)
* Fix E2E run
remove not used report
Fix USERNAME AND PAS upload PS cloud e2e screenshot

* save report

* multiple 4 cs

* change test fix screenshot and others

* exclude other test
2020-04-20 17:54:03 +01:00
Mark Steadman
5bcd326891
[ACA-2619][ACA-2616] a11y fixes for Share Link dialog (#5454)
* chore: proper disabling of fields for a11y

* component fixes

* update tests

* update tests

* fix aria labels

* aria-label fixes

* update layout

* update e2e tests

Co-authored-by: Denys Vuika <denys.vuika@gmail.com>
Co-authored-by: Cilibiu Bogdan <bogdan.cilibiu@ness.com>
2020-03-19 08:13:42 +00:00
Vito
ec689cad3f
AAE-1841 - added delete directive test (#5547)
* AAE-1841 - start adding e2e for delete directive

* AAE-1841 - added delete directive test

* AAE-1841 - fixed PR review
2020-03-17 18:57:04 +00:00
Cristina Jalba
ea6ab300c4
[ADF-1895]Refactor date-time-picker and date-picker (#5544)
* Refactor date-time-picker and date-picker

* no message
2020-03-16 10:44:39 +00:00
Alexandra Abrudan
c91458df79
[AAE-1846] [AAE-1857] automated e2e tests uploading folders (#5483)
* [AAE-1846] automated e2e tests - uploading a folder

* [AAE-1857] added automated e2e test upload folder with excluded file

* changed the script for cancel an uploading folder, added -b condition for the running tests for the uploadFolder method
2020-03-09 19:18:41 +00:00
Alexandra Abrudan
24c728a8f5
[AAE-1880] e2e document-list selection mode (#5518)
* [AAE-1880] e2e document-list selection mode, open file/folder

* resolved comments: backtick, refactoring names, using dropdownPage, removing comments, wrapping the API

* added a new try-catch for beforeAll, fixed the error message

* changed the name of a method from clickDropdownWithOption to selectDropdownOption

* changed the method name from clickDropdown... to selectDropdownOption

* added the variable type for some methods, delete the let list and refactor accordingly
2020-03-03 18:50:36 +00:00
Alexandra Abrudan
133140d69b
[AAE-1926] automated e2e tests - interacting with an attached file in an active & completed form (#5528) 2020-03-02 14:52:41 +00:00
Eugenio Romano
7a2af38699
[AAE-1884] e2e shared file and refactor custom sources (#5506)
* fix lint
e2e shared file and refactor custom sources
additional tests for search chip list (#5523)

* modify wait startegy

* fix metadata problem

* improve method retry

* login before to execute call

* login before to execute call
2020-03-02 10:28:38 +00:00
Alexandra Abrudan
e5efe74e5e
[AAE-1797] added e2e automated tests (#5509)
* added e2e automation - [C260064] Should download only the last selection when changing pages in Single mode

* [AAE-1797] added e2e automated test- start a process within ACS

* refactoring with dropdownPage

* spellcheck refactoring
2020-02-28 15:06:24 +00:00
Eugenio Romano
a79313c773
fix cancel (#5520) 2020-02-27 21:13:36 +00:00
davidcanonieto
159f0f94f3
[AAE-1881] Add E2E tests for document list actions (#5514)
* [AAE-1881] Add E2E tests for document list actions

* Improve code

* Fixing my stupidity
2020-02-26 17:12:36 +00:00
Eugenio Romano
e74e1e4ade
Fix cancel E2E (#5501)
* fix

* fix upload and remove unused fikes

* fix upload and remove unused fikes

* clean more

* fix cancel test

* unify names

* fix size

* fix cancel

* different timeout
2020-02-26 15:33:45 +00:00
Vito
1e67f50346
AAE-1938 - added first stack of visibility tests for form (#5489)
* AAE-1938 - added first stack of visibility tests for form

* AAE-1938 - fixed unit test after form service changes

* AAE-1938 - rebased with last development

* AAE-1938 - fixed failing e2e

* AAE-1938 - fixed mock definition to match updated service behaviour

* Fixed failing e2e

* AAE-1938 - try to fix cancel uploads
2020-02-26 14:46:01 +00:00
siva kumar
5fb7879900
[AAE-2021] Automate About component (#5499)
* * Added unit tests to the about-github-link component.
* Removed unused css

* * Added unit tests to the about module and prodcut-version components

* * Automated about page

* * Fixed comments

* * FIxed failing unit tests on attach-file-widget component.

* * After rebase
2020-02-26 12:35:50 +00:00
davidcanonieto
2cf36c2862
[AAE-1842] Automate C277196 Version manager permissions (#5510) 2020-02-25 14:16:10 +00:00
Eugenio Romano
2d0b571875
remove not needed spaces (#5495)
* remove not usefull spaces

* increase timeout

* increase timeout

* fix
2020-02-23 17:00:16 +00:00
Eugenio Romano
1847768b56
[AAE-1848] fix kebab case files and add tlsint rule (#5481)
* fix kebab case files and add tlsint rule

* headless

* m 2 in e2e

* download file in headless chrome

* fix budget

* fix import

* fix import
2020-02-20 21:08:42 +00:00
Vito
498bc6032a
ADF-5074 - reenabled test on upload (#5470) 2020-02-12 13:49:09 +00:00