Skip to content

Commit

Permalink
js: isso.js: Disable Postbox submit button on click, enable after res…
Browse files Browse the repository at this point in the history
…ponse

Disable the submit button in Postbox to prevent double posting upon click. Enable the button after receiving a response from the API endpoint.

Fixes #913
  • Loading branch information
pkvach committed Mar 30, 2024
1 parent 27060ee commit c774e0a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion isso/js/tests/integration/puppet.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,10 @@ test("should execute GET/PUT/POST/DELETE requests correctly", async () => {

await expect(page).toMatchElement(
'#isso-1 .isso-text',
{ text: 'New comment body' },
{
text: 'New comment body',
timeout: 1000,
},
);

// Delete comment via DELETE
Expand Down

0 comments on commit c774e0a

Please sign in to comment.