Skip to content

Commit adae045

Browse files
Merge pull request #159 from zhuje/ou872-modal-pr
OU-872: Use modal id when using the modal from the dynamic plugin SDK
2 parents b5d5291 + fcb6d0a commit adae045

11 files changed

Lines changed: 375 additions & 352 deletions

File tree

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ build-backend:
4545
start-backend:
4646
go run ./cmd/plugin-backend.go -port='9002' -config-path='./web/dist' -static-path='./web/dist' -plugin-config-path='ct.yaml'
4747

48+
.PHONY: install
49+
install: install-frontend install-backend
50+
4851
.PHONY: build-image
4952
build-image: test-frontend
5053
./scripts/build-image.sh

web/integration-tests/cypress.config.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
const { defineConfig } = require('cypress');
1+
import { defineConfig } from 'cypress';
2+
import plugin from './plugins/index';
23

3-
module.exports = defineConfig({
4+
export default defineConfig({
45
viewportWidth: 1920,
56
viewportHeight: 1080,
67
screenshotsFolder: './screenshots',
@@ -18,7 +19,7 @@ module.exports = defineConfig({
1819
},
1920
e2e: {
2021
setupNodeEvents(on, config) {
21-
return require('./plugins/index.ts')(on, config);
22+
return plugin(on, config);
2223
},
2324
specPattern: 'tests/**/*.cy.{js,jsx,ts,tsx}',
2425
supportFile: false,

web/integration-tests/plugins/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as wp from '@cypress/webpack-preprocessor';
1+
import wp from '@cypress/webpack-preprocessor';
22

33
module.exports = (on, config) => {
44
const options = {

0 commit comments

Comments
 (0)