Recreate yarn.lock (#18776)

* Recreate yarn.lock

* Fix lint

* Address failing spec
This commit is contained in:
Mac Siri 2022-11-30 07:45:49 -05:00 committed by GitHub
parent 7f409528fa
commit 619bce5993
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 2071 additions and 3082 deletions

View file

@ -27,7 +27,7 @@ export const ClipboardButton = ({
onClick={onCopy}
className="spec__image-markdown-copy whitespace-nowrap fw-normal"
icon={CopyIcon}
title="Copy markdown for image"
title="Copy"
>
{showCopyMessage ? 'Copied!' : 'Copy...'}
</Button>

View file

@ -108,7 +108,7 @@ describe('<ImageUploader />', () => {
waitForElementToBeRemoved(() => queryByText(/uploading.../i));
expect(await findByTitle(/copy markdown for image/i)).toBeInTheDocument();
expect(await findByTitle(/Copy/i)).toBeInTheDocument();
expect(getByDisplayValue(/fake-link.jpg/i)).toBeInTheDocument();
});
@ -189,7 +189,7 @@ describe('<ImageUploader />', () => {
);
fireEvent(document, event);
expect(await findByTitle(/copy markdown for image/i)).toBeInTheDocument();
expect(await findByTitle(/Copy/i)).toBeInTheDocument();
});
});

View file

@ -81,7 +81,7 @@ export const ListingDashboard = () => {
).sort(customSort);
return displayedListings.map((listing) =>
listing.organization_id === selected ? (
<ListingRow listing={listing} />
<ListingRow key={listing.id} listing={listing} />
) : null,
);
};

View file

@ -18,10 +18,7 @@ describe('Upload image', () => {
});
// Confirm the UI has updated to show the uploaded state
cy.findByRole('button', {
name: 'Copy markdown for image',
}).click();
cy.findByRole('button', { name: /Copy/i }).click();
cy.findByText('Copied!').should('exist');
cy.window()

5140
yarn.lock

File diff suppressed because it is too large Load diff