Skip to content
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

Convert AnnotationList to playwright component test #4271

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

antti-manninen-vmv
Copy link
Contributor

@antti-manninen-vmv antti-manninen-vmv commented Jan 16, 2025

Käänsin yhden testin playwrightille. Snapshotit siirtyi suoraan itse testiin (mun suosikkitapa). Muuten aika pitkälti sama. Harmittavasti GH:n käli ei tunnista että tiedosto siirtyi vain

@antti-manninen-vmv antti-manninen-vmv marked this pull request as ready for review January 16, 2025 12:55
@@ -57,18 +57,10 @@ test.describe('<AnnotationList />', () => {
scores: [_.pick(defaultScores, 'pregrading', 'answerId', 'questionId')]
}
const component = await mount(<AnnotationListStory results={resultsProps} />)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, mä laittasin ehkä näihinkin esim. `component.getByRole('listitem').first().toHaveTextContent('Test pregrading annotation) tai siis että ei vertailtais tota innerHtml ollenkaan.
ja sitten noihin missä siellä ei saa olla mitään niin on varmaan joku expect....toBeEmpty() tai vastaava

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants