Recreate yarn.lock (#18776)
* Recreate yarn.lock * Fix lint * Address failing spec
This commit is contained in:
parent
7f409528fa
commit
619bce5993
5 changed files with 2071 additions and 3082 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue