From 066229bf785c51a889356ab3e33493b222d8c951 Mon Sep 17 00:00:00 2001 From: ddavison Date: Wed, 17 Jul 2019 17:06:01 -0700 Subject: Fix QA documentation to refer to perform method The documentation referred to the .act method This MR changes this to refer to the preferred .perform method --- doc/development/testing_guide/end_to_end/page_objects.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/development') diff --git a/doc/development/testing_guide/end_to_end/page_objects.md b/doc/development/testing_guide/end_to_end/page_objects.md index 29ad49403fe..52957d1a1ab 100644 --- a/doc/development/testing_guide/end_to_end/page_objects.md +++ b/doc/development/testing_guide/end_to_end/page_objects.md @@ -27,7 +27,7 @@ When someone later changes `t.text_field :login` in the view associated with this page to `t.text_field :username` it will generate a different field identifier, what would effectively break all tests. -Because we are using `Page::Main::Login.act { sign_in_using_credentials }` +Because we are using `Page::Main::Login.perform(&:sign_in_using_credentials)` everywhere, when we want to sign into GitLab, the page object is the single source of truth, and we will need to update `fill_in :user_login` to `fill_in :user_username` only in a one place. -- cgit v1.2.1