Skip to content

[WIP] Add EToE tests which is the PW version of E2E #31137

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

Closed
wants to merge 55 commits into from
Closed

Conversation

HaoK
Copy link
Member

@HaoK HaoK commented Mar 22, 2021

Starting point for migrating some of the tests to PW. I copied the E2E project and removed everything I could and copied over the PW infrastructure from BlazorTemplates.

Goals for this initial PR:

  • pick a name for the new playwright version of E2E.Tests (I just did E2E -> EToE as a starting placeholder)
  • refactor whatever shared dependencies out of BlazorTemplates into a shared place so we can start cleanly.
  • Establish the pattern for conversion of selenium tests - playwright (@javiercn can you help explain what you currently did in blazor templates?)

@dotnet/aspnet-blazor-eng for input on naming

@HaoK HaoK changed the base branch from main to haok/pworder March 22, 2021 21:04
@HaoK HaoK added the area-blazor Includes: Blazor, Razor Components label Mar 22, 2021
@@ -1618,6 +1618,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorWinFormsApp", "src\Co
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Http.Abstractions.Microbenchmarks", "src\Http\Http.Abstractions\perf\Microbenchmarks\Microsoft.AspNetCore.Http.Abstractions.Microbenchmarks.csproj", "{3F752B48-2936-4FCA-B0DC-4AB0F788F897}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Components.EToETests", "src\Components\test\EToETest\Microsoft.AspNetCore.Components.EToETests.csproj", "{60B82C36-E613-496D-AD1B-0015DDAEFD96}"
Copy link
Member

Choose a reason for hiding this comment

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

How about PlayweightE2ETests so it's clear how they are different?

Copy link
Member Author

Choose a reason for hiding this comment

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

Gamer in me can't help but think P2W with this particular combination of letters P2W.Tests

Copy link
Member

Choose a reason for hiding this comment

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

Let's not put other product names in test projects. Those things change and become stale. We can call them Components.FunctionalTests or Component.EndToEnd or a similar generic name. In the end, if/when the migration is successful we can delete the old project and name the new project Components.E2ETests again if we want.

Copy link
Member

Choose a reason for hiding this comment

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

Should we make a specific goal of eventually removing the old Components.E2ETests and having the new one take that name? That would make sense to me.

In the meantime, it would be great for the new project to have some name that indicates why it exists. It will be really hard for anyone coming fresh to the repo to understand why we have both E2ETests and EToETests. How about calling the new one E2ETestMigration or similar, with the goal that we eventually replace the old one and rename it?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sounds good, will start a new PR since this has gotten stale, with rebased from main, with E2ETestMigration as the folder, and the csproj will be the same just with an additional Components.Migration.E2ETests.csproj

Base automatically changed from haok/pworder to main March 24, 2021 23:27
@HaoK
Copy link
Member Author

HaoK commented Apr 20, 2021

Replacing with clean rebased version shortly

@HaoK HaoK closed this Apr 20, 2021
@HaoK
Copy link
Member Author

HaoK commented Apr 20, 2021

#31990 is the new PR

@HaoK HaoK deleted the haok/etoe branch July 20, 2021 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants