summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorddavison <ddavison@gitlab.com>2019-07-17 17:06:01 -0700
committerddavison <ddavison@gitlab.com>2019-07-17 17:06:01 -0700
commit066229bf785c51a889356ab3e33493b222d8c951 (patch)
treea11cbe39921481512d37f0aa58c39c9ca096357a
parentddf2dcf7fdad69135cee590307773b255d2fe0b5 (diff)
downloadgitlab-ce-docs-qa-replace-act-with-perform.tar.gz
Fix QA documentation to refer to perform methoddocs-qa-replace-act-with-perform
The documentation referred to the .act method This MR changes this to refer to the preferred .perform method
-rw-r--r--doc/development/testing_guide/end_to_end/page_objects.md2
1 files changed, 1 insertions, 1 deletions
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.