From 4a0a23cd56250a91f28830b8be4a97eeddfcaf86 Mon Sep 17 00:00:00 2001 From: Pedro de Oliveira Guedes Date: Thu, 6 Jan 2022 12:46:24 -0300 Subject: [PATCH] Fixing some tests. --- api/chrome/features/steps/steps.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/chrome/features/steps/steps.py b/api/chrome/features/steps/steps.py index ff44bdf..e1e7f8c 100644 --- a/api/chrome/features/steps/steps.py +++ b/api/chrome/features/steps/steps.py @@ -80,7 +80,7 @@ def step_impl(context): # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @given ("the id of a new Google Chrome tab opened in google.com") def setp_impl(context): - context.tab_id = context.client.new() + context.tab_id = context.client.new("https://www.google.com/") @when ("the eval method is called upon the tab id with a JS command") def step_impl(context): @@ -111,7 +111,7 @@ Therefore, there will be no tests for this method, at least for now. # ========================== Chrome.open_tabs () ========================== @given("at least one Google Chrome tab is opened") def step_impl(context): - context.tab_id1 = context.client.new() + context.tab_id1 = context.client.new("https://www.google.com/") context.tab_id2 = context.client.new("https://www.youtube.com") @when("the open_tabs method is called") @@ -136,7 +136,7 @@ def step_impl(context): # ======================== Chrome.find_tab_by_title() ======================== @when("the find_tab_by_title method is called") def step_impl(context): - context.ftbt_return = context.client.find_tab_by_title() + context.ftbt_return = context.client.find_tab_by_title("Google") @then("the id that this method returned must match the id of the tab searched") def step_impl(context):