fix playwright test for forgejo
This commit is contained in:
parent
4fbdff8b6d
commit
6947475f2c
2 changed files with 3 additions and 2 deletions
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -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()"
|
||||
|
|
|
|||
Loading…
Reference in a new issue