Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cypress as e2e tests framework #12210

Merged
merged 119 commits into from Aug 24, 2020
Merged

Add cypress as e2e tests framework #12210

merged 119 commits into from Aug 24, 2020

Commits on Aug 21, 2020

  1. feat: add cypress initial commit

    sendilkumarn authored and avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    25bfbaa View commit details
    Browse the repository at this point in the history
  2. Move to single Cypress folder

    Co-authored-by: Adil Abed <aelabedelalaoui@acm.org>
    2 people authored and avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    9d89606 View commit details
    Browse the repository at this point in the history
  3. Migrate to Typescript

    Co-authored-by: Adil Abed <aelabedelalaoui@acm.org>
    2 people authored and avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    363666e View commit details
    Browse the repository at this point in the history
  4. [Account] Login page (with Angular)

    Co-authored-by: Adil Abed <aelabedelalaoui@acm.org>
    2 people authored and avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    571d4bb View commit details
    Browse the repository at this point in the history
  5. [Account] Login page (with React)

    Co-authored-by: Adil Abed <aelabedelalaoui@acm.org>
    2 people authored and avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    f4fdaf5 View commit details
    Browse the repository at this point in the history
  6. [Account] Register page (with Angular)

    Co-authored-by: Adil Abed <aelabedelalaoui@acm.org>
    2 people authored and avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    8802815 View commit details
    Browse the repository at this point in the history
  7. [Account] Register page (with React)

    Co-authored-by: Adil Abed <aelabedelalaoui@acm.org>
    2 people authored and avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    2218f81 View commit details
    Browse the repository at this point in the history
  8. [Account] Administration pages (with Angular)

    Co-authored-by: Adil Abed <aelabedelalaoui@acm.org>
    2 people authored and avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    948a3f0 View commit details
    Browse the repository at this point in the history
  9. [Account] Administration pages (with React)

    Co-authored-by: Adil Abed <aelabedelalaoui@acm.org>
    2 people authored and avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    258c6be View commit details
    Browse the repository at this point in the history
  10. [Account] Settings page (with Angular)

    Co-authored-by: Adil Abed <aelabedelalaoui@acm.org>
    2 people authored and avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    babe237 View commit details
    Browse the repository at this point in the history
  11. [Account] Settings page (with React)

    - remove data-cy for alert in angular because react use react toastify
    - email validation are not same in react and angular
    
    Co-authored-by: Adil Abed <aelabedelalaoui@acm.org>
    2 people authored and avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    939582d View commit details
    Browse the repository at this point in the history
  12. [Password] password page (with Angular)

    Co-authored-by: Adil Abed <aelabedelalaoui@acm.org>
    2 people authored and avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    8b346fd View commit details
    Browse the repository at this point in the history
  13. [Password] password page (with React)

    Co-authored-by: Adil Abed <aelabedelalaoui@acm.org>
    2 people authored and avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    c114569 View commit details
    Browse the repository at this point in the history
  14. [Account] Reset initiate/finish page

    (with Angular)
    
    Co-authored-by: Adil Abed <aelabedelalaoui@acm.org>
    2 people authored and avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    fff72ef View commit details
    Browse the repository at this point in the history
  15. [Account] Reset initiate/finish page

    (with React)
    
    Co-authored-by: Adil Abed <aelabedelalaoui@acm.org>
    2 people authored and avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    26bf849 View commit details
    Browse the repository at this point in the history
  16. [Account] Reset initiate/finish page

    add some consistence to data-cy attributes
    nassimerrahoui authored and avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    46c9755 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    cf2a279 View commit details
    Browse the repository at this point in the history
  18. [OAuth2] add oauth2 commands

    Co-authored-by: Adil Abed <aelabedelalaoui@acm.org>
    2 people authored and avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    8a6a03b View commit details
    Browse the repository at this point in the history
  19. [OAuth2] fix generation conditions

    add condition to generate keycloak-oauth.ts file + remove audit import
    
    Co-authored-by: Adil Abed <aelabedelalaoui@acm.org>
    2 people authored and avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    b486957 View commit details
    Browse the repository at this point in the history
  20. [OAuth2] fix tests

    nassimerrahoui authored and avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    de529e3 View commit details
    Browse the repository at this point in the history
  21. Add new Cypress script

    avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    a3f765e View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    f448123 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    9ecc4a2 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    46c049e View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    ec437c2 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    c25dec4 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    8d9080f View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    17be484 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    2ac135f View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    9d1c193 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    579172f View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    572c33e View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    703abac View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    4b5d1e4 View commit details
    Browse the repository at this point in the history
  35. add default viewport

    some tests fail because Cypress does not display all the screen
    nassimerrahoui authored and avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    34cdcb3 View commit details
    Browse the repository at this point in the history
  36. [Vue] add cypress for vue

    Co-authored-by: Adil Abed <aelabedelalaoui@acm.org>
    2 people authored and avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    7daffb5 View commit details
    Browse the repository at this point in the history
  37. Improve e2e and app subGen

    avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    04d9625 View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    4b0543d View commit details
    Browse the repository at this point in the history
  39. Improve template

    avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    973e9ab View commit details
    Browse the repository at this point in the history
  40. Use Cypress in Vue CI

    avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    1f5515b View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    05cd934 View commit details
    Browse the repository at this point in the history
  42. Fix tsconfig.json.ejs

    avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    e568458 View commit details
    Browse the repository at this point in the history
  43. Improve package.json scripts

    avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    617a6e3 View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    70559d0 View commit details
    Browse the repository at this point in the history
  45. Fix method order

    avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    95bbaeb View commit details
    Browse the repository at this point in the history
  46. Configuration menu
    Copy the full SHA
    09246d1 View commit details
    Browse the repository at this point in the history
  47. Configuration menu
    Copy the full SHA
    52b46ea View commit details
    Browse the repository at this point in the history
  48. fix click in Cypress

    + add chrome browser by default
    nassimerrahoui authored and avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    0bdf0cb View commit details
    Browse the repository at this point in the history
  49. reword common file

    avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    e67fa0a View commit details
    Browse the repository at this point in the history
  50. fix removing "allowJs"

    avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    e8d641b View commit details
    Browse the repository at this point in the history
  51. Configuration menu
    Copy the full SHA
    8426114 View commit details
    Browse the repository at this point in the history
  52. Fix npm tests

    avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    9e93deb View commit details
    Browse the repository at this point in the history
  53. Configuration menu
    Copy the full SHA
    cf09497 View commit details
    Browse the repository at this point in the history
  54. Configuration menu
    Copy the full SHA
    3c2e787 View commit details
    Browse the repository at this point in the history
  55. Fix typo

    avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    84ced36 View commit details
    Browse the repository at this point in the history
  56. Upgrade Cypress to 4.12.1

    avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    a9ada84 View commit details
    Browse the repository at this point in the history
  57. Fix data-cy values

    avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    1c4ea0a View commit details
    Browse the repository at this point in the history
  58. Configuration menu
    Copy the full SHA
    6db981a View commit details
    Browse the repository at this point in the history
  59. rename Cypress test files

    avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    bb4b034 View commit details
    Browse the repository at this point in the history
  60. Fix indentation

    avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    f4d0b89 View commit details
    Browse the repository at this point in the history
  61. Remove unused code

    avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    7656294 View commit details
    Browse the repository at this point in the history
  62. Configuration menu
    Copy the full SHA
    a54352b View commit details
    Browse the repository at this point in the history
  63. rename kc to keycloack

    avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    c0478d0 View commit details
    Browse the repository at this point in the history
  64. camel case convention for data-cy

    remove after/afterEach
    
    Co-authored-by: Adil Abed <aelabedelalaoui@acm.org>
    2 people authored and avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    777535f View commit details
    Browse the repository at this point in the history
  65. Configuration menu
    Copy the full SHA
    0bf02a7 View commit details
    Browse the repository at this point in the history
  66. Improve Cypress TS files

    Remove unused import and fix typo.
    avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    b6599a6 View commit details
    Browse the repository at this point in the history
  67. Add consistency for vue component url

    Co-authored-by: Adil Abed <aelabedelalaoui@acm.org>
    2 people authored and avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    d224c37 View commit details
    Browse the repository at this point in the history
  68. Rework register tests

    avoid to have linked tests.
    avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    6b13d73 View commit details
    Browse the repository at this point in the history
  69. Rework login page tests

    avoid to have linked tests.
    avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    882b659 View commit details
    Browse the repository at this point in the history
  70. Configuration menu
    Copy the full SHA
    f708af6 View commit details
    Browse the repository at this point in the history
  71. Fix settings test

    nassimerrahoui authored and avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    a1f577a View commit details
    Browse the repository at this point in the history
  72. Configuration menu
    Copy the full SHA
    e1f292d View commit details
    Browse the repository at this point in the history
  73. Preserve cookies for session authentication's type

    Co-authored-by: Adil Abed <aelabedelalaoui@acm.org>
    2 people authored and avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    299fc18 View commit details
    Browse the repository at this point in the history
  74. Expect 401 when login fail

    in session authentication's type
    
    Co-authored-by: Adil Abed <aelabedelalaoui@acm.org>
    2 people authored and avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    ebf0941 View commit details
    Browse the repository at this point in the history
  75. Fix test login

    Co-authored-by: Adil Abed <aelabedelalaoui@acm.org>
    2 people authored and avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    9cf6b0f View commit details
    Browse the repository at this point in the history
  76. Configuration menu
    Copy the full SHA
    bab59de View commit details
    Browse the repository at this point in the history
  77. fix indentation

    avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    3c71809 View commit details
    Browse the repository at this point in the history
  78. Configuration menu
    Copy the full SHA
    e990b0d View commit details
    Browse the repository at this point in the history
  79. Configuration menu
    Copy the full SHA
    6c61a17 View commit details
    Browse the repository at this point in the history
  80. Configuration menu
    Copy the full SHA
    d44cb68 View commit details
    Browse the repository at this point in the history
  81. Add npm test for cypress files

    Co-authored-by: Adil Abed <aelabedelalaoui@acm.org>
    2 people authored and avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    6258557 View commit details
    Browse the repository at this point in the history
  82. Configuration menu
    Copy the full SHA
    2dcf061 View commit details
    Browse the repository at this point in the history
  83. Configuration menu
    Copy the full SHA
    83cda0f View commit details
    Browse the repository at this point in the history
  84. Add clearCookies to clear state correctly

    - clear cookies to reset state before all tests
    - preserve cookies in administration before each tests for session mode
    
    Co-authored-by: Adil Abed <aelabedelalaoui@acm.org>
    2 people authored and avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    16d043b View commit details
    Browse the repository at this point in the history
  85. Fix sub generator name in index.js

    nassimerrahoui authored and avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    dc05abf View commit details
    Browse the repository at this point in the history
  86. Fix indentation

    avdev4j committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    a147f0b View commit details
    Browse the repository at this point in the history
  87. Refactor cypress tests.

    mshima authored and nassimerrahoui committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    a668a6e View commit details
    Browse the repository at this point in the history
  88. Lint fix

    mshima authored and nassimerrahoui committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    99d943c View commit details
    Browse the repository at this point in the history
  89. Configuration menu
    Copy the full SHA
    dd7511a View commit details
    Browse the repository at this point in the history
  90. Configuration menu
    Copy the full SHA
    0ad6e92 View commit details
    Browse the repository at this point in the history
  91. fix indent

    nassimerrahoui committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    983c72f View commit details
    Browse the repository at this point in the history
  92. Add tests for entity-client part

    Co-authored-by: Adil Abed <aelabedelalaoui@acm.org>
    nassimerrahoui and Adil Abed committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    001881e View commit details
    Browse the repository at this point in the history
  93. Fix load details and edit entity instance

    Click on first element to test details and edit entity instance
    
    Co-authored-by: Adil Abed <aelabedelalaoui@acm.org>
    nassimerrahoui and Adil Abed committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    c56f93a View commit details
    Browse the repository at this point in the history
  94. Remove data-cy entityTableColumnId

    Not used in tests
    
    Co-authored-by: Adil Abed <aelabedelalaoui@acm.org>
    nassimerrahoui and Adil Abed committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    21ed3bc View commit details
    Browse the repository at this point in the history
  95. Add readOnly condition to entity tests

    No tests for create and edit when entity is readOnly
    
    Co-authored-by: Adil Abed <aelabedelalaoui@acm.org>
    nassimerrahoui and Adil Abed committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    34503c5 View commit details
    Browse the repository at this point in the history
  96. Add beforeEach step for oauth2 case

    Co-authored-by: Adil Abed <aelabedelalaoui@acm.org>
    nassimerrahoui and Adil Abed committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    2effa24 View commit details
    Browse the repository at this point in the history
  97. Configuration menu
    Copy the full SHA
    47cf459 View commit details
    Browse the repository at this point in the history
  98. Add insertion and deletion entity tests

    - add insertion and deletion tests
    - move entity.ts and index.ts into cypress generator
    - move entity-client cypress files in entity-client/templates/common
    - fix register test in account tests
    nassimerrahoui committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    d1e93e3 View commit details
    Browse the repository at this point in the history
  99. Configuration menu
    Copy the full SHA
    1f7124c View commit details
    Browse the repository at this point in the history
  100. Fix entity tests

    - fix setFieldSelectToLastOfEntity
    - fix duration format
    - remove unsed import when readOnly
    
    Co-authored-by: Adil Abed <aelabedelalaoui@acm.org>
    nassimerrahoui and Adil Abed committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    bf98467 View commit details
    Browse the repository at this point in the history
  101. Fix react deletion tests

    - wait delete dialog request
    
    Co-authored-by: Adil Abed <aelabedelalaoui@acm.org>
    nassimerrahoui and Adil Abed committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    9bad293 View commit details
    Browse the repository at this point in the history
  102. Remove functions for some fields + use faker

    Co-authored-by: Adil Abed <aelabedelalaoui@acm.org>
    nassimerrahoui and Adil Abed committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    08cedb0 View commit details
    Browse the repository at this point in the history
  103. Fix generateFakeData

    - fix field.js
    - add faker to all clients package.json if we use cypress
    nassimerrahoui committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    2d86fdb View commit details
    Browse the repository at this point in the history
  104. Configuration menu
    Copy the full SHA
    534966f View commit details
    Browse the repository at this point in the history
  105. Configuration menu
    Copy the full SHA
    03765a2 View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2020

  1. Configuration menu
    Copy the full SHA
    97c4673 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ec12d58 View commit details
    Browse the repository at this point in the history
  3. Fix cypress test.

    mshima committed Aug 22, 2020
    Configuration menu
    Copy the full SHA
    6d0df1b View commit details
    Browse the repository at this point in the history
  4. Change screenshots folder

    mshima committed Aug 22, 2020
    Configuration menu
    Copy the full SHA
    11b4a75 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8ac5bd3 View commit details
    Browse the repository at this point in the history
  6. Fix fake user

    mshima committed Aug 22, 2020
    Configuration menu
    Copy the full SHA
    dbb5c9d View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    48ad291 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    7a97743 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    dc5f5b2 View commit details
    Browse the repository at this point in the history
  10. Use enum sample

    mshima committed Aug 22, 2020
    Configuration menu
    Copy the full SHA
    e21f552 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    9a5ac5a View commit details
    Browse the repository at this point in the history

Commits on Aug 23, 2020

  1. Merge pull request #1 from mshima/skip_ci_cypress

    Fixes to cypress entity generator.
    nassimerrahoui committed Aug 23, 2020
    Configuration menu
    Copy the full SHA
    bd588e6 View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2020

  1. Merge pull request #55 from nassimerrahoui/add-cypress

    Add tests for entity-client part
    avdev4j committed Aug 24, 2020
    Configuration menu
    Copy the full SHA
    ce15c71 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    776da07 View commit details
    Browse the repository at this point in the history