Browse Source

fix: preparation of db pre-test

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/2503/head
Raju Udava 3 years ago
parent
commit
fd9538d225
  1. 3
      .github/workflows/ci-cd.yml
  2. 2
      scripts/cypress/integration/common/9a_QuickTest.js

3
.github/workflows/ci-cd.yml

@ -577,6 +577,7 @@ jobs:
uses: cypress-io/github-action@v2 uses: cypress-io/github-action@v2
with: with:
start: | start: |
cp ./scripts/cypress/fixtures/quickTest/noco_0_91_7.db ./packages/nocodb/noco.db
npm run start:api:cache npm run start:api:cache
npm run start:web npm run start:web
docker-compose -f ./scripts/docker-compose-cypress.yml up -d docker-compose -f ./scripts/docker-compose-cypress.yml up -d
@ -621,9 +622,9 @@ jobs:
uses: cypress-io/github-action@v2 uses: cypress-io/github-action@v2
with: with:
start: | start: |
docker-compose -f ./scripts/cypress/docker-compose-pg-cy-quick.yml up -d
npm run start:api:cache:pg npm run start:api:cache:pg
npm run start:web npm run start:web
docker-compose -f ./scripts/cypress/docker-compose-pg-cy-quick.yml up -d
spec: "./scripts/cypress/integration/common/9a_QuickTest.js" spec: "./scripts/cypress/integration/common/9a_QuickTest.js"
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/runtime.js" wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/runtime.js"
wait-on-timeout: 1200 wait-on-timeout: 1200

2
scripts/cypress/integration/common/9a_QuickTest.js

@ -66,7 +66,7 @@ export const genTest = (apiType, dbType) => {
if (!isTestSuiteActive(apiType, dbType)) return; if (!isTestSuiteActive(apiType, dbType)) return;
describe(`Webhook`, () => { describe(`Webhook`, () => {
before(() => { before(() => {
cy.task("copyFile") // cy.task("copyFile")
loginPage.signIn(roles.owner.credentials); loginPage.signIn(roles.owner.credentials);
projectsPage.openProject("sample"); projectsPage.openProject("sample");
}); });

Loading…
Cancel
Save