Skip to content

Commit

Permalink
only check the icon's name instead of the full icon url including por…
Browse files Browse the repository at this point in the history
…t number (#4827)
  • Loading branch information
balazsbajorics authored Feb 2, 2024
1 parent 0bf0f4e commit 1fcfbd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -633,9 +633,7 @@ describe('Absolute Move Strategy', () => {
const toolbarEditButtonImage = renderResult.renderedDOM.getByTestId(
`${CanvasToolbarEditButtonID}-icon`,
)
expect(toolbarEditButtonImage.getAttribute('src')).toEqual(
'http://localhost:9876/editor/icons/light/modalities/[email protected]',
)
expect(toolbarEditButtonImage.getAttribute('src')).toEqual(expect.stringContaining('moveabs')) // the toolbar shows the Absolute Move icon
})

await renderResult.getDispatchFollowUpActionsFinished()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ describe('Flex Reorder Strategy', () => {
`${CanvasToolbarEditButtonID}-icon`,
)
expect(toolbarEditButtonImage.getAttribute('src')).toEqual(
'http://localhost:9876/editor/icons/light/modalities/reorder[email protected]',
expect.stringContaining('reorder'), // check if the toolbar shows the Reorder icon
)
expect(renderResult.getEditorState().strategyState.currentStrategy).toEqual(
'FLEX_REORDER',
Expand Down

0 comments on commit 1fcfbd8

Please sign in to comment.