fix playwright test for forgejo

This commit is contained in:
ibizaman 2025-06-24 12:26:42 +02:00 committed by Pierre Penninckx
parent 4fbdff8b6d
commit 6947475f2c
2 changed files with 3 additions and 2 deletions

View file

@ -235,7 +235,8 @@
// (vm_test "contracts-secret" ./test/contracts/secret.nix)
));
# Run nix .#playwright -- show-trace $(nix eval .#checks.x86_64-linux.vm_grocy_basic --raw)/trace/0.zip
# To see the traces, run:
# nix run .#playwright -- show-trace $(nix eval .#checks.x86_64-linux.vm_grocy_basic --raw)/trace/0.zip
packages.playwright =
pkgs.callPackage ({ stdenvNoCC, makeWrapper, playwright }: stdenvNoCC.mkDerivation {
name = "playwright";

View file

@ -82,7 +82,7 @@ let
startUrl = "http://${config.test.fqdn}/user/login";
usernameFieldLabelRegex = "Username or email address";
passwordFieldLabelRegex = "Password";
loginButtonNameRegex = "Sign In";
loginButtonNameRegex = "[sS]ign [iI]n";
testLoginWith = [
{ username = "theadmin"; password = adminPassword + "oops"; nextPageExpect = [
"expect(page.get_by_text('Username or password is incorrect.')).to_be_visible()"