Loading...

Override SPFx context properties during Playwright E2E tests

Override SPFx context properties during Playwright E2E tests
While creating new E2E tests for a SharePoint Framework solution, I wanted to test the solution with different permission sets. Usually, when you run your tests, you start these up with a user with the required permissions to run the tests. Instead of creating a new user with different permissions or different sites/pages to perform the tests, I looked into the possibility of overriding the context properties of SPFx.

Published on:

Learn more
Elio Struyf - Office Development MVP
Elio Struyf - Office Development MVP

Microsoft 365 / SharePoint / Search / Development / Branding / Speaker / Blogger

Share post:

Related posts

Keeping GitHub Copilot on script during your demos

Master your demos with `copilot-mock-server` for consistent GitHub Copilot responses and a seamless audience experience.

1 month ago

Is AI taking the joy out of coding, or am I giving it away?

I still love developing. That's the part that makes this hard to write.

2 months ago

Building my own AI cycling coach with Claude and Strava

Discover how to create a personalized AI cycling coach using Claude and Strava for tailored training plans that fit your lifestyle.

2 months ago

Fix invalid Microsoft service API permissions in SharePoint

Learn how to fix invalid Microsoft service API permissions in SharePoint and ensure smooth SPFx solution deployment.

2 months ago

Metered Billing for GitHub Copilot: A Necessary Shift

Explore the implications of GitHub Copilot's metered billing and how it reshapes developer workflows and AI tool usage.

2 months ago

Why GitHub Copilot CLI is my new go-to for heavy lifting

Discover why GitHub Copilot CLI is essential for managing large codebases efficiently, enhancing performance without sacrificing context.

5 months ago

Switching from Apple Watch Ultra to Garmin Venu 4

Why I traded my Apple Watch Ultra for a Garmin Venu 4 to complete my cycling training data.

5 months ago

Control Your Mac with a 3-Button Voice Setup

Discover how to control your Mac effortlessly with a 3-button voice setup for a seamless workflow and enhanced productivity.

5 months ago

Are We Killing Indie Development with AI?

Explore the impact of AI on indie development and the need for a moral compass in coding. Are we sacrificing quality for speed?

6 months ago

Stop typing, start talking

Discover how voice dictation can transform your workflow and boost productivity. Stop typing and start talking today!

6 months ago

Newsletter

Get the latest Dynamics 365 and Power Platform content in your inbox

A curated digest of community blogs, product news, videos, and podcasts — delivered without the noise.

Weekly updates Unsubscribe anytime Fresh community picks
We use your email only for the newsletter and you can unsubscribe at any time.
By subscribing, you agree to the privacy policy.