Browse Source

feat(testing): Enabled all the CI test, enabled all the playwright test and minor cleanup

pull/3848/head
Muhammed Mustafa 2 years ago
parent
commit
72b596ac95
  1. 2828
      .github/workflows/ci-cd.yml
  2. 3
      scripts/playwright/playwright.config.ts
  3. 53
      scripts/playwright/scripts/docker-compose-playwright.yml
  4. 2
      scripts/playwright/tests/columnSingleSelect.spec.ts

2828
.github/workflows/ci-cd.yml

File diff suppressed because it is too large Load Diff

3
scripts/playwright/playwright.config.ts

@ -24,8 +24,7 @@ const config: PlaywrightTestConfig = {
/* Run tests in files in parallel */
fullyParallel: true,
/* Fail the build on CI if you accidentally left test.only in the source code. */
// forbidOnly: !!process.env.CI,
forbidOnly: false,
forbidOnly: !!process.env.CI,
/* Retry on CI only */
retries: process.env.CI ? 2 : 0,
/* Opt out of parallel tests on CI. */

53
scripts/playwright/scripts/docker-compose-playwright.yml

@ -12,56 +12,3 @@ services:
MYSQL_ROOT_PASSWORD: password
volumes:
- ../../../packages/nocodb/tests/mysql-sakila-db:/docker-entrypoint-initdb.d
# xc-cypress-nocodb:
# network_mode: host
# image: node:14-alpine
# environment:
# - EE=true
# volumes:
# - ./packages/nocodb:/home/app
# command:
# - /bin/sh
# - -c
# - |
# echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
# # cp -r /home/app1/ /home/app/
# rm /home/app/package-lock.json
# rm /home/app/noco.db
# cd /home/app/ && npm i && EE=true npm run run
# # cd /home/app/ && npm i && EE=true npm run watch:run
# xc-cypress-nc-gui:
# network_mode: host
# image: node:14-alpine
# environment:
# - HOST=0.0.0.0
# - PORT=3000
# - EE=true
# volumes:
# - ./packages/nc-gui:/home/app
# - ./packages/nc-lib-gui:/home/nc-lib-gui
# command:
# - /bin/sh
# - -c
# - |
# echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
# apk --update --no-cache add git
# # cp -r /home/app1/ /home/app/
# rm /home/app/package-lock.json
# cd /home/app/ && npm i && npm run dev
# # cd /home/app/ && npm i && NODE_ENV=development npm run build && npm start

2
scripts/playwright/tests/columnSingleSelect.spec.ts

@ -18,7 +18,7 @@ test.describe('Single select', () => {
await grid.addNewRow({ index: 0, value: 'Row 0' });
});
test.only('Select and clear options and rename options', async () => {
test('Select and clear options and rename options', async () => {
await grid.cell.selectOption.select({ index: 0, columnHeader: 'SingleSelect', option: 'Option 1' });
await grid.cell.selectOption.verify({ index: 0, columnHeader: 'SingleSelect', option: 'Option 1' });

Loading…
Cancel
Save