Skip to content

Commit

Permalink
pkp/pkp-lib#9527 attempt to make msw work on published storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
jardakotesovec committed Nov 27, 2023
1 parent 599804d commit 25c59cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/pages/example/ExamplePage.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ export const ExamplePage1 = {
args: {
pageServerConfig: {
submissionsApiUrl:
'http://mock/index.php/publicknowledge/api/v1/_submissions',
'https://mock/index.php/publicknowledge/api/v1/_submissions',
},
},
parameters: {
msw: {
handlers: [
rest.get(
'http://mock/index.php/publicknowledge/api/v1/_submissions',
'https://mock/index.php/publicknowledge/api/v1/_submissions',
async (req, res, ctx) => {
await delay(500);

Expand Down
2 changes: 1 addition & 1 deletion src/pages/example/ExamplePage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<h1 class="text-dark">Submissions</h1>
<span v-if="store.isLoading">Is loading</span>

<ul class="border p-4">
<ul v-else class="border p-4">
<li v-for="submission in store.submissions" :key="submission.id">
<span class="bg-medium text-lg-normal">
{{ submission.publications[0].fullTitle.en }}
Expand Down

0 comments on commit 25c59cf

Please sign in to comment.