Skip to content

Commit e83fe9d

Browse files
fix(test): avoid using assert_current_path
Error: ``` Failure: UserTest#test_can_sign_up [test/system/user_test.rb:47]: expected to find text "alice@test.com" in "menu\nMiCarrera\nsearch\ncloud_download\n0 créditos\nA\nBienvenido! Marcá los cursos y exámenes que aprobaste para ver qué materias podés cursar.\nLISTO\nBuilt by \nCedarcode". (However, it was found 1 time including non-visible text.) bin/rails test test/system/user_test.rb:9 ```
1 parent 98a261d commit e83fe9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/system/user_test.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class UserTest < ApplicationSystemTestCase
4141
password_visibility_toggle_test("Confirma tu nueva contraseña")
4242
click_on "Registrarte"
4343

44-
assert_current_path root_path
44+
assert_text "Bienvenido! Te has registrado correctamente."
4545

4646
click_user_menu
4747
assert_text "alice@test.com"

0 commit comments

Comments
 (0)