Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add generic sample tests and test generation. #823

Open
wants to merge 63 commits into
base: vnext
Choose a base branch
from

Conversation

skrustev
Copy link
Member

@skrustev skrustev commented Oct 1, 2024

No description provided.

@skrustev skrustev requested a review from dkamburov October 1, 2024 16:59
@skrustev skrustev requested a review from damyanpetev October 3, 2024 13:45
@skrustev skrustev marked this pull request as ready for review October 3, 2024 13:45
@skrustev skrustev requested a review from MayaKirova October 3, 2024 13:47
@dkamburov dkamburov self-assigned this Oct 8, 2024
@skrustev skrustev added the squash-merge Use squash merge when merging the pull request label Oct 9, 2024
@skrustev skrustev requested review from damyanpetev and turbobobbytraykov and removed request for dkamburov November 21, 2024 13:32
@skrustev skrustev force-pushed the skrastev/playwright-tests branch from 9941850 to 4cf28c6 Compare November 21, 2024 15:55
Copy link
Contributor

@turbobobbytraykov turbobobbytraykov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added comments to the readme. Perhapse we should mention the tests & this readme in the repo's README as well?

@@ -0,0 +1,75 @@
This documents provides instruction on building and running Samples Browser Tests
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the Client samples only; is it applicable for the Server ones as well?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both samples are pretty much the same, this is more implementation details which one can see when he/she opens the solution?

- Instal Blazor **.NET SDK** from this website:
https://dotnet.microsoft.com/learn/aspnet/blazor-tutorial/install

- If you don't have pwsh, you will have to [install Powershell](https://docs.microsoft.com/powershell/scripting/install/installing-powershell)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this mandatory? Can the regular Windows Powershell be used?

Copy link
Member

@damyanpetev damyanpetev Dec 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assuming it's for the playwright.ps1 install command below and I can confirm the default works just fine:
image
This is how Playwright guide (using pwsh) possibly since it's cross-plat and they can give a single command that works on linux/mac as well. Don't mind noting those are optional (same for Blazor SDK since that's usually bundled with VS, no?)


- Build the solution. Should successfully build all projects.

## 4. Run tests
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a command line command to run the tests - aligned with the fact that we provide commands for everything else so far - in this readme and the one in the repo root.


- Build the solution. Should successfully build all projects.

## 4. Run tests
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, if running the tests from Visual Studio and/or the command line requires to have an already running Samples Browser app, please mention it as a prerequisite.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is not longer needed.


- Build the solution. Should successfully build all projects.

## 4. Run tests
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.runsettings - should we set a default number of workers or at least mention that running the tests will load the running computer quite a bit?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is already that configuration in the runsettings. Playwright using a lot of resources, I don't know atm. Might be issue on either end.

dkamburov
dkamburov previously approved these changes Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
squash-merge Use squash merge when merging the pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants