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 31, 2024
1 parent e4178a1 commit 71e969e
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 @@ -40,6 +40,7 @@ test('Screenshot Postbox', async () => {
await expect(await page.evaluate(
() => localStorage.getItem("isso-author")))
.toBe(null);
await page.waitForSelector('#isso-thread');
const thread = await page.$('#isso-thread');
await thread.screenshot({
path: SCREENSHOTS_PATH + '/postbox.png'
Expand Down

0 comments on commit 71e969e

Please sign in to comment.