From 2ce26a407272f23aa6fd0f54078f36090e255dfb Mon Sep 17 00:00:00 2001 From: Chris Wilkinson Date: Thu, 20 Oct 2022 14:38:48 +0100 Subject: [PATCH] Add a link to change an author Refs #388 --- integration/posting-a-prereview.spec.ts | 6 +++--- ...er-authors-to-the-PREreview-2-Desktop-Chrome-linux.png | 4 ++-- ...he-PREreview-2-Desktop-Chrome-no-JavaScript--linux.png | 4 ++-- ...r-authors-to-the-PREreview-2-Desktop-Firefox-linux.png | 4 ++-- ...e-PREreview-2-Desktop-Firefox-no-JavaScript--linux.png | 4 ++-- ...d-other-authors-to-the-PREreview-2-iPhone-11-linux.png | 4 ++-- ...-to-the-PREreview-2-iPhone-11-no-JavaScript--linux.png | 4 ++-- ...er-authors-to-the-PREreview-3-Desktop-Chrome-linux.png | 4 ++-- ...he-PREreview-3-Desktop-Chrome-no-JavaScript--linux.png | 4 ++-- ...r-authors-to-the-PREreview-3-Desktop-Firefox-linux.png | 4 ++-- ...e-PREreview-3-Desktop-Firefox-no-JavaScript--linux.png | 4 ++-- ...d-other-authors-to-the-PREreview-3-iPhone-11-linux.png | 4 ++-- ...-to-the-PREreview-3-iPhone-11-no-JavaScript--linux.png | 4 ++-- ...er-authors-to-the-PREreview-5-Desktop-Chrome-linux.png | 4 ++-- ...he-PREreview-5-Desktop-Chrome-no-JavaScript--linux.png | 4 ++-- ...r-authors-to-the-PREreview-5-Desktop-Firefox-linux.png | 4 ++-- ...e-PREreview-5-Desktop-Firefox-no-JavaScript--linux.png | 4 ++-- ...d-other-authors-to-the-PREreview-5-iPhone-11-linux.png | 4 ++-- ...-to-the-PREreview-5-iPhone-11-no-JavaScript--linux.png | 4 ++-- ...-need-to-add-another-author-1-Desktop-Chrome-linux.png | 4 ++-- ...other-author-1-Desktop-Chrome-no-JavaScript--linux.png | 4 ++-- ...need-to-add-another-author-1-Desktop-Firefox-linux.png | 4 ++-- ...ther-author-1-Desktop-Firefox-no-JavaScript--linux.png | 4 ++-- ...f-you-need-to-add-another-author-1-iPhone-11-linux.png | 4 ++-- ...dd-another-author-1-iPhone-11-no-JavaScript--linux.png | 4 ++-- ...-need-to-add-another-author-2-Desktop-Chrome-linux.png | 4 ++-- ...other-author-2-Desktop-Chrome-no-JavaScript--linux.png | 4 ++-- ...need-to-add-another-author-2-Desktop-Firefox-linux.png | 4 ++-- ...ther-author-2-Desktop-Firefox-no-JavaScript--linux.png | 4 ++-- ...f-you-need-to-add-another-author-2-iPhone-11-linux.png | 4 ++-- ...dd-another-author-2-iPhone-11-no-JavaScript--linux.png | 4 ++-- src/write-review/write-review-add-authors.ts | 8 ++++++++ 32 files changed, 71 insertions(+), 63 deletions(-) diff --git a/integration/posting-a-prereview.spec.ts b/integration/posting-a-prereview.spec.ts index 2b2dac796..bb7309711 100644 --- a/integration/posting-a-prereview.spec.ts +++ b/integration/posting-a-prereview.spec.ts @@ -459,7 +459,7 @@ test.extend(canAddAuthors)('can add other authors to the PREreview', async ({ fe await expect(page.locator('h1')).toHaveText('You have added 3 other authors') await expect(page).toHaveScreenshot() - await page.goto('/preprints/doi-10.1101-2022.01.13.476201/write-a-prereview/change-author/1') + await page.click('role=link[name="Change Otto Lidenbrock"]') await expect(page.locator('h1')).toHaveText('Change Otto Lidenbrock') await expect(page).toHaveScreenshot() @@ -1424,7 +1424,7 @@ test.extend(canAddAuthors)("have to add the changed author's name", async ({ fet await page.fill('role=textbox[name="Name"]', 'Otto Lidenbrock') await page.click('text="Save and continue"') - await page.goto('/preprints/doi-10.1101-2022.01.13.476201/write-a-prereview/change-author/0') + await page.click('role=link[name="Change Otto Lidenbrock"]') await page.fill('role=textbox[name="Name"]', '') await page.click('text="Save and continue"') @@ -1478,7 +1478,7 @@ test.extend(canAddAuthors)( await page.fill('role=textbox[name="Name"]', 'Otto Lidenbrock') await page.click('text="Save and continue"') - await page.goto('/preprints/doi-10.1101-2022.01.13.476201/write-a-prereview/change-author/0') + await page.click('role=link[name="Change Otto Lidenbrock"]') await page.fill('role=textbox[name="ORCID iD (optional)"]', 'not an ORCID iD') await page.click('text="Save and continue"') diff --git a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-2-Desktop-Chrome-linux.png b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-2-Desktop-Chrome-linux.png index 0c50c9f25..1f996ac5c 100644 --- a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-2-Desktop-Chrome-linux.png +++ b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-2-Desktop-Chrome-linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:23b5e49d6edb01fb12d9e075f7f00f6c918b65dd5f3bb1b31b126e292f19515f -size 31358 +oid sha256:b8d2849dcb321f215a9749f936ec0e661431cb8cfea0dd1a9705d1f8fc8992ea +size 32493 diff --git a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-2-Desktop-Chrome-no-JavaScript--linux.png b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-2-Desktop-Chrome-no-JavaScript--linux.png index 0c50c9f25..1f996ac5c 100644 --- a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-2-Desktop-Chrome-no-JavaScript--linux.png +++ b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-2-Desktop-Chrome-no-JavaScript--linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:23b5e49d6edb01fb12d9e075f7f00f6c918b65dd5f3bb1b31b126e292f19515f -size 31358 +oid sha256:b8d2849dcb321f215a9749f936ec0e661431cb8cfea0dd1a9705d1f8fc8992ea +size 32493 diff --git a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-2-Desktop-Firefox-linux.png b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-2-Desktop-Firefox-linux.png index 1352188b7..6edb2b258 100644 --- a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-2-Desktop-Firefox-linux.png +++ b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-2-Desktop-Firefox-linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7f7fb63c4324e533636bdb1265bef40e784d19e22c548ea903589a9933e83a9f -size 55276 +oid sha256:e63bb970a84922357565aadba838dde0cc6d1a8195d91d3b43811c6a99c56505 +size 56683 diff --git a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-2-Desktop-Firefox-no-JavaScript--linux.png b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-2-Desktop-Firefox-no-JavaScript--linux.png index 1352188b7..6edb2b258 100644 --- a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-2-Desktop-Firefox-no-JavaScript--linux.png +++ b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-2-Desktop-Firefox-no-JavaScript--linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7f7fb63c4324e533636bdb1265bef40e784d19e22c548ea903589a9933e83a9f -size 55276 +oid sha256:e63bb970a84922357565aadba838dde0cc6d1a8195d91d3b43811c6a99c56505 +size 56683 diff --git a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-2-iPhone-11-linux.png b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-2-iPhone-11-linux.png index 836c3bbfd..5d841054d 100644 --- a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-2-iPhone-11-linux.png +++ b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-2-iPhone-11-linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7f7dc0a44fd9f0a4c534ffb15b178d1e3a35f80537152f74f866ab45b1d25b9d -size 25328 +oid sha256:fee4940206b16b6cdf2836502175f7aa82852c7c7235dbfff5c73ae1cb7cbe25 +size 26225 diff --git a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-2-iPhone-11-no-JavaScript--linux.png b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-2-iPhone-11-no-JavaScript--linux.png index 836c3bbfd..5d841054d 100644 --- a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-2-iPhone-11-no-JavaScript--linux.png +++ b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-2-iPhone-11-no-JavaScript--linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7f7dc0a44fd9f0a4c534ffb15b178d1e3a35f80537152f74f866ab45b1d25b9d -size 25328 +oid sha256:fee4940206b16b6cdf2836502175f7aa82852c7c7235dbfff5c73ae1cb7cbe25 +size 26225 diff --git a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-3-Desktop-Chrome-linux.png b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-3-Desktop-Chrome-linux.png index 81361cf04..6d8e5843a 100644 --- a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-3-Desktop-Chrome-linux.png +++ b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-3-Desktop-Chrome-linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:2eee3d38bc82c0615e9173ff7f2f2576dc2b00c34a8ceb409ee632e762836b6d -size 40883 +oid sha256:97bd18f53510c96af7b7a069d03e7701ba945b81932c552371204da981742035 +size 44736 diff --git a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-3-Desktop-Chrome-no-JavaScript--linux.png b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-3-Desktop-Chrome-no-JavaScript--linux.png index 81361cf04..6d8e5843a 100644 --- a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-3-Desktop-Chrome-no-JavaScript--linux.png +++ b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-3-Desktop-Chrome-no-JavaScript--linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:2eee3d38bc82c0615e9173ff7f2f2576dc2b00c34a8ceb409ee632e762836b6d -size 40883 +oid sha256:97bd18f53510c96af7b7a069d03e7701ba945b81932c552371204da981742035 +size 44736 diff --git a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-3-Desktop-Firefox-linux.png b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-3-Desktop-Firefox-linux.png index 18b6d252a..78fceb317 100644 --- a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-3-Desktop-Firefox-linux.png +++ b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-3-Desktop-Firefox-linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:75b99ddf88b46049d1447fea2fd3b12e98b9031455f4a52c7e4f8c8d36f4e95b -size 66851 +oid sha256:8044de5ea68290463a83db390cf49b00859c7f0bfae3bf2c3cf574f2e2b66bd1 +size 71298 diff --git a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-3-Desktop-Firefox-no-JavaScript--linux.png b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-3-Desktop-Firefox-no-JavaScript--linux.png index 18b6d252a..78fceb317 100644 --- a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-3-Desktop-Firefox-no-JavaScript--linux.png +++ b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-3-Desktop-Firefox-no-JavaScript--linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:75b99ddf88b46049d1447fea2fd3b12e98b9031455f4a52c7e4f8c8d36f4e95b -size 66851 +oid sha256:8044de5ea68290463a83db390cf49b00859c7f0bfae3bf2c3cf574f2e2b66bd1 +size 71298 diff --git a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-3-iPhone-11-linux.png b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-3-iPhone-11-linux.png index f245d331d..8205c9119 100644 --- a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-3-iPhone-11-linux.png +++ b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-3-iPhone-11-linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d644fa0dc5d6434a85a3fdafb5f2c49f1cd7c5a108e1981ca03ab78e16de641b -size 32721 +oid sha256:0f7d7510e3a6dba4508012cbac20641575d5f90c7a1bbf757d91e5da4cf9740c +size 35638 diff --git a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-3-iPhone-11-no-JavaScript--linux.png b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-3-iPhone-11-no-JavaScript--linux.png index f245d331d..8205c9119 100644 --- a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-3-iPhone-11-no-JavaScript--linux.png +++ b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-3-iPhone-11-no-JavaScript--linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d644fa0dc5d6434a85a3fdafb5f2c49f1cd7c5a108e1981ca03ab78e16de641b -size 32721 +oid sha256:0f7d7510e3a6dba4508012cbac20641575d5f90c7a1bbf757d91e5da4cf9740c +size 35638 diff --git a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-5-Desktop-Chrome-linux.png b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-5-Desktop-Chrome-linux.png index 98d03cf71..f26f03639 100644 --- a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-5-Desktop-Chrome-linux.png +++ b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-5-Desktop-Chrome-linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7468680c210fb09637058d9016b9f16c8b8c695248875cca576d9c71abe52fc8 -size 40985 +oid sha256:5b0f4f6ea17e96434f870b38bc368d8688d0c23af92c3b8a46f579f02dbbdcb1 +size 44799 diff --git a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-5-Desktop-Chrome-no-JavaScript--linux.png b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-5-Desktop-Chrome-no-JavaScript--linux.png index 98d03cf71..f26f03639 100644 --- a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-5-Desktop-Chrome-no-JavaScript--linux.png +++ b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-5-Desktop-Chrome-no-JavaScript--linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7468680c210fb09637058d9016b9f16c8b8c695248875cca576d9c71abe52fc8 -size 40985 +oid sha256:5b0f4f6ea17e96434f870b38bc368d8688d0c23af92c3b8a46f579f02dbbdcb1 +size 44799 diff --git a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-5-Desktop-Firefox-linux.png b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-5-Desktop-Firefox-linux.png index e9a2cdce0..3f125c0d9 100644 --- a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-5-Desktop-Firefox-linux.png +++ b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-5-Desktop-Firefox-linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a8e05501248e0fa7c6ae2d2791f289d85b61b814a090f1024a3b5f9d9f2e4525 -size 66864 +oid sha256:d328363b152c4cde04d8999af398000c9a718e914a38da39aa17e092044f53b6 +size 71311 diff --git a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-5-Desktop-Firefox-no-JavaScript--linux.png b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-5-Desktop-Firefox-no-JavaScript--linux.png index e9a2cdce0..3f125c0d9 100644 --- a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-5-Desktop-Firefox-no-JavaScript--linux.png +++ b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-5-Desktop-Firefox-no-JavaScript--linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a8e05501248e0fa7c6ae2d2791f289d85b61b814a090f1024a3b5f9d9f2e4525 -size 66864 +oid sha256:d328363b152c4cde04d8999af398000c9a718e914a38da39aa17e092044f53b6 +size 71311 diff --git a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-5-iPhone-11-linux.png b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-5-iPhone-11-linux.png index bc89e8b05..d356147de 100644 --- a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-5-iPhone-11-linux.png +++ b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-5-iPhone-11-linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4201a0265aee8c26a9325993a0658ef1729c5d83d97e499ee310b0f6bd33a53c -size 32746 +oid sha256:6d698b880233ffd7ad59b0362966cbe3332061df223cc8c714003100deae3468 +size 35663 diff --git a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-5-iPhone-11-no-JavaScript--linux.png b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-5-iPhone-11-no-JavaScript--linux.png index bc89e8b05..d356147de 100644 --- a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-5-iPhone-11-no-JavaScript--linux.png +++ b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/can-add-other-authors-to-the-PREreview-5-iPhone-11-no-JavaScript--linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4201a0265aee8c26a9325993a0658ef1729c5d83d97e499ee310b0f6bd33a53c -size 32746 +oid sha256:6d698b880233ffd7ad59b0362966cbe3332061df223cc8c714003100deae3468 +size 35663 diff --git a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-1-Desktop-Chrome-linux.png b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-1-Desktop-Chrome-linux.png index f076c2c06..5ffc32089 100644 --- a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-1-Desktop-Chrome-linux.png +++ b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-1-Desktop-Chrome-linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3301f43ff9c4474d8c53d89422b979879793faebcd1bbdd56952fad8efe6d6ea -size 39434 +oid sha256:3dcdcd3c566b7fd20c95c0f2db9433c425ca599afab1d5694a571a857c6d73ba +size 40696 diff --git a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-1-Desktop-Chrome-no-JavaScript--linux.png b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-1-Desktop-Chrome-no-JavaScript--linux.png index 1afc49543..924aa4b7b 100644 --- a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-1-Desktop-Chrome-no-JavaScript--linux.png +++ b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-1-Desktop-Chrome-no-JavaScript--linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3da3cabc2bb1b78743e01ee47808bdbd9760f86f029ebbd3ff464443ada09d80 -size 39358 +oid sha256:29215b925b4b2630f7a89fa107f1867261be58f35b3f6aca95ea4285cdb34155 +size 40628 diff --git a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-1-Desktop-Firefox-linux.png b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-1-Desktop-Firefox-linux.png index 2a54ff120..9ae879214 100644 --- a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-1-Desktop-Firefox-linux.png +++ b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-1-Desktop-Firefox-linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b86dcacc7c0b2ed8b746433ee10b9264ec6d9cacd43e7816bd25344e90f82f26 -size 70165 +oid sha256:fd2f3a1a21222753483c6755473e59944e4bed990f5b2629c37b85c234b688da +size 71507 diff --git a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-1-Desktop-Firefox-no-JavaScript--linux.png b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-1-Desktop-Firefox-no-JavaScript--linux.png index 99ddf8cf9..287536db2 100644 --- a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-1-Desktop-Firefox-no-JavaScript--linux.png +++ b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-1-Desktop-Firefox-no-JavaScript--linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:cbc48bdc59b873f06ff29e3e33b5079c9e04a7f88ae7dfcab2101f84ba783c1d -size 70344 +oid sha256:fa303e2d73ee0f8bce86e7b0e55a8c5a7912be58beefdd1385eb38f376257661 +size 71692 diff --git a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-1-iPhone-11-linux.png b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-1-iPhone-11-linux.png index a0d5046f1..4e93dcd5e 100644 --- a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-1-iPhone-11-linux.png +++ b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-1-iPhone-11-linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:342a2edf66a1acbf4d4e34ee4f976e7bfda35bb51d6e12de48bb2d63a51ad2b8 -size 34821 +oid sha256:9ecb209a5f0ee3913b8dc8e1e55ca127dc4dcf0cbfd6a922e0968efc27fb73b3 +size 35718 diff --git a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-1-iPhone-11-no-JavaScript--linux.png b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-1-iPhone-11-no-JavaScript--linux.png index 47b5ce5ab..9a4c165ad 100644 --- a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-1-iPhone-11-no-JavaScript--linux.png +++ b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-1-iPhone-11-no-JavaScript--linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:473ecc10f773e20bad63705699df94cf10abb9feebb61e7cfb34d2ad8a456218 -size 34692 +oid sha256:f39f7f77d1a62a8289863973068fe0d34b3f502143fad73e549befef4c2beaa2 +size 35591 diff --git a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-2-Desktop-Chrome-linux.png b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-2-Desktop-Chrome-linux.png index d7f736f5c..3a4ace162 100644 --- a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-2-Desktop-Chrome-linux.png +++ b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-2-Desktop-Chrome-linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:511b436fb08bf52d2af4bae5c6c0f00db18488df97c6cd6d010fa8f9e1c1a87e -size 39211 +oid sha256:e991f2fae8622bebbd90b86a778144dd3eb0558ec2e5fa10a6104ad71632abe4 +size 40458 diff --git a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-2-Desktop-Chrome-no-JavaScript--linux.png b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-2-Desktop-Chrome-no-JavaScript--linux.png index d7f736f5c..3a4ace162 100644 --- a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-2-Desktop-Chrome-no-JavaScript--linux.png +++ b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-2-Desktop-Chrome-no-JavaScript--linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:511b436fb08bf52d2af4bae5c6c0f00db18488df97c6cd6d010fa8f9e1c1a87e -size 39211 +oid sha256:e991f2fae8622bebbd90b86a778144dd3eb0558ec2e5fa10a6104ad71632abe4 +size 40458 diff --git a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-2-Desktop-Firefox-linux.png b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-2-Desktop-Firefox-linux.png index 10fbdc0b8..b01312657 100644 --- a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-2-Desktop-Firefox-linux.png +++ b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-2-Desktop-Firefox-linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a2260604c1ef71ae1f88f4a08a68ff01f92484cb040759af514a59a560b6873e -size 70717 +oid sha256:3683f593aa2d35ba43d52e8c1d565d60eb712a567585788f71fa56d7ab7dcced +size 71931 diff --git a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-2-Desktop-Firefox-no-JavaScript--linux.png b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-2-Desktop-Firefox-no-JavaScript--linux.png index 10fbdc0b8..b01312657 100644 --- a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-2-Desktop-Firefox-no-JavaScript--linux.png +++ b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-2-Desktop-Firefox-no-JavaScript--linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a2260604c1ef71ae1f88f4a08a68ff01f92484cb040759af514a59a560b6873e -size 70717 +oid sha256:3683f593aa2d35ba43d52e8c1d565d60eb712a567585788f71fa56d7ab7dcced +size 71931 diff --git a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-2-iPhone-11-linux.png b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-2-iPhone-11-linux.png index 0703dc173..31e41c6b9 100644 --- a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-2-iPhone-11-linux.png +++ b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-2-iPhone-11-linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3d3a66ce5dd40fcda0d4c5cba60c47af8bfa458045b69c9588f8d88ca766ac12 -size 33550 +oid sha256:8b7d4e6b1f7a224e19f6106e472f058aabeeff8d246e92aeae598be9809e6685 +size 34458 diff --git a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-2-iPhone-11-no-JavaScript--linux.png b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-2-iPhone-11-no-JavaScript--linux.png index 0703dc173..31e41c6b9 100644 --- a/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-2-iPhone-11-no-JavaScript--linux.png +++ b/integration/snapshots/posting-a-prereview.spec.ts-snapshots/have-to-say-if-you-need-to-add-another-author-2-iPhone-11-no-JavaScript--linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3d3a66ce5dd40fcda0d4c5cba60c47af8bfa458045b69c9588f8d88ca766ac12 -size 33550 +oid sha256:8b7d4e6b1f7a224e19f6106e472f058aabeeff8d246e92aeae598be9809e6685 +size 34458 diff --git a/src/write-review/write-review-add-authors.ts b/src/write-review/write-review-add-authors.ts index 5eee99caf..0fa9b241f 100644 --- a/src/write-review/write-review-add-authors.ts +++ b/src/write-review/write-review-add-authors.ts @@ -16,6 +16,7 @@ import { writeReviewAddAuthorMatch, writeReviewAddAuthorsMatch, writeReviewAuthorsMatch, + writeReviewChangeAuthorMatch, writeReviewMatch, writeReviewRemoveAuthorMatch, } from '../routes' @@ -157,6 +158,13 @@ function addAuthorsForm(preprint: Preprint, authors: ReadonlyArray<{ name: NonEm ({ name }, index) => html`
  • ${name} + Change ${name}