From 1f7a0819fc63415224439ba31f65ecf6a6e33ad6 Mon Sep 17 00:00:00 2001 From: 6d486f49 Date: Sat, 30 May 2026 10:04:12 -0400 Subject: [PATCH] Playwright start --- IGP/IGP.csproj | 1 + .../BuildCalculator/BuildCalculatorPage.razor | 15 - .../Parts/BuildOrderComponent.razor | 12 +- .../Parts/EntityClickViewComponent.razor | 19 +- IGP/Pages/DataTables/DataTablesPage.razor | 12 - IGP/Pages/HarassCalculatorPage.razor | 7 - Model/Entity/Parts/IEntityPartInterface.cs | 5 +- Playwright/.gitignore | 3 + Playwright/debug-tab.js | 38 + Playwright/debug_initial_state.js | 51 + Playwright/debug_qclick.js | 74 + Playwright/debug_tab.js | 59 + Playwright/debug_timeline.js | 69 + Playwright/debug_timeline2.js | 39 + Playwright/debug_timeline3.js | 90 + Playwright/debug_timeline4.js | 64 + Playwright/helpers/website.js | 101 + Playwright/package-lock.json | 76 + Playwright/package.json | 19 + Playwright/pages/base.page.js | 17 + .../pages/buildCalculator/armyComponent.js | 52 + .../pages/buildCalculator/bankComponent.js | 47 + .../buildCalculator/buildChartComponent.js | 35 + .../buildCalculator/buildOrderComponent.js | 15 + .../entityClickViewComponent.js | 33 + .../pages/buildCalculator/filterComponent.js | 35 + .../buildCalculator/highlightsComponent.js | 39 + .../buildCalculator/hotkeyViewerComponent.js | 50 + .../pages/buildCalculator/optionsComponent.js | 68 + .../buildCalculator/timelineComponent.js | 16 + .../pages/buildCalculator/timingComponent.js | 37 + Playwright/pages/buildCalculatorPage.js | 56 + Playwright/pages/database.page.js | 27 + Playwright/pages/databaseSingle.page.js | 28 + Playwright/pages/harassCalculator.page.js | 68 + Playwright/playwright.config.js | 15 + Playwright/shared/navigationBar.js | 19 + Playwright/shared/toastComponent.js | 40 + Playwright/shared/websiteSearchDialog.js | 25 + Playwright/tests/buildCalculator.spec.js | 125 + Playwright/tests/harassCalculator.spec.js | 32 + Playwright/tests/links.spec.js | 28 + Playwright/tests/searchFeatures.spec.js | 54 + Playwright/utils/testReport.js | 77 + README.md | 25 + Services/Immortal/BuildOrderService.cs | 12 +- docs/.obsidian/app.json | 1 + docs/.obsidian/appearance.json | 3 + docs/.obsidian/community-plugins.json | 7 + docs/.obsidian/core-plugins.json | 33 + .../.obsidian/fonts/JetBrainsMono-Regular.ttf | Bin 0 -> 273900 bytes docs/.obsidian/plugins/calendar/data.json | 10 + docs/.obsidian/plugins/calendar/main.js | 4459 ++++ docs/.obsidian/plugins/calendar/manifest.json | 10 + docs/.obsidian/plugins/code-styler/main.js | 20047 ++++++++++++++++ .../plugins/code-styler/manifest.json | 11 + .../code-styler/reference-files/cache.json | 1 + docs/.obsidian/plugins/code-styler/styles.css | 1348 ++ .../plugins/custom-font-loader/data.json | 7 + .../jetbrainsmono-regular_ttf.css | 4 + .../plugins/custom-font-loader/main.js | 357 + .../plugins/custom-font-loader/manifest.json | 10 + .../plugins/kanban-bases-view/main.js | 4140 ++++ .../plugins/kanban-bases-view/manifest.json | 10 + .../plugins/kanban-bases-view/styles.css | 617 + .../plugins/obsidian-note-autocreator/main.js | 3389 +++ .../obsidian-note-autocreator/manifest.json | 10 + .../obsidian-note-autocreator/styles.css | 3 + docs/.obsidian/types.json | 8 + docs/.obsidian/workspace.json | 285 + docs/AI Gen Docs/architecture.md | 32 + docs/AI Gen Docs/components.md | 27 + docs/AI Gen Docs/development.md | 54 + docs/AI Gen Docs/overview.md | 22 + docs/AI Gen Docs/recommendations.md | 49 + docs/AI Gen Docs/services.md | 33 + .../test-accessibility-keyboard-nav.md | 67 + .../test-blazor-hydration-timing.md | 75 + docs/AI Gen Docs/test-mobile-responsive.md | 51 + .../test-multi-context-entity-comparison.md | 53 + docs/AI Gen Docs/test-network-resilience.md | 41 + docs/AI Gen Docs/test-storage-persistence.md | 33 + .../test-toast-timing-interactions.md | 77 + docs/AI Gen Docs/test-visual-regression.md | 33 + docs/Add Co-op objective reference.md | 6 + docs/Add an Ability to Favourite Data.md | 7 + docs/Add some cooldown reference.md | 8 + ...ns in Calculator without pressing Space.md | 6 + .../Auto Build consideration in Calculator.md | 8 + docs/Basic Build Order Sheet.md | 4 + ...'t conflict with Edge or other browsers.md | 6 + docs/Create Automated Tests.md | 5 + docs/Create Mobile Calculator UI.md | 6 + docs/Fix Entity Recursion Error - Parent.md | 5 + docs/Fully Test the Build Calculator.md | 5 + docs/Get AI to Add easy Test Tasks.md | 16 + docs/Improve your SEO.md | 11 + docs/Language Support.md | 5 + ...amples be based on Database Information.md | 4 + docs/Make Tests for the Build Calculator.md | 49 + ...uild Calculator and all it's components.md | 13 + docs/Nice looking map refrence.md | 5 + docs/Plan Calculator.md | 4 + ...rom anywhere in the build calc timeline.md | 5 + ... they don't show under production table.md | 5 + ...pdate the Reference Tables with Telerik.md | 4 + docs/WebAssembly back to Azure.md | 5 + docs/_Tasks Kanban.base | 69 + 108 files changed, 37445 insertions(+), 62 deletions(-) create mode 100644 Playwright/.gitignore create mode 100644 Playwright/debug-tab.js create mode 100644 Playwright/debug_initial_state.js create mode 100644 Playwright/debug_qclick.js create mode 100644 Playwright/debug_tab.js create mode 100644 Playwright/debug_timeline.js create mode 100644 Playwright/debug_timeline2.js create mode 100644 Playwright/debug_timeline3.js create mode 100644 Playwright/debug_timeline4.js create mode 100644 Playwright/helpers/website.js create mode 100644 Playwright/package-lock.json create mode 100644 Playwright/package.json create mode 100644 Playwright/pages/base.page.js create mode 100644 Playwright/pages/buildCalculator/armyComponent.js create mode 100644 Playwright/pages/buildCalculator/bankComponent.js create mode 100644 Playwright/pages/buildCalculator/buildChartComponent.js create mode 100644 Playwright/pages/buildCalculator/buildOrderComponent.js create mode 100644 Playwright/pages/buildCalculator/entityClickViewComponent.js create mode 100644 Playwright/pages/buildCalculator/filterComponent.js create mode 100644 Playwright/pages/buildCalculator/highlightsComponent.js create mode 100644 Playwright/pages/buildCalculator/hotkeyViewerComponent.js create mode 100644 Playwright/pages/buildCalculator/optionsComponent.js create mode 100644 Playwright/pages/buildCalculator/timelineComponent.js create mode 100644 Playwright/pages/buildCalculator/timingComponent.js create mode 100644 Playwright/pages/buildCalculatorPage.js create mode 100644 Playwright/pages/database.page.js create mode 100644 Playwright/pages/databaseSingle.page.js create mode 100644 Playwright/pages/harassCalculator.page.js create mode 100644 Playwright/playwright.config.js create mode 100644 Playwright/shared/navigationBar.js create mode 100644 Playwright/shared/toastComponent.js create mode 100644 Playwright/shared/websiteSearchDialog.js create mode 100644 Playwright/tests/buildCalculator.spec.js create mode 100644 Playwright/tests/harassCalculator.spec.js create mode 100644 Playwright/tests/links.spec.js create mode 100644 Playwright/tests/searchFeatures.spec.js create mode 100644 Playwright/utils/testReport.js create mode 100644 docs/.obsidian/app.json create mode 100644 docs/.obsidian/appearance.json create mode 100644 docs/.obsidian/community-plugins.json create mode 100644 docs/.obsidian/core-plugins.json create mode 100644 docs/.obsidian/fonts/JetBrainsMono-Regular.ttf create mode 100644 docs/.obsidian/plugins/calendar/data.json create mode 100644 docs/.obsidian/plugins/calendar/main.js create mode 100644 docs/.obsidian/plugins/calendar/manifest.json create mode 100644 docs/.obsidian/plugins/code-styler/main.js create mode 100644 docs/.obsidian/plugins/code-styler/manifest.json create mode 100644 docs/.obsidian/plugins/code-styler/reference-files/cache.json create mode 100644 docs/.obsidian/plugins/code-styler/styles.css create mode 100644 docs/.obsidian/plugins/custom-font-loader/data.json create mode 100644 docs/.obsidian/plugins/custom-font-loader/jetbrainsmono-regular_ttf.css create mode 100644 docs/.obsidian/plugins/custom-font-loader/main.js create mode 100644 docs/.obsidian/plugins/custom-font-loader/manifest.json create mode 100644 docs/.obsidian/plugins/kanban-bases-view/main.js create mode 100644 docs/.obsidian/plugins/kanban-bases-view/manifest.json create mode 100644 docs/.obsidian/plugins/kanban-bases-view/styles.css create mode 100644 docs/.obsidian/plugins/obsidian-note-autocreator/main.js create mode 100644 docs/.obsidian/plugins/obsidian-note-autocreator/manifest.json create mode 100644 docs/.obsidian/plugins/obsidian-note-autocreator/styles.css create mode 100644 docs/.obsidian/types.json create mode 100644 docs/.obsidian/workspace.json create mode 100644 docs/AI Gen Docs/architecture.md create mode 100644 docs/AI Gen Docs/components.md create mode 100644 docs/AI Gen Docs/development.md create mode 100644 docs/AI Gen Docs/overview.md create mode 100644 docs/AI Gen Docs/recommendations.md create mode 100644 docs/AI Gen Docs/services.md create mode 100644 docs/AI Gen Docs/test-accessibility-keyboard-nav.md create mode 100644 docs/AI Gen Docs/test-blazor-hydration-timing.md create mode 100644 docs/AI Gen Docs/test-mobile-responsive.md create mode 100644 docs/AI Gen Docs/test-multi-context-entity-comparison.md create mode 100644 docs/AI Gen Docs/test-network-resilience.md create mode 100644 docs/AI Gen Docs/test-storage-persistence.md create mode 100644 docs/AI Gen Docs/test-toast-timing-interactions.md create mode 100644 docs/AI Gen Docs/test-visual-regression.md create mode 100644 docs/Add Co-op objective reference.md create mode 100644 docs/Add an Ability to Favourite Data.md create mode 100644 docs/Add some cooldown reference.md create mode 100644 docs/Allow to Always see Advanced Options in Calculator without pressing Space.md create mode 100644 docs/Auto Build consideration in Calculator.md create mode 100644 docs/Basic Build Order Sheet.md create mode 100644 docs/Change Ctrl + K Hotkey to something that doesn't conflict with Edge or other browsers.md create mode 100644 docs/Create Automated Tests.md create mode 100644 docs/Create Mobile Calculator UI.md create mode 100644 docs/Fix Entity Recursion Error - Parent.md create mode 100644 docs/Fully Test the Build Calculator.md create mode 100644 docs/Get AI to Add easy Test Tasks.md create mode 100644 docs/Improve your SEO.md create mode 100644 docs/Language Support.md create mode 100644 docs/Make Examples be based on Database Information.md create mode 100644 docs/Make Tests for the Build Calculator.md create mode 100644 docs/Make page object pattern structure for the Build Calculator and all it's components.md create mode 100644 docs/Nice looking map refrence.md create mode 100644 docs/Plan Calculator.md create mode 100644 docs/Remove Items from anywhere in the build calc timeline.md create mode 100644 docs/Spells are currently a production item in data. Make the a ability item so they don't show under production table.md create mode 100644 docs/Update the Reference Tables with Telerik.md create mode 100644 docs/WebAssembly back to Azure.md create mode 100644 docs/_Tasks Kanban.base diff --git a/IGP/IGP.csproj b/IGP/IGP.csproj index 91f2ef3..ddd4f0f 100644 --- a/IGP/IGP.csproj +++ b/IGP/IGP.csproj @@ -40,6 +40,7 @@ + diff --git a/IGP/Pages/BuildCalculator/BuildCalculatorPage.razor b/IGP/Pages/BuildCalculator/BuildCalculatorPage.razor index b95042e..3f29f86 100644 --- a/IGP/Pages/BuildCalculator/BuildCalculatorPage.razor +++ b/IGP/Pages/BuildCalculator/BuildCalculatorPage.razor @@ -19,21 +19,6 @@ Build Calculator - - Work In Progress and Not Fully Tested - - Build Calculator hasn't been thoroughly tested. Bugs and inaccurate results assumed. -
- Currently not considering running out of alloy and ether to harvest. -
-
- Build Calculator was built based on a much older version of the game and was only quickly modified for the - June 2025 Playtest version, so the above disclaimer is only more true. -
- Expect even more oddities and invalid data then the above warning implies. -
-
-
diff --git a/IGP/Pages/BuildCalculator/Parts/BuildOrderComponent.razor b/IGP/Pages/BuildCalculator/Parts/BuildOrderComponent.razor index 1e29c20..a58e8bf 100644 --- a/IGP/Pages/BuildCalculator/Parts/BuildOrderComponent.razor +++ b/IGP/Pages/BuildCalculator/Parts/BuildOrderComponent.razor @@ -5,13 +5,17 @@ @implements IDisposable - - + @code { + /** + // TODO: Make this more elegant, and useful. Also, it currently doesn't clear properly + + + */ protected override void OnInitialized() { diff --git a/IGP/Pages/BuildCalculator/Parts/EntityClickViewComponent.razor b/IGP/Pages/BuildCalculator/Parts/EntityClickViewComponent.razor index 3050196..cb8b79a 100644 --- a/IGP/Pages/BuildCalculator/Parts/EntityClickViewComponent.razor +++ b/IGP/Pages/BuildCalculator/Parts/EntityClickViewComponent.razor @@ -1,7 +1,6 @@ @inject IJSRuntime JsRuntime @inject IKeyService KeyService @inject IImmortalSelectionService FilterService -@inject IBuildOrderService BuildOrderService @inject IStorageService StorageService @using Services.Website @implements IDisposable @@ -51,21 +50,6 @@ _viewType = StorageService.GetValue(StorageKeys.IsPlainView) ? EntityViewType.Plain : EntityViewType.Detailed; } - protected override bool ShouldRender() - { -#if DEBUG - JsRuntime.InvokeVoidAsync("console.time", "EntityClickViewComponent"); -#endif - return true; - } - - protected override void OnAfterRender(bool firstRender) - { -#if DEBUG - JsRuntime.InvokeVoidAsync("console.timeEnd", "EntityClickViewComponent"); -#endif - } - private void HandleClick() { var hotkey = KeyService.GetHotkey(); @@ -74,6 +58,8 @@ var faction = FilterService.GetFaction(); var immortal = FilterService.GetImmortal(); + Console.WriteLine(hotkey); + var foundEntity = EntityModel.GetFrom(hotkey!, hotkeyGroup, isHoldSpace, faction, immortal); if (foundEntity != null && _entity != foundEntity) @@ -82,5 +68,4 @@ StateHasChanged(); } } - } \ No newline at end of file diff --git a/IGP/Pages/DataTables/DataTablesPage.razor b/IGP/Pages/DataTables/DataTablesPage.razor index f5ecf65..eaf4326 100644 --- a/IGP/Pages/DataTables/DataTablesPage.razor +++ b/IGP/Pages/DataTables/DataTablesPage.razor @@ -6,14 +6,6 @@ Data Tables - - - Errors Present - - Incomplete feature for easily comparing unit stats. - - - @@ -29,7 +21,6 @@ - @@ -43,10 +34,7 @@ attack belongs to. - - -