Skip to content

Commit fe95d89

Browse files
author
Morten Barklund
committed
Fixed another test that referenced the layer panel
1 parent ec032a4 commit fe95d89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/story-editor/src/components/canvas/karma/selection.karma.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ describe('CUJ: Creator can Transform an Element: Selection integration', () => {
121121
await fixture.events.click(layerPanel.togglePanel);
122122
const paragraphLayer = layerPanel.getLayerByInnerText('Fill in some text');
123123
await fixture.events.hover(paragraphLayer);
124-
const lockButton = within(paragraphLayer).getByLabelText('Lock/Unlock');
124+
const lockButton = within(paragraphLayer).getByLabelText(/Lock/);
125125
await fixture.events.click(lockButton);
126126

127127
// Try to click on the text element

0 commit comments

Comments
 (0)