Skip to content

Commit 87d8f35

Browse files
Merge branch 'tests-configs' into tests
2 parents 0e8a93a + c1aa23c commit 87d8f35

File tree

32 files changed

+194
-165
lines changed

32 files changed

+194
-165
lines changed

.github/workflows/cypress.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
with:
2626
name: build
2727
if-no-files-found: error
28-
path: build
28+
path: ./dist
2929

3030
cypress-run:
3131
runs-on: ubuntu-22.04
@@ -43,13 +43,14 @@ jobs:
4343
uses: actions/download-artifact@v4
4444
with:
4545
name: build
46-
path: build
46+
path: ./dist
4747

4848
- name: Install dependencies
4949
run: pnpm install
5050

5151
- name: Cypress run
5252
uses: cypress-io/github-action@v6
5353
with:
54-
start: pnpm start
54+
start: pnpm cy:run
55+
component: true
5556
browser: chrome

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env sh
22

3-
npx lint-staged && npm run test:build
3+
# npx lint-staged && npm run test:build
44
npx lint-staged

.husky/prepare-commit-msg

Lines changed: 0 additions & 3 deletions
This file was deleted.

cypress.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { defineConfig } from 'cypress';
2-
import customViteConfig from './vite.cypress.config.ts';
2+
import customViteConfig from './vite.cypress.config';
33

44
export default defineConfig({
55
e2e: {

cypress/support/component.ts

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,20 @@ import { h } from "vue";
55
import { mount } from 'cypress/vue';
66
import VStepperForm from '../../src/plugin/VStepperForm.vue';
77
import * as DATA from '../templates/testData';
8-
import { Component } from 'vue';
8+
import type { Component } from 'vue';
99

1010

11-
12-
declare global {
13-
namespace Cypress {
14-
interface Chainable {
15-
baseIconClass(icon: string): string;
16-
getBaseStepperElements(): Chainable;
17-
getDataCy(value: string): Chainable<JQuery<HTMLElement>>;
18-
mount: typeof mount;
19-
mountComponent(options: any): Chainable;
20-
}
21-
}
22-
}
11+
// declare global {
12+
// namespace Cypress {
13+
// interface Chainable {
14+
// baseIconClass(icon: string): string;
15+
// getBaseStepperElements(): Chainable;
16+
// getDataCy(value: string): Chainable<JQuery<HTMLElement>>;
17+
// mount: typeof mount;
18+
// mountComponent(options: any): Chainable;
19+
// }
20+
// }
21+
// }
2322

2423
Cypress.Commands.add('mount', (component: Component, options: any = {}) => {
2524
// Ensure global settings are defined
@@ -87,7 +86,7 @@ Cypress.Commands.add('mountComponent', (options: MountComponentOptions = {}) =>
8786
const localModelValue = { ...answers, ...modelValue };
8887

8988
return cy.then(() => {
90-
cy.mount(VStepperForm, {
89+
cy.mount(VStepperForm as any, {
9190
props: {
9291
modelValue: localModelValue,
9392
pages: [{ fields: [{ ...fieldDefault, ...field, }], }],

dist/plugin/components/fields/CommonField/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import { Field, GlobalChips, GlobalClosableChips, GlobalCloseText, GlobalMultiple, GlobalVariant, SharedProps } from '../../../types';
12
import { Component } from 'vue';
23
import { default as CommonField } from './CommonField.vue';
3-
import { Field, GlobalChips, GlobalClosableChips, GlobalCloseText, GlobalMultiple, GlobalVariant, SharedProps } from '../../../types';
44
interface InternalField extends Omit<Field, 'inline' | 'inlineSpacing' | 'labelPositionLeft'> {
55
chips?: GlobalChips;
66
closableChips?: GlobalClosableChips;

dist/plugin/components/fields/VSFButtonField/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { default as VSFButtonField } from './VSFButtonField.vue';
21
import { Field, GlobalDensity, SharedProps } from '../../../types';
32
import { VBtn } from 'vuetify/components';
3+
import { default as VSFButtonField } from './VSFButtonField.vue';
44
export interface Option {
55
appendIcon?: VBtn['appendIcon'];
66
class?: string;

dist/plugin/components/fields/VSFCheckbox/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { default as VSFCheckbox } from './VSFCheckbox.vue';
21
import { Field, SharedProps } from '../../../types';
32
import { VCheckbox } from 'vuetify/components';
3+
import { default as VSFCheckbox } from './VSFCheckbox.vue';
44
interface InternalField extends Field {
55
color?: VCheckbox['color'];
66
density?: VCheckbox['density'];

dist/plugin/components/fields/VSFCustom/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { default as VSFCustom } from './VSFCustom.vue';
21
import { Field, SharedProps } from '../../../types';
2+
import { default as VSFCustom } from './VSFCustom.vue';
33
interface InternalField extends Omit<Field, 'inline' | 'inlineSpacing' | 'labelPositionLeft'> {
44
}
55
export interface VSFCustomProps extends SharedProps {

dist/plugin/components/fields/VSFRadio/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { default as VSFRadio } from './VSFRadio.vue';
21
import { Field, SharedProps } from '../../../types';
32
import { VRadio, VRadioGroup } from 'vuetify/components';
3+
import { default as VSFRadio } from './VSFRadio.vue';
44
export interface RadioGroupProps {
55
appendIcon?: VRadioGroup['appendIcon'];
66
direction?: VRadioGroup['direction'];

0 commit comments

Comments
 (0)