From 914b39ff5ccf7fe69342f37cd19641a53296d321 Mon Sep 17 00:00:00 2001 From: Rasmus Kjellberg <2277443+kjellberg@users.noreply.github.com> Date: Sat, 3 Aug 2024 23:44:43 +0200 Subject: [PATCH] test: system tests for sign in and onboarding --- config/credentials/test.key | 1 + config/credentials/test.yml.enc | 1 + {lib/kiqr/test => test}/system/users/onboarding_test.rb | 2 +- {lib/kiqr/test/system => test/system/users}/signin_test.rb | 0 4 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 config/credentials/test.key create mode 100644 config/credentials/test.yml.enc rename {lib/kiqr/test => test}/system/users/onboarding_test.rb (96%) rename {lib/kiqr/test/system => test/system/users}/signin_test.rb (100%) diff --git a/config/credentials/test.key b/config/credentials/test.key new file mode 100644 index 0000000..6f003ab --- /dev/null +++ b/config/credentials/test.key @@ -0,0 +1 @@ +aecc9f0ffc88c629a51ee97520c76963 \ No newline at end of file diff --git a/config/credentials/test.yml.enc b/config/credentials/test.yml.enc new file mode 100644 index 0000000..0526e49 --- /dev/null +++ b/config/credentials/test.yml.enc @@ -0,0 +1 @@ +nl6YcBTnI/xYrRDaLXfnCNI8HV9AhUXELHeFfAZ7A7StirCmjsNU1RN64n0XHs9nwaANuWrVpuEmyw1nSkpKBkkaOTY/OFNIjua7gULz43Z0u+yuSxNDXVD1REVWmtKfAioQUWy564MbLNDcbic8zlJJsv3zgEN5cNe6/nLBDov8aG9LFyJg948ZO5QBj2N41dZl5MjesyPIPfFpYtzEwNdrGlHxYtGmmAcl9nRIMBAN6T+26RAkQoxIDPwOk+N384Wxisc5AvenRj+GCLgCZoC9pbNdWYnnZck/yxB8/rA9slCdmTrPxsFTdP2O8ho6LLe23HthKzqVkEwgNXUTiDHeGV76Z83u27tNBclGjxuCtE8GZZsNmq8onexj2PLxy8VlZ4iQhxPu9k7cPEm7t+te476FvSWwpSJUyq3H1+L7OOdMhhVYEEjie8Ue+vmifiZKbxDGMBIEi9/tY3yNmLdHBT/JnXr3AegJIS5+UHh4J5Cl8naTWYrXU2E7/o8x8Hl2Rr4uWXSpuKPIdd0cqzayITl+mDrXfEH0OE/n4WcMYWn5fAnf90AfFgSZ32+WufkisKl7E1cWWDOFpTh+16bz1v7clAazhv9oKmCOOko=--MHfJClNqfFA2siBd--fWeUh7gKNWGNnxnxulvNZQ== \ No newline at end of file diff --git a/lib/kiqr/test/system/users/onboarding_test.rb b/test/system/users/onboarding_test.rb similarity index 96% rename from lib/kiqr/test/system/users/onboarding_test.rb rename to test/system/users/onboarding_test.rb index 5a5ff9b..40eb12c 100644 --- a/lib/kiqr/test/system/users/onboarding_test.rb +++ b/test/system/users/onboarding_test.rb @@ -29,7 +29,7 @@ class OnboardingTest < ApplicationSystemTestCase # Fill the personal account setup form fill_in "user[personal_account_attributes][name]", with: "Sven Bertilsson" - click_on "commit" + click_on I18n.t("users.onboarding.new.submit") # Should be redirected to dashboard after successfully signing up. assert_current_path dashboard_path diff --git a/lib/kiqr/test/system/signin_test.rb b/test/system/users/signin_test.rb similarity index 100% rename from lib/kiqr/test/system/signin_test.rb rename to test/system/users/signin_test.rb