Bug 38201: Move cypress components under t/cypress

(cherry picked from commit 5cf8a60eb99e37abc365639d05e9da9ca931f7d6)
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2025-09-15 11:44:07 +02:00 committed by Lucas Gass
parent 03c3f916a8
commit 70b7bb0f33
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
6 changed files with 7 additions and 5 deletions

View File

@ -31,7 +31,7 @@ export default defineConfig({
});
},
indexHtmlFile: "t/cypress/support/component-index.html",
specPattern: "t/cypress/component/**/*.*",
specPattern: "t/cypress/component/**/*.ts",
supportFile: "t/cypress/support/component.ts",
},
});

View File

@ -15,6 +15,7 @@ module.exports = [
__dirname,
"koha-tmpl/intranet-tmpl/prog/js/vue"
),
"@cypress": path.resolve(__dirname, "t/cypress"),
},
},
entry: {
@ -44,7 +45,7 @@ module.exports = [
options: {
experimentalInlineMatchResource: true,
},
exclude: [path.resolve(__dirname, "t/cypress/")],
//exclude: [path.resolve(__dirname, "t/cypress/")],
},
{
test: /\.ts$/,

View File

@ -226,7 +226,8 @@ describe("ShowElement", () => {
showElement: {
type: "component",
hidden: () => true,
componentPath: "./Cypress/ShowElementComponentType.vue",
componentPath:
"t/cypress/component/ShowElementComponentType.vue",
componentProps: {
testString: {
type: "string",

View File

@ -1,7 +1,7 @@
<template></template>
<script>
import { useBaseResource } from "../../composables/base-resource.js";
import { useBaseResource } from "@koha-vue/composables/base-resource.js";
export default {
props: {
resourceConfig: Object,

View File

@ -1,4 +1,4 @@
import UseBaseResource from "@koha-vue/components/Cypress/UseBaseResource.vue";
import UseBaseResource from "@cypress/component/UseBaseResource.vue";
const globalConfig = {
global: {