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 isso-comments#913
  • Loading branch information
pkvach committed Mar 30, 2024
1 parent d3a1b82 commit 27060ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions isso/js/tests/screenshots/screenshots.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ test('Screenshot with inserted comment', async () => {
});

// Delete comment again
await page.waitForSelector('#isso-1 > .isso-text-wrapper > .isso-comment-footer > .isso-delete');
await expect(page).toClick('#isso-1 > .isso-text-wrapper > .isso-comment-footer > .isso-delete');
// Need to click once to surface "confirm" and then again to confirm
await expect(page).toClick('#isso-1 > .isso-text-wrapper > .isso-comment-footer > .isso-delete');
Expand Down

0 comments on commit 27060ee

Please sign in to comment.