Skip to content

Commit

Permalink
pkp/pkp-lib#9870 Adjust cypress tests for modal chnages
Browse files Browse the repository at this point in the history
  • Loading branch information
jardakotesovec committed Apr 10, 2024
1 parent e2046c3 commit 40506a6
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 33 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
cypress/tests/**/*
lib/pkp/cypress/**/*
cypress/support/**/*
package.json
6 changes: 3 additions & 3 deletions cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ Cypress.Commands.add('addSubmissionGalleys', (files) => {
files.forEach(file => {
cy.get('a:contains("Add File")').click();
cy.wait(2000); // Avoid occasional failure due to form init taking time
cy.get('div.pkp_modal_panel').then($modalDiv => {
cy.get('[role="dialog"]').then(($modalDiv) => {
cy.wait(3000);
$modalDiv.find('div.header:contains("Add File")');
cy.get('div.pkp_modal_panel input[id^="label-"]').type('PDF', {delay: 0});
cy.get('div.pkp_modal_panel button:contains("Save")').click();
cy.get('[role="dialog"] input[id^="label-"]').type('PDF', {delay: 0});
cy.get('[role="dialog"] button:contains("Save")').click();
cy.wait(2000); // Avoid occasional failure due to form init taking time
});
cy.get('select[id=genreId]').select(file.genre);
Expand Down
2 changes: 1 addition & 1 deletion lib/ui-library
Submodule ui-library updated 150 files
1 change: 1 addition & 0 deletions plugins/generic/preprintToJournal
Submodule preprintToJournal added at 2385fd
56 changes: 28 additions & 28 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,35 +50,35 @@ export default defineConfig(({mode}) => {
// use vue version with template compiler
vue: 'vue/dist/vue.esm-bundler.js',
},
// https://github.com/vitejs/vite/discussions/15906
dedupe: [
'@headlessui/vue',
'@lk77/vue3-color',
'tinymce/tinymce-vue',
'@vue-a11y/announcer',
'@vueuse/core',
'chart.js',
'clone-deep',
'copyfiles',
'debounce',
'dropzone-vue3',
'element-resize-event',
'floating-vue',
'highlight.js',
'moment',
'ofetch',
'pinia',
'swiper',
'tiny-emitter',
'tinymce',
'uuid',
'vue',
'vue-chartjs',
'vue-draggable-plus',
'vue-scrollto',
'vue3-highlightjs',
],
},
// https://github.com/vitejs/vite/discussions/15906
dedupe: [
'@headlessui/vue',
'@lk77/vue3-color',
'tinymce/tinymce-vue',
'@vue-a11y/announcer',
'@vueuse/core',
'chart.js',
'clone-deep',
'copyfiles',
'debounce',
'dropzone-vue3',
'element-resize-event',
'floating-vue',
'highlight.js',
'moment',
'ofetch',
'pinia',
'swiper',
'tiny-emitter',
'tinymce',
'uuid',
'vue',
'vue-chartjs',
'vue-draggable-plus',
'vue-scrollto',
'vue3-highlightjs',
],
build: {
sourcemap: mode === 'development' ? 'inline' : false,
target: ['chrome64', 'edge79', 'firefox67', 'safari12'],
Expand Down

0 comments on commit 40506a6

Please sign in to comment.