Mar 04 2019 04:21 AM - edited Mar 04 2019 04:26 AM
Hi,
I have a web part that uses the pageContext to get info about the page that the user is viewing. Until now I hve been available to test the webpart in my private environment by installing it in the app cataloge and then adding it to the page that I want get the info from.
Now is time to test the app in the live environment but since it uses the pageContext it can not be tested in the workbench and I don't want to install it just for testing.
Is there a way to test this app in a similar way like using workbench?
I forgot to mention that it is a SharePoint online modern design environment
Best regards
Americo
Mar 04 2019 06:09 AM
SolutionIt's possible the pageContext values you want are in the hosted workbench. https://yourtenant.sharepoint.com/_layouts/15/workbench.aspx . I would start there.
Mar 04 2019 06:18 AM
Thanks,
Yes it works, my error was that I was testing in the wrong site colletion.
It happens!!
Thanks!
Mar 04 2019 06:09 AM
SolutionIt's possible the pageContext values you want are in the hosted workbench. https://yourtenant.sharepoint.com/_layouts/15/workbench.aspx . I would start there.