Skip to content

uiHelper missing gotToSection in version 16.0.34 #277

@Matthew-Wise

Description

@Matthew-Wise

Hi all,

I am currently migrating Umbraco CSP manager and have been trying to get playwright testing up and running however when trying use goToSection it says it doesn't exist, however looking at the source code I can see it is defined along with JsonHelper which also appears to be missing.

test("Can access CSP Manager Section", async ({ page }) => {
	var uiHelper = new umbraco.UiHelpers(page);
	await uiHelper.gotToSection("Umbraco.Community.CSPManager.Section");
});

package-lock.json ref just in case it helps

"node_modules/@umbraco/playwright-testhelpers": {
			"version": "16.0.34",
			"resolved": "https://registry.npmjs.org/@umbraco/playwright-testhelpers/-/playwright-testhelpers-16.0.34.tgz",
			"integrity": "sha512-hCOqSUrTVZPNxD3DP+olYz/QFc8HwyZ1QZR6gTv87nIkAlvEjk44+7KblPartfBXQDd93uvasptr7dO3XCapZA==",
			"dev": true,
			"license": "MIT",
			"dependencies": {
				"@umbraco/json-models-builders": "2.0.37",
				"node-fetch": "^2.6.7"
			}
		},

You can see the code in this branch - https://github.com/Matthew-Wise/Umbraco-CSP-manager/tree/v15/main

thanks
Matt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions