Browse Source

[chore] cypress folder re-org

Signed-off-by: Raju Udava <sivadstala@gmail.com>
pull/714/head
Raju Udava 3 years ago
parent
commit
0928bb1ef1
  1. 124
      .github/workflows/ci-cd.yml
  2. 0
      scripts/cypress.json
  3. 0
      scripts/cypress/fixtures/example.json
  4. 0
      scripts/cypress/integration/common/00_pre_configurations.js
  5. 0
      scripts/cypress/integration/common/1a_table_operations.js
  6. 0
      scripts/cypress/integration/common/1b_table_column_operations.js
  7. 0
      scripts/cypress/integration/common/1c_table_row_operations.js
  8. 0
      scripts/cypress/integration/common/2a_table_with_belongs_to_colulmn.js
  9. 0
      scripts/cypress/integration/common/2b_table_with_m2m_column.js
  10. 0
      scripts/cypress/integration/common/3a_filter_sort_fields_operations.js
  11. 0
      scripts/cypress/integration/common/3b_formula_column.js
  12. 0
      scripts/cypress/integration/common/3c_lookup_column.js
  13. 0
      scripts/cypress/integration/common/3d_rollup_column.js
  14. 0
      scripts/cypress/integration/common/4a_table_view_grid_gallery_form.js
  15. 0
      scripts/cypress/integration/common/4b_table_view_share.js
  16. 0
      scripts/cypress/integration/common/4c_form_view_detailed.js
  17. 0
      scripts/cypress/integration/common/4d_table_view_grid_locked.js
  18. 0
      scripts/cypress/integration/common/4e_form_view_share.js
  19. 0
      scripts/cypress/integration/common/4f_grid_view_share.js
  20. 0
      scripts/cypress/integration/common/5a_user_role.js
  21. 0
      scripts/cypress/integration/common/5b_preview_role.js
  22. 0
      scripts/cypress/integration/common/6a_audit.js
  23. 0
      scripts/cypress/integration/common/6c_swagger_api.js
  24. 2
      scripts/cypress/integration/common/6d_language_validation.js
  25. 0
      scripts/cypress/integration/common/6e_project_operations.js
  26. 0
      scripts/cypress/integration/test/explicitLogin.js
  27. 0
      scripts/cypress/integration/test/masterSuiteGql.js
  28. 0
      scripts/cypress/integration/test/masterSuiteRest.js
  29. 0
      scripts/cypress/plugins/index.js
  30. 0
      scripts/cypress/support/commands.js
  31. 0
      scripts/cypress/support/index.js
  32. 2
      scripts/cypress/support/page_objects/mainPage.js
  33. 0
      scripts/cypress/support/page_objects/navigation.js
  34. 0
      scripts/cypress/support/page_objects/projectConstants.js

124
.github/workflows/ci-cd.yml

@ -4,22 +4,22 @@
name: "CI/CD"
on:
push:
branches: [ master, cypress ]
branches: [master, cypress]
pull_request:
branches: [ master ]
branches: [master]
jobs:
cypress-rest--run:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Check for update
run: |
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Check for update
run: |
echo "CHANGED=$([[ $(lerna ls --since ${{github.event.before}} | grep nc-gui) = nc-gui ]] && echo 'OK')" >> $GITHUB_ENV
- name: Cache node modules
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
@ -33,28 +33,28 @@ jobs:
${{ runner.os }}-build-
${{ runner.os }}-
- name: Cypress run
if: ${{ env.CHANGED == 'OK' }}
uses: cypress-io/github-action@v2
with:
start: |
npm run start:api
npm run start:web
docker-compose -f ./scripts/docker-compose-cypress.yml up -d
spec: 'cypress/integration/test/masterSuiteRest.js'
wait-on: 'http://localhost:8080, http://localhost:3000/_nuxt/runtime.js'
wait-on-timeout: 1200
- name: Cypress run
if: ${{ env.CHANGED == 'OK' }}
uses: cypress-io/github-action@v2
with:
start: |
npm run start:api
npm run start:web
docker-compose -f ./scripts/docker-compose-cypress.yml up -d
spec: "./scripts/cypress/integration/test/masterSuiteRest.js"
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/runtime.js"
wait-on-timeout: 1200
cypress-graphql-run:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Check for update
run: |
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Check for update
run: |
echo "CHANGED=$([[ $(lerna ls --since ${{github.event.before}} | grep nc-gui) = nc-gui ]] && echo 'OK')" >> $GITHUB_ENV
- name: Cache node modules
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
@ -67,45 +67,45 @@ jobs:
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Cypress run
if: ${{ env.CHANGED == 'OK' }}
uses: cypress-io/github-action@v2
with:
start: |
npm run start:api
npm run start:web
docker-compose -f ./scripts/docker-compose-cypress.yml up -d
spec: 'cypress/integration/test/masterSuiteGql.js'
wait-on: 'http://localhost:8080, http://localhost:3000/_nuxt/runtime.js'
wait-on-timeout: 1200
- name: Cypress run
if: ${{ env.CHANGED == 'OK' }}
uses: cypress-io/github-action@v2
with:
start: |
npm run start:api
npm run start:web
docker-compose -f ./scripts/docker-compose-cypress.yml up -d
spec: "./scripts/cypress/integration/test/masterSuiteGql.js"
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/runtime.js"
wait-on-timeout: 1200
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Check for update
run: |
echo "CHANGED=$([[ $(lerna ls --since ${{github.event.before}} | grep nocodb) = nocodb ]] && echo 'OK')" >> $GITHUB_ENV
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Check for update
run: |
echo "CHANGED=$([[ $(lerna ls --since ${{github.event.before}} | grep nocodb) = nocodb ]] && echo 'OK')" >> $GITHUB_ENV
- name: Test Mysql REST APIs
if: ${{ env.CHANGED == 'OK' }}
run: cd ./packages/nocodb/ && docker-compose run xc-test-mysql
- name: Test Mysql GraphQL APIs
if: ${{ env.CHANGED == 'OK' }}
run: cd ./packages/nocodb/ && docker-compose run xc-test-gql-mysql
- name: Test Mysql REST APIs
if: ${{ env.CHANGED == 'OK' }}
run: cd ./packages/nocodb/ && docker-compose run xc-test-mysql
- name: Test Mysql GraphQL APIs
if: ${{ env.CHANGED == 'OK' }}
run: cd ./packages/nocodb/ && docker-compose run xc-test-gql-mysql
# - name: Test MSSQL REST APIs
# run: cd ./packages/nocodb/ && docker-compose run xc-test-mssql
# - name: Test MSSQL GraphQL APIs
# run: cd ./packages/nocodb/ && docker-compose run xc-test-gql-mssql
#
- name: Test PostgreSQL REST APIs
if: ${{ env.CHANGED == 'OK' }}
run: cd ./packages/nocodb/ && docker-compose run xc-test-pg
- name: Test PostgreSQL GraphQL APIs
if: ${{ env.CHANGED == 'OK' }}
run: cd ./packages/nocodb/ && docker-compose run xc-test-gql-pg
# - name: Test MSSQL REST APIs
# run: cd ./packages/nocodb/ && docker-compose run xc-test-mssql
# - name: Test MSSQL GraphQL APIs
# run: cd ./packages/nocodb/ && docker-compose run xc-test-gql-mssql
#
- name: Test PostgreSQL REST APIs
if: ${{ env.CHANGED == 'OK' }}
run: cd ./packages/nocodb/ && docker-compose run xc-test-pg
- name: Test PostgreSQL GraphQL APIs
if: ${{ env.CHANGED == 'OK' }}
run: cd ./packages/nocodb/ && docker-compose run xc-test-gql-pg
#
# - name: Test SQLite3 REST APIs
# run: cd ./packages/nocodb/ && docker-compose run xc-test-sqlite

0
cypress.json → scripts/cypress.json

0
cypress/fixtures/example.json → scripts/cypress/fixtures/example.json

0
cypress/integration/common/00_pre_configurations.js → scripts/cypress/integration/common/00_pre_configurations.js

0
cypress/integration/common/1a_table_operations.js → scripts/cypress/integration/common/1a_table_operations.js

0
cypress/integration/common/1b_table_column_operations.js → scripts/cypress/integration/common/1b_table_column_operations.js

0
cypress/integration/common/1c_table_row_operations.js → scripts/cypress/integration/common/1c_table_row_operations.js

0
cypress/integration/common/2a_table_with_belongs_to_colulmn.js → scripts/cypress/integration/common/2a_table_with_belongs_to_colulmn.js

0
cypress/integration/common/2b_table_with_m2m_column.js → scripts/cypress/integration/common/2b_table_with_m2m_column.js

0
cypress/integration/common/3a_filter_sort_fields_operations.js → scripts/cypress/integration/common/3a_filter_sort_fields_operations.js

0
cypress/integration/common/3b_formula_column.js → scripts/cypress/integration/common/3b_formula_column.js

0
cypress/integration/common/3c_lookup_column.js → scripts/cypress/integration/common/3c_lookup_column.js

0
cypress/integration/common/3d_rollup_column.js → scripts/cypress/integration/common/3d_rollup_column.js

0
cypress/integration/common/4a_table_view_grid_gallery_form.js → scripts/cypress/integration/common/4a_table_view_grid_gallery_form.js

0
cypress/integration/common/4b_table_view_share.js → scripts/cypress/integration/common/4b_table_view_share.js

0
cypress/integration/common/4c_form_view_detailed.js → scripts/cypress/integration/common/4c_form_view_detailed.js

0
cypress/integration/common/4d_table_view_grid_locked.js → scripts/cypress/integration/common/4d_table_view_grid_locked.js

0
cypress/integration/common/4e_form_view_share.js → scripts/cypress/integration/common/4e_form_view_share.js

0
cypress/integration/common/4f_grid_view_share.js → scripts/cypress/integration/common/4f_grid_view_share.js

0
cypress/integration/common/5a_user_role.js → scripts/cypress/integration/common/5a_user_role.js

0
cypress/integration/common/5b_preview_role.js → scripts/cypress/integration/common/5b_preview_role.js

0
cypress/integration/common/6a_audit.js → scripts/cypress/integration/common/6a_audit.js

0
cypress/integration/common/6c_swagger_api.js → scripts/cypress/integration/common/6c_swagger_api.js

2
cypress/integration/common/6d_language_validation.js → scripts/cypress/integration/common/6d_language_validation.js

@ -15,7 +15,7 @@ export const genTest = (type, xcdb) => {
const langVerification = (idx, lang) => {
// pick json from the file specified
it(`Language verification: ${lang} > Projects page`, () => {
let json = require(`../../../packages/nc-gui/lang/${lang}`);
let json = require(`../../../../packages/nc-gui/lang/${lang}`);
// toggle menu as per index
cy.get('.nc-menu-translate').click()

0
cypress/integration/common/6e_project_operations.js → scripts/cypress/integration/common/6e_project_operations.js

0
cypress/integration/test/explicitLogin.js → scripts/cypress/integration/test/explicitLogin.js

0
cypress/integration/test/masterSuiteGql.js → scripts/cypress/integration/test/masterSuiteGql.js

0
cypress/integration/test/masterSuiteRest.js → scripts/cypress/integration/test/masterSuiteRest.js

0
cypress/plugins/index.js → scripts/cypress/plugins/index.js

0
cypress/support/commands.js → scripts/cypress/support/commands.js

0
cypress/support/index.js → scripts/cypress/support/index.js

2
cypress/support/page_objects/mainPage.js → scripts/cypress/support/page_objects/mainPage.js

@ -61,7 +61,7 @@ export class _mainPage {
//
cy.getActiveMenu().contains(roleType).click()
cy.getActiveMenu().contains('editor').click()
cy.get('.mdi-menu-down').click()
cy.get('.mdi-menu-down').last().click()
cy.get('.nc-invite-or-save-btn').click()
// get URL, invoke

0
cypress/support/page_objects/navigation.js → scripts/cypress/support/page_objects/navigation.js

0
cypress/support/page_objects/projectConstants.js → scripts/cypress/support/page_objects/projectConstants.js

Loading…
Cancel
Save