Skip to content

Commit

Permalink
rename e2e folder and remove component tests from e2e folder
Browse files Browse the repository at this point in the history
  • Loading branch information
murdos committed May 28, 2024
1 parent 820de5c commit fb11bdc
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 127 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"scripts": {
"build": "vue-tsc -p tsconfig.build.json --noEmit && vite build --emptyOutDir && tikui-core build",
"dev": "npm run tikui:serve & npm run webapp:serve",
"e2e": "cypress open --config-file src/test/webapp/cypress/cypress-config.ts",
"e2e:headless": "cypress run --headless --config-file src/test/webapp/cypress/cypress-config.ts",
"e2e": "cypress open --config-file src/test/webapp/e2e/cypress-config.ts",
"e2e:headless": "cypress run --headless --config-file src/test/webapp/e2e/cypress-config.ts",
"format": "prettier . --write",
"glyph:build": "rimraf .fontello-session && fontello-cli install --config src/main/glyph/config.json --font src/main/glyph/font --css src/main/glyph/css",
"glyph:open": "rimraf .fontello-session && fontello-cli open --config src/main/glyph/config.json",
Expand Down
12 changes: 0 additions & 12 deletions src/test/webapp/cypress/cypress-config.ts

This file was deleted.

112 changes: 0 additions & 112 deletions src/test/webapp/cypress/integration/Patch.spec.ts

This file was deleted.

File renamed without changes.
12 changes: 12 additions & 0 deletions src/test/webapp/e2e/cypress-config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { defineConfig } from 'cypress';

export default defineConfig({
e2e: {
baseUrl: 'http://localhost:7471',
specPattern: 'src/test/webapp/e2e/integration/**/*.spec.ts',
fixturesFolder: 'src/test/e2e/cypress/fixtures',
supportFolder: 'src/test/e2e/cypress/support',
supportFile: false,
video: false,
},
});
9 changes: 9 additions & 0 deletions src/test/webapp/e2e/integration/Patch.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { dataSelector } from '../support/selector';

describe('Patch', () => {
it('should display modules', () => {
cy.visit('/patches');

cy.get(dataSelector('modules-list')).should('be.visible');
});
});
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
"src/main/webapp/**/*.vue",
"src/test/webapp/unit/**/*.ts"
],
"exclude": ["./node_modules", "src/test/webapp/cypress/**/*.ts"]
"exclude": ["./node_modules", "src/test/webapp/e2e/**/*.ts"]
}

0 comments on commit fb11bdc

Please sign in to comment.