0
Fork 0
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:
Juan Picado @jotadeveloper 2019-03-04 22:19:49 +01:00
parent 5aff7bc1a8
commit 70d8e5f624
No known key found for this signature in database
GPG key ID: 18AC54485952D158
3 changed files with 4 additions and 5 deletions

View file

@ -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()}

View file

@ -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