mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-06 22:40:26 -05:00
chore: fix e2e test for package list
This commit is contained in:
parent
5aff7bc1a8
commit
70d8e5f624
3 changed files with 4 additions and 5 deletions
|
@ -143,9 +143,9 @@ const Package = ({
|
|||
};
|
||||
|
||||
return (
|
||||
<PackageList>
|
||||
<PackageList className={'package'}>
|
||||
<ListItem alignItems={'flex-start'}>
|
||||
<PackageListItemText component={'div'} primary={renderPrimaryComponent()} secondary={renderSecondaryComponent()} />
|
||||
<PackageListItemText className={'package-link'} component={'div'} primary={renderPrimaryComponent()} secondary={renderSecondaryComponent()} />
|
||||
</ListItem>
|
||||
<PackageListItem alignItems={'flex-start'}>
|
||||
{renderAuthorInfo()}
|
||||
|
|
|
@ -22,7 +22,7 @@ describe('/ (Verdaccio Page)', () => {
|
|||
};
|
||||
|
||||
const getPackages = async function() {
|
||||
return await page.$$('.package-list-items .package');
|
||||
return await page.$$('.package-list-items .package-link a');
|
||||
};
|
||||
|
||||
const logIn = async function() {
|
||||
|
@ -131,7 +131,6 @@ describe('/ (Verdaccio Page)', () => {
|
|||
test('should navigate to the package detail', async () => {
|
||||
const packagesList = await getPackages();
|
||||
const firstPackage = packagesList[0];
|
||||
await firstPackage.focus();
|
||||
await firstPackage.click({ clickCount: 1, delay: 200 });
|
||||
await page.waitFor(1000);
|
||||
const readmeText = await page.evaluate(() => document.querySelector('.markdown-body').textContent);
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue