diff --git a/.github/workflows/windows_e2e_tests.yml b/.github/workflows/windows_e2e_tests.yml index c5d6c001..44379f3e 100644 --- a/.github/workflows/windows_e2e_tests.yml +++ b/.github/workflows/windows_e2e_tests.yml @@ -52,7 +52,24 @@ jobs: shell: powershell run: | Import-Module Appx - .\TransactionProcessor.Mobile/bin/Release\net10.0-windows10.0.19041.0\win-x64\AppPackages\TransactionProcessor.Mobile_1.0.0.1_Test\Install.ps1 -Force + $candidatePaths = @( + (Join-Path $env:GITHUB_WORKSPACE "TransactionProcessor.Mobile\AppPackages"), + (Join-Path $env:GITHUB_WORKSPACE "TransactionProcessor.Mobile\bin\Release\net10.0-windows10.0.19041.0\win-x64\AppPackages") + ) + $appPackagesPath = $candidatePaths | Where-Object { Test-Path $_ } | Select-Object -First 1 + if ($null -eq $appPackagesPath) { + throw "Unable to find AppPackages under: $($candidatePaths -join ', ')" + } + $installScript = Get-ChildItem -Path $appPackagesPath -Recurse -Filter Install.ps1 | Select-Object -First 1 + if ($null -ne $installScript) { + & $installScript.FullName -Force + } else { + $msixPackage = Get-ChildItem -Path $appPackagesPath -Recurse -Filter *.msix | Select-Object -First 1 + if ($null -eq $msixPackage) { + throw "Unable to find Install.ps1 or .msix package under $appPackagesPath." + } + Add-AppxPackage -Path $msixPackage.FullName -ForceApplicationShutdown + } - name: Run Windows End To End Tests run: dotnet test TransactionProcessor.Mobile.UiTests/TransactionProcessor.Mobile.UiTests.csproj --filter "Category=PRTest&Category=Windows" --no-restore diff --git a/.github/workflows/windows_navigation_tests.yml b/.github/workflows/windows_navigation_tests.yml index ec29481f..eece6866 100644 --- a/.github/workflows/windows_navigation_tests.yml +++ b/.github/workflows/windows_navigation_tests.yml @@ -48,11 +48,43 @@ jobs: run: | dotnet publish TransactionProcessor.Mobile/TransactionProcessor.Mobile.csproj -c Release -f net10.0-windows10.0.19041.0 /p:AppxPackageSigningEnabled=true /p:PackageCertificateThumbprint="${{ secrets.WINDOWSSIGNINGCERTTHUMBPRINT }}" + - name: Debug AppPackages contents + shell: powershell + run: | + $candidatePaths = @( + (Join-Path $env:GITHUB_WORKSPACE "TransactionProcessor.Mobile\AppPackages"), + (Join-Path $env:GITHUB_WORKSPACE "TransactionProcessor.Mobile\bin\Release\net10.0-windows10.0.19041.0\win-x64\AppPackages") + ) + $appPackagesPath = $candidatePaths | Where-Object { Test-Path $_ } | Select-Object -First 1 + if ($null -eq $appPackagesPath) { + Write-Error "Unable to find AppPackages under: $($candidatePaths -join ', ')" + exit 1 + } + Write-Host "Listing AppPackages from $appPackagesPath" + Get-ChildItem -Path $appPackagesPath -Recurse | Format-List FullName, Length, Mode + - name: Install App shell: powershell run: | Import-Module Appx - .\TransactionProcessor.Mobile/bin/Release\net10.0-windows10.0.19041.0\win-x64\AppPackages\TransactionProcessor.Mobile_1.0.0.1_Test\Install.ps1 -Force + $candidatePaths = @( + (Join-Path $env:GITHUB_WORKSPACE "TransactionProcessor.Mobile\AppPackages"), + (Join-Path $env:GITHUB_WORKSPACE "TransactionProcessor.Mobile\bin\Release\net10.0-windows10.0.19041.0\win-x64\AppPackages") + ) + $appPackagesPath = $candidatePaths | Where-Object { Test-Path $_ } | Select-Object -First 1 + if ($null -eq $appPackagesPath) { + throw "Unable to find AppPackages under: $($candidatePaths -join ', ')" + } + $installScript = Get-ChildItem -Path $appPackagesPath -Recurse -Filter Install.ps1 | Select-Object -First 1 + if ($null -ne $installScript) { + & $installScript.FullName -Force + } else { + $msixPackage = Get-ChildItem -Path $appPackagesPath -Recurse -Filter *.msix | Select-Object -First 1 + if ($null -eq $msixPackage) { + throw "Unable to find Install.ps1 or .msix package under $appPackagesPath." + } + Add-AppxPackage -Path $msixPackage.FullName -ForceApplicationShutdown + } - name: Run Windows Navigation Tests run: dotnet test TransactionProcessor.Mobile.UiTests/TransactionProcessor.Mobile.UiTests.csproj --filter "(Category=PRNavTest)&(Category=Windows)" --no-restore diff --git a/Directory.Packages.props b/Directory.Packages.props new file mode 100644 index 00000000..0b5a68e8 --- /dev/null +++ b/Directory.Packages.props @@ -0,0 +1,51 @@ + + + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/TestCategoryLister/TestCategoryLister.csproj b/TestCategoryLister/TestCategoryLister.csproj index a5958a54..72df9878 100644 --- a/TestCategoryLister/TestCategoryLister.csproj +++ b/TestCategoryLister/TestCategoryLister.csproj @@ -4,6 +4,6 @@ net10.0 - + \ No newline at end of file diff --git a/TransactionProcessor.Mobile.BusinessLogic.Tests/TransactionProcessor.Mobile.BusinessLogic.Tests.csproj b/TransactionProcessor.Mobile.BusinessLogic.Tests/TransactionProcessor.Mobile.BusinessLogic.Tests.csproj index 9eb9e129..b8eb45e5 100644 --- a/TransactionProcessor.Mobile.BusinessLogic.Tests/TransactionProcessor.Mobile.BusinessLogic.Tests.csproj +++ b/TransactionProcessor.Mobile.BusinessLogic.Tests/TransactionProcessor.Mobile.BusinessLogic.Tests.csproj @@ -9,23 +9,23 @@ - - - - - - - - - + + + + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive all - + runtime; build; native; contentfiles; analyzers; buildtransitive all - + all diff --git a/TransactionProcessor.Mobile.BusinessLogic/TransactionProcessor.Mobile.BusinessLogic.csproj b/TransactionProcessor.Mobile.BusinessLogic/TransactionProcessor.Mobile.BusinessLogic.csproj index f5dc5427..8b5ecaf4 100644 --- a/TransactionProcessor.Mobile.BusinessLogic/TransactionProcessor.Mobile.BusinessLogic.csproj +++ b/TransactionProcessor.Mobile.BusinessLogic/TransactionProcessor.Mobile.BusinessLogic.csproj @@ -6,20 +6,20 @@ enable - - - - - - - - - - + + + + + + + + + + all - - - + + + diff --git a/TransactionProcessor.Mobile.BusinessLogic/ViewModels/Reports/ReportsSalesAnalysisPageViewModel.cs b/TransactionProcessor.Mobile.BusinessLogic/ViewModels/Reports/ReportsSalesAnalysisPageViewModel.cs index b08b9a8d..fd59621b 100644 --- a/TransactionProcessor.Mobile.BusinessLogic/ViewModels/Reports/ReportsSalesAnalysisPageViewModel.cs +++ b/TransactionProcessor.Mobile.BusinessLogic/ViewModels/Reports/ReportsSalesAnalysisPageViewModel.cs @@ -134,8 +134,8 @@ public override async Task Initialise(CancellationToken cancellationToken) }, Fill = null, Name = "Balance", - TooltipLabelFormatter = - (chartPoint) => $"{chartPoint.Context.Series.Name}: {chartPoint.PrimaryValue}" + YToolTipLabelFormatter = + (chartPoint) => $"{chartPoint.Context.Series.Name}: {chartPoint.StackedValue}" } }; } diff --git a/TransactionProcessor.Mobile.UITests/TransactionProcessor.Mobile.UITests.csproj b/TransactionProcessor.Mobile.UITests/TransactionProcessor.Mobile.UITests.csproj index 8379eacf..2ef862ac 100644 --- a/TransactionProcessor.Mobile.UITests/TransactionProcessor.Mobile.UITests.csproj +++ b/TransactionProcessor.Mobile.UITests/TransactionProcessor.Mobile.UITests.csproj @@ -9,31 +9,31 @@ - + runtime; build; native; contentfiles; analyzers; buildtransitive all - - - - - - - - - + + + + + + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - - - - - + + + + + + + + + diff --git a/TransactionProcessor.Mobile/Pages/Reports/ReportsBalanceAnalysisPage.xaml b/TransactionProcessor.Mobile/Pages/Reports/ReportsBalanceAnalysisPage.xaml index 26080b07..ff8e8e6d 100644 --- a/TransactionProcessor.Mobile/Pages/Reports/ReportsBalanceAnalysisPage.xaml +++ b/TransactionProcessor.Mobile/Pages/Reports/ReportsBalanceAnalysisPage.xaml @@ -22,12 +22,11 @@ Series="{Binding Series}" YAxes="{Binding YAxes}" XAxes="{Binding XAxes}" - TooltipFindingStrategy="{Binding TooltipFindingStrategy}" TooltipPosition="{Binding TooltipPosition}" HeightRequest="260" HorizontalOptions="FillAndExpand" /> - +