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 31, 2024
1 parent 71e969e commit 8eac8a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions isso/js/tests/screenshots/screenshots.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,13 @@ test('Screenshot with inserted comment', async () => {
expect(page).toClick('.isso-post-action > input[type=submit]'),
]);

await page.waitForSelector('#isso-1');
const rendered_comment = await page.$('#isso-1');
await rendered_comment.screenshot({
path: SCREENSHOTS_PATH + '/comment.png'
});

await page.waitForSelector('#isso-thread');
const thread = await page.$('#isso-thread');
await thread.screenshot({
path: SCREENSHOTS_PATH + '/thread.png'
Expand Down

0 comments on commit 8eac8a0

Please sign in to comment.