Skip to content

Commit

Permalink
fix(e2e): adapt test
Browse files Browse the repository at this point in the history
  • Loading branch information
elbotho committed Dec 20, 2024
1 parent 42ab619 commit b7141f6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
4 changes: 1 addition & 3 deletions e2e-tests/tests/430-multimedia-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ Scenario('Multimedia plugin toolbar controls', async ({ I }) => {
I.click('$plugin-multimedia-settings-button')
I.selectOption('$plugin-multimedia-type-select', 'Video')
I.click('$modal-close-button')
I.seeElement(
locate('$plugin-video-placeholder').inside('$plugin-multimedia-wrapper')
)
I.seeElement(locate('$plugin-video-src').inside('$plugin-multimedia-wrapper'))

I.say('Change the type of the multimedia content to GeoGebra')
I.click('$plugin-multimedia-settings-button')
Expand Down
12 changes: 3 additions & 9 deletions e2e-tests/tests/431-multimedia-plugin-image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ Scenario('Multimedia plugin successful image upload', ({ I }) => {
I.click('$plugin-multimedia-settings-button')
I.selectOption('$plugin-multimedia-type-select', 'Video')
I.click('$modal-close-button')
I.seeElement(
locate('$plugin-video-placeholder').inside('$plugin-multimedia-wrapper')
)
I.seeElement(locate('$plugin-video-src').inside('$plugin-multimedia-wrapper'))
I.click('$plugin-multimedia-settings-button')
I.selectOption('$plugin-multimedia-type-select', 'Bild')
I.click('$modal-close-button')
Expand Down Expand Up @@ -111,9 +109,7 @@ Scenario('Multimedia plugin valid image URL', ({ I }) => {
I.click('$plugin-multimedia-settings-button')
I.selectOption('$plugin-multimedia-type-select', 'Video')
I.click('$modal-close-button')
I.seeElement(
locate('$plugin-video-placeholder').inside('$plugin-multimedia-wrapper')
)
I.seeElement(locate('$plugin-video-src').inside('$plugin-multimedia-wrapper'))
I.click('$plugin-multimedia-settings-button')
I.selectOption('$plugin-multimedia-type-select', 'Bild')
I.click('$modal-close-button')
Expand Down Expand Up @@ -148,9 +144,7 @@ Scenario('Multimedia plugin fill in image caption', ({ I }) => {
I.click('$plugin-multimedia-settings-button')
I.selectOption('$plugin-multimedia-type-select', 'Video')
I.click('$modal-close-button')
I.seeElement(
locate('$plugin-video-placeholder').inside('$plugin-multimedia-wrapper')
)
I.seeElement(locate('$plugin-video-src').inside('$plugin-multimedia-wrapper'))
I.click('$plugin-multimedia-settings-button')
I.selectOption('$plugin-multimedia-type-select', 'Bild')
I.click('$modal-close-button')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export function VideoSelectionScreen({
'w-full rounded-lg border-0 bg-yellow-100 px-4 py-2 text-gray-600',
showErrorMessage && 'outline outline-1 outline-red-500'
)}
data-qa="plugin-image-src"
data-qa="plugin-video-src"
/>
{showErrorMessage && (
<>
Expand Down

0 comments on commit b7141f6

Please sign in to comment.