Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
moisbo committed Nov 29, 2023
1 parent 2345fc2 commit c128407
Show file tree
Hide file tree
Showing 8 changed files with 74 additions and 40 deletions.
1 change: 1 addition & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
- name: Check if a new tag is created
run: "[[ '${{ steps.create_tag.outputs.tagname }}' ]]"
- run: npm ci
- run: npm test
- run: npm run build
- name: Deploy app to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
Expand Down
2 changes: 1 addition & 1 deletion cypress/support/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import './commands';
import { mount } from 'cypress/vue';

import { createMemoryHistory, createRouter } from 'vue-router'
import router from '../../src/router';
import router from '../../src/app/router';

Cypress.Commands.add('mount', (component, options = {}) => {
// Setup options object
Expand Down
72 changes: 54 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/app/views/TestCrate.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script setup>
import { reactive, computed, ref } from 'vue';
import CrateEditor from '../components/CrateEditor.vue';
import testData2 from '../../test-data/cooee/ro-crate-metadata.json' ;
import testData from '../../test-data/sydney/ro-crate-metadata.json' ;
import CrateEditor from '../../lib/components/CrateEditor.vue';
import testData2 from '../../../test-data/cooee/ro-crate-metadata.json' ;
import testData from '../../../test-data/sydney/ro-crate-metadata.json' ;
import computationalToolProfile from 'ro-crate-editor-profiles/profiles/software-profile.json';
import language_collection from "ro-crate-editor-profiles/profiles/language-data-commons-collection-profile.json";
Expand Down
8 changes: 4 additions & 4 deletions src/app/views/TestEntity.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<script setup>
import { reactive, computed, shallowReactive, onMounted, provide } from 'vue';
import Entity from '../components/Entity.vue';
import Entity from '../../lib/components/Entity.vue';
//import testData from '../../test-data/cooee/ro-crate-metadata.json' ;
import testData from '../../test-data/sydney/ro-crate-metadata.json';
import { $state } from '../components/keys';
import testData from '../../../test-data/sydney/ro-crate-metadata.json';
import { $state } from '../../lib/components/keys';
import { EditorState } from '../components/EditorState';
import { EditorState } from '../../lib/components/EditorState';
import language_collection from 'ro-crate-editor-profiles/profiles/language-data-commons-collection-profile.json';
const data = reactive({
entity: null,
Expand Down
10 changes: 5 additions & 5 deletions src/app/views/TestInputs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
import { reactive, computed } from 'vue';
import { Delete } from '@element-plus/icons-vue';
import InputDateTime from '../components/InputDateTime.vue';
import InputGeo from '../components/InputGeo.vue';
import InputText from '../components/InputText.vue';
import InputSelect from '../components/InputSelect.vue';
import FilteredPaged from '../components/FilteredPaged.vue';
import InputDateTime from '../../lib/components/InputDateTime.vue';
import InputGeo from '../../lib/components/InputGeo.vue';
import InputText from '../../lib/components/InputText.vue';
import InputSelect from '../../lib/components/InputSelect.vue';
import FilteredPaged from '../../lib/components/FilteredPaged.vue';
const testValues = [
{
Expand Down
Loading

0 comments on commit c128407

Please sign in to comment.