-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
only check the icon's name instead of the full icon url including por…
…t number (#4827)
- Loading branch information
1 parent
0bf0f4e
commit 1fcfbd8
Showing
2 changed files
with
2 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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', | ||
|