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:
parent
03c3f916a8
commit
70b7bb0f33
|
|
@ -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",
|
||||
},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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$/,
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
import UseBaseResource from "@koha-vue/components/Cypress/UseBaseResource.vue";
|
||||
import UseBaseResource from "@cypress/component/UseBaseResource.vue";
|
||||
|
||||
const globalConfig = {
|
||||
global: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue