-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix MUI5 testing errors #3793
Fix MUI5 testing errors #3793
Conversation
b0df016
to
4a5bf0d
Compare
…wThumbnail component
4a5bf0d
to
00217bd
Compare
f496927
to
52822b8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there are two changes to consider in the comments but I don't think they should hold up merging this PR to the mui5 branch.
@@ -6,7 +6,8 @@ describe('Thumbnail navigation', () => { | |||
await expect(page).toMatchElement('.mirador-window', { polling: 'mutation', timeout: 5000 }); | |||
}); | |||
|
|||
it('navigates a manifest using thumbnail navigation', async () => { | |||
//TODO: pick a new url; this Harvard one is 404 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The manifest URL seems ok - is it required in Mirador for canvas IDs to be dereferenceable? It looks like that manifest has all the relevant canvas data inline.
@@ -138,6 +138,7 @@ export class ManifestListItem extends Component { | |||
}, | |||
})} | |||
data-manifestid={manifestId} | |||
data-active={active} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if the best way to handle this in mui5 is to make this a ListItemButton and use the selected
attribute (which deprecated on ListItem but not ListItemButton).
e27a3ce
to
8932afd
Compare
Because of a migration, I had to add mui-x to our project to keep using Tree View: It is a paid product but is also free to use under MIT License, so I think we should. be good. But wanted to check on that. |
@marlo-longley I came to the same conclusion for the React18 patches on our fork. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ran npm run test
and all tests pass. Approved.
No description provided.