From patchwork Fri Jan 5 14:22:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alassane Yattara X-Patchwork-Id: 37389 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 71BB3C3DA6E for ; Fri, 5 Jan 2024 14:22:36 +0000 (UTC) Received: from mail.savoirfairelinux.com (mail.savoirfairelinux.com [208.88.110.44]) by mx.groups.io with SMTP id smtpd.web10.24457.1704464547220519408 for ; Fri, 05 Jan 2024 06:22:27 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@savoirfairelinux.com header.s=DFC430D2-D198-11EC-948E-34200CB392D2 header.b=wvxyBuLL; spf=pass (domain: savoirfairelinux.com, ip: 208.88.110.44, mailfrom: alassane.yattara@savoirfairelinux.com) Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id 8F17B9C0490 for ; Fri, 5 Jan 2024 09:22:26 -0500 (EST) Received: from mail.savoirfairelinux.com ([127.0.0.1]) by localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavis, port 10032) with ESMTP id k4zDg_Oym8wl; Fri, 5 Jan 2024 09:22:26 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id 4288A9C36BF; Fri, 5 Jan 2024 09:22:26 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.savoirfairelinux.com 4288A9C36BF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=savoirfairelinux.com; s=DFC430D2-D198-11EC-948E-34200CB392D2; t=1704464546; bh=aRvGit+uCsedASZQbwgQKoVmmSUwBtAEJlW9TaYMzjw=; h=From:To:Date:Message-Id:MIME-Version; b=wvxyBuLLVzFFdO9XzLPH6lcW88AACExE9ujufkoISiE0I0eBt0goAL7AiA5MA+BWB T2jwx1gPjkmtBZB1jDDanXamGZeAZjQZX0W4Q5QsJ7oHYeDNZVTnkU1h8K4dSVxfAW HaHK3iTGfPsOay2iYm2ye9FPTwN3glznNBS488aSi+hUAt8NAfaE9HMZeaLxxYiZuw LdS+WiqIhyX24Spg3Rt0knrPdRbBGMCjCs3JWtMMUuyyBTKRoDPTkWhXX34cm3n1J6 JmbO0QDoMP68x+K8xtZvIWFDeRE0cXQaGvw80g/EvKR5onILrA3bq0nzFWPPOtC9w5 7c15lFXdU5evA== X-Virus-Scanned: amavis at mail.savoirfairelinux.com Received: from mail.savoirfairelinux.com ([127.0.0.1]) by localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavis, port 10026) with ESMTP id uKhY2Np_6S5H; Fri, 5 Jan 2024 09:22:26 -0500 (EST) Received: from jedi.. (unknown [196.127.183.75]) by mail.savoirfairelinux.com (Postfix) with ESMTPSA id 8545D9C0490; Fri, 5 Jan 2024 09:22:25 -0500 (EST) From: Alassane Yattara To: toaster@lists.yoctoproject.org Cc: Alassane Yattara Subject: [PATCH 3/3] toaster/test: Delay driver first action on create new project page Date: Fri, 5 Jan 2024 15:22:18 +0100 Message-Id: <20240105142218.542729-3-alassane.yattara@savoirfairelinux.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240105142218.542729-1-alassane.yattara@savoirfairelinux.com> References: <20240105142218.542729-1-alassane.yattara@savoirfairelinux.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 05 Jan 2024 14:22:36 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/toaster/message/6128 Wait for element visible on create new project page Signed-off-by: Alassane Yattara --- lib/toaster/tests/browser/test_new_project_page.py | 1 + lib/toaster/tests/functional/test_create_new_project.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/toaster/tests/browser/test_new_project_page.py b/lib/toaster/tests/browser/test_new_project_page.py index 0c33c44f..70b55f3c 100644 --- a/lib/toaster/tests/browser/test_new_project_page.py +++ b/lib/toaster/tests/browser/test_new_project_page.py @@ -47,6 +47,7 @@ class TestNewProjectPage(SeleniumTestCase): url = reverse('newproject') self.get(url) + self.wait_until_visible('#new-project-name', poll=3) self.enter_text('#new-project-name', project_name) select = Select(self.find('#projectversion')) diff --git a/lib/toaster/tests/functional/test_create_new_project.py b/lib/toaster/tests/functional/test_create_new_project.py index 9f880107..94d90459 100644 --- a/lib/toaster/tests/functional/test_create_new_project.py +++ b/lib/toaster/tests/functional/test_create_new_project.py @@ -32,6 +32,7 @@ class TestCreateNewProject(SeleniumFunctionalTestCase): - Merge Toaster settings: True or False """ self.get(reverse('newproject')) + self.wait_until_visible('#new-project-name', poll=3) self.driver.find_element(By.ID, "new-project-name").send_keys(project_name) @@ -111,7 +112,7 @@ class TestCreateNewProject(SeleniumFunctionalTestCase): """ release = '5' release_title = 'Yocto Project 3.1 "Dunfell"' - project_name = 'projectdunfull' + project_name = 'projectdunfell' self._create_test_new_project( project_name, release,