Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/pullrequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,17 @@ jobs:
- name: Restore Nuget Packages
run: dotnet restore EstateManagementUI.sln --source ${{ secrets.PUBLICFEEDURL }} --source ${{ secrets.PRIVATEFEED_URL }}

- name: Build Integration Tests
run: dotnet build EstateManagementUI.IntegrationTests/EstateManagementUI.IntegrationTests.csproj --configuration Debug --no-restore

- name: Install Playwright Chromium
run: pwsh EstateManagementUI.IntegrationTests/bin/Debug/net10.0/playwright.ps1 install --with-deps chromium

- name: Run Integration Tests (Chrome)
env:
Browser: Chrome
IsCI: true
run: dotnet test "EstateManagementUI.IntegrationTests\EstateManagementUI.IntegrationTests.csproj" # --filter Category=PRTest
run: dotnet test "EstateManagementUI.IntegrationTests\EstateManagementUI.IntegrationTests.csproj" --configuration Debug --no-build --settings .runsettings # --filter Category=PRTest

- name: Upload Playwright screenshots on failure
uses: actions/upload-artifact@v4.4.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,10 @@ public void MerchantSchedule_ReadOnlyMode_DisablesEditingControls()
}
});

_fakeNavigationManager.NavigateTo($"/merchants/{merchantId}/schedule?readOnly=true");

var cut = RenderComponent<Schedule>(parameters => parameters
.Add(p => p.MerchantId, merchantId)
.Add(p => p.ReadOnly, true));
.Add(p => p.MerchantId, merchantId));
cut.WaitForState(() => !cut.Markup.Contains("animate-spin"), TimeSpan.FromSeconds(5));

cut.Markup.ShouldContain("Selected Year Schedule");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public partial class Schedule
public Guid MerchantId { get; set; }

[Parameter]
//[SupplyParameterFromQuery(Name = "readOnly")]
[SupplyParameterFromQuery(Name = "readOnly")]
public Boolean ReadOnly { get; set; }

private readonly DateTime today = DateTime.Today;
Expand Down
Loading
Loading