Skip to content

Commit d735aea

Browse files
committed
Merge branch '11.8' of https://github.com/PDFTron/webviewer-ui into 11.8
2 parents 453e6da + 2b492b0 commit d735aea

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed
823 KB
Binary file not shown.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "webviewer-ui",
33
"author": "Apryse Software Inc.",
4-
"version": "11.9.0",
4+
"version": "11.8.0",
55
"description": "WebViewer UI built in React",
66
"main": "src/index.js",
77
"scripts": {
@@ -147,4 +147,4 @@
147147
"./src/**/*.{js,ts}": "eslint --fix",
148148
"./src/**/*.scss": "npm run lint:styles"
149149
}
150-
}
150+
}

src/components/ModularComponents/AppStories/ViewOnly.stories.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { panelNames } from 'src/constants/panel';
1010
import { PRESET_BUTTON_TYPES } from 'constants/customizationVariables';
1111
import DataElements from 'constants/dataElement';
1212
import { defaultFlyoutMap } from 'src/redux/modularComponents';
13-
import { getTranslatedText } from 'src/helpers/testTranslationHelper';
1413

1514
export default {
1615
title: 'ModularComponents/ViewOnly',
@@ -185,12 +184,12 @@ ViewOnlyWhitelist.play = async ({ canvasElement }) => {
185184

186185
// Annotate ribbon should not show header since no buttons are whitelisted
187186
const canvas = within(canvasElement);
188-
await canvas.getByRole('button', { name: getTranslatedText('option.toolbarGroup.toolbarGroup-Annotate') }).click();
187+
await canvas.getByRole('button', { name: 'Annotate' }).click();
189188
const headers = await canvas.findAllByRole('toolbar');
190189
expect(headers.length).toBe(1);
191190

192-
await canvas.getByRole('button', { name: getTranslatedText('option.toolbarGroup.toolbarGroup-Shapes') }).click();
193-
await expect(await canvas.findByRole('button', { name: getTranslatedText('annotation.ellipse') })).toBeInTheDocument();
191+
await canvas.getByRole('button', { name: 'Shapes' }).click();
192+
await expect(await canvas.findByRole('button', { name: 'Ellipse' })).toBeInTheDocument();
194193

195194
// should be able to update hotkeys whitelist
196195
window.instance.UI.updateViewOnlyShortcuts([window.instance.UI.Shortcuts.RECTANGLE]);

0 commit comments

Comments
 (0)