From patchwork Sat Nov 11 19:17:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Orling X-Patchwork-Id: 34320 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 B0742C4332F for ; Sat, 11 Nov 2023 19:18:26 +0000 (UTC) Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) by mx.groups.io with SMTP id smtpd.web11.2184.1699730300669401554 for ; Sat, 11 Nov 2023 11:18:20 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jQdgq3Su; spf=pass (domain: gmail.com, ip: 209.85.216.46, mailfrom: ticotimo@gmail.com) Received: by mail-pj1-f46.google.com with SMTP id 98e67ed59e1d1-2800f7c8125so3212665a91.1 for ; Sat, 11 Nov 2023 11:18:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699730300; x=1700335100; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ia777dEs0VZ6+vVp+Dl0+Hu2tjfpahYymuppdg/a3S8=; b=jQdgq3SurSa1EDzbWK2Pau2KtmmJz/Ke6ty5PVZ9Of1FyVE8eKYR4FB2x+/M/+9mO0 hJagzAE3Zc9cOoVvfL5muNd/HcW3es2tbM3FYbvnFQhvTHfKdoA1BkYm/VCBCPNMW8sK ePxlIUo8SanhhennHcDonwR3wG/qNmVuq/MqNVeb0PE4k47UBGV4KJbBiO1IS+RiCQTI NZok5IqwCw601oYavXVdS9bkllZPwbIk7U+ziLSdvfbtCKdRv/k+7wfyr9GS9iyHJzRO 6h90XKfK+eyfewH1/Uf4xu5reDoAsonTZwJ3JRvDGG0qHEi5vK9K8rJfS3qntKH702Xe afBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699730300; x=1700335100; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ia777dEs0VZ6+vVp+Dl0+Hu2tjfpahYymuppdg/a3S8=; b=rQV6NxXszf09YMyyzMnuNIhyc5CNGmgbxeSKcedfkT5torfjanS70KNRcUKzcJkp47 otGhQBn4BPjZQ/cIXwqBwAvblDLR0rdYwXtw/orZEYZxWLC3+cuvq10D7PQL+8RNEGbP 0lygfvDvA4zDoydoAMGA+8la8OoVVJCM7MP75P4+qod7HwOccBIb0fYaJA3ZdVKEmTpw O8sPQVrU87cdFcULgxrQu0ZU8J2KBK4stwB2I/btAcDPRIthSS/X9MDCDmxJ2r6JVd3s dX/2iI94RIDdH9gjQZQTqRINDexgcvQGOm73UefYTAMgRB8Ux7Eq1Gbjz88xNpyEDZAi z4Fg== X-Gm-Message-State: AOJu0Yy7RGs+C/v8CIh//CCrZ6fmg5vgYsjNFcdF8FBbXXqFsHNfCo7u GVvbvgomjLYBDHwKnRnAcb0= X-Google-Smtp-Source: AGHT+IENE+17WpL1s+Zds67hVT8pntNiF4AW/YmG44N/WgsSEyG7HYFG1Oxg8Y7W8TxYjq+0f2akeg== X-Received: by 2002:a17:90b:3b48:b0:280:280c:efe3 with SMTP id ot8-20020a17090b3b4800b00280280cefe3mr3831863pjb.14.1699730299683; Sat, 11 Nov 2023 11:18:19 -0800 (PST) Received: from chiron.hsd1.or.comcast.net ([2601:1c0:ca00:cea0:3313:4488:79b1:32e]) by smtp.gmail.com with ESMTPSA id oo3-20020a17090b1c8300b0028328057c67sm1255997pjb.45.2023.11.11.11.18.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Nov 2023 11:18:19 -0800 (PST) From: Tim Orling X-Google-Original-From: Tim Orling To: bitbake-devel@lists.openembedded.org, toaster@lists.yoctoproject.org Cc: Tim Orling Subject: [PATCH 1/3] toaster: use docs for BitBake link on landing page Date: Sat, 11 Nov 2023 11:17:53 -0800 Message-Id: <20231111191754.2322314-1-tim.orling@konsulko.com> X-Mailer: git-send-email 2.34.1 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 ; Sat, 11 Nov 2023 19:18:26 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/toaster/message/5996 With the webpage refresh in November 2023, the old BitBake link https://www.yoctoproject.org/tools-resources/projects/bitbake on the landing page is no longer valid. Point the BitBake link in the landing page to https://docs.yoctoproject.org/bitbake.html Fix the test_landing_page.py test case to test for the new link. Signed-off-by: Tim Orling --- lib/toaster/tests/browser/test_landing_page.py | 2 +- lib/toaster/toastergui/templates/landing.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/toaster/tests/browser/test_landing_page.py b/lib/toaster/tests/browser/test_landing_page.py index 7b425344..e010c59c 100644 --- a/lib/toaster/tests/browser/test_landing_page.py +++ b/lib/toaster/tests/browser/test_landing_page.py @@ -80,7 +80,7 @@ class TestLandingPage(SeleniumTestCase): bitbake = jumbotron.find_element_by_link_text('BitBake') self.assertTrue(bitbake.is_displayed()) bitbake.click() - self.assertTrue("yoctoproject.org/software-item/bitbake" in self.driver.current_url) + self.assertTrue("docs.yoctoproject.org/bitbake.html" in self.driver.current_url) def test_yoctoproject_jumbotron_link_visible_and_clickable(self): """ Test Yocto Project link jumbotron is visible and clickable: """ diff --git a/lib/toaster/toastergui/templates/landing.html b/lib/toaster/toastergui/templates/landing.html index 08b40fb2..22bbed69 100644 --- a/lib/toaster/toastergui/templates/landing.html +++ b/lib/toaster/toastergui/templates/landing.html @@ -12,7 +12,7 @@

This is Toaster

-

A web interface to OpenEmbedded and BitBake, the Yocto Project build system.

+

A web interface to OpenEmbedded and BitBake, the Yocto Project build system.

From patchwork Sat Nov 11 19:17:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Orling X-Patchwork-Id: 34321 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 949FCC4332F for ; Sat, 11 Nov 2023 19:18:56 +0000 (UTC) Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) by mx.groups.io with SMTP id smtpd.web11.2192.1699730336360651090 for ; Sat, 11 Nov 2023 11:18:56 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PVZx+hHO; spf=pass (domain: gmail.com, ip: 209.85.216.42, mailfrom: ticotimo@gmail.com) Received: by mail-pj1-f42.google.com with SMTP id 98e67ed59e1d1-27ff83feb29so2922588a91.3 for ; Sat, 11 Nov 2023 11:18:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699730336; x=1700335136; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=N21WFUXBp4Q4FzSLy/qHaZ4iRrgQn/UAglG1WKi2obw=; b=PVZx+hHOAYKJNQqwjul9P4cyyzL1FNkUvBOqGOBRVzcReAwkpc2+XnK77yDe730y2F FnxN2WGxaOQltqJpTO3yocCcXDlyZKdVHChj0dqjZmVoqkGWDtKrbN9yYze1DnzKeZct NGg5Tk0j/y0/kwh8rUASnT23SBReMCCaq2PbPWZz2HF/wx9hNkgF6xaaxek90GBTjNxm jFqNhNp+KNyG1zDMV90EI0FDVMUQBeomS2hJEbUrU4kKu19m05TUPUtI4fs3wpGoSq7U dIv7Kt6v/r+KyMVnENeJ0oW38fNV6CTZfrVos1GVBQawphqsGjD03zTLrxZQJuNEYSz4 qhUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699730336; x=1700335136; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=N21WFUXBp4Q4FzSLy/qHaZ4iRrgQn/UAglG1WKi2obw=; b=FxDJMzBcg5fLOxX3S9d2UGIRN7BAyKrEuiDtc37tWr+1L2EVTIfPAL5yOTG9GeYISJ 3UilqZ+gnDgwmRibKzYMU496XOD9RYAZSc+nIIBniUk1qosUvcG8Dc/zdlcA6rgzv9sP Vmi6woholcz19VeOjAml6NfY/JRM3Y9nBv+0IyV6ck6NaHrjzUg8UsayM2qVwmj+a0F/ caMEqtsupHaA3g3rhlyOwKW/6fd0dV0qeNBJgCKyPJ4vwFsOqOl/5711W7WLgXfNFcDO lbqsqModyjeLZJL6RRYwBgk4JK67PQCR4u1B2C5p2YI7qSNaKmOMtNtAAmdEegOKcaF7 ikIA== X-Gm-Message-State: AOJu0YwUY24dj84lKS57GvFINpHuVlrijFLMvgH2AITgOWf+dB/STHah kYBbaKagJPVEzUYmA2hXykYiq9c/89wqMg== X-Google-Smtp-Source: AGHT+IGeIZgCvrKQYgBb5sFiKNyr2XkAlgSWhdjIJ+Bg/866aPS6WgjZAsrGgdOAmoSRYhdu5ZRHpg== X-Received: by 2002:a17:90b:3e89:b0:280:74fc:6545 with SMTP id rj9-20020a17090b3e8900b0028074fc6545mr2669128pjb.24.1699730335707; Sat, 11 Nov 2023 11:18:55 -0800 (PST) Received: from chiron.hsd1.or.comcast.net ([2601:1c0:ca00:cea0:3313:4488:79b1:32e]) by smtp.gmail.com with ESMTPSA id oo3-20020a17090b1c8300b0028328057c67sm1255997pjb.45.2023.11.11.11.18.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Nov 2023 11:18:55 -0800 (PST) From: Tim Orling X-Google-Original-From: Tim Orling To: bitbake-devel@lists.openembedded.org, toaster@lists.yoctoproject.org Cc: Tim Orling Subject: [PATCH 2/3] toaster: fix obsolete use of find_element_by_link_text Date: Sat, 11 Nov 2023 11:17:55 -0800 Message-Id: <20231111191754.2322314-2-tim.orling@konsulko.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231111191754.2322314-1-tim.orling@konsulko.com> References: <20231111191754.2322314-1-tim.orling@konsulko.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 ; Sat, 11 Nov 2023 19:18:56 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/toaster/message/5997 The find_element_by_* commands were deprecated in 4.1.4 and have been removed in 4.3.0: https://github.com/SeleniumHQ/selenium/blob/selenium-4.3.0/py/CHANGES#L2 as they relied on the use of APIs only intended for internal use. The recommended method is to use find_elements(By.*) instead. https://www.selenium.dev/documentation/webdriver/elements/finders/#find-elements-from-element Also fix some trailing whitespace errors. Signed-off-by: Tim Orling --- .../tests/browser/test_landing_page.py | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/lib/toaster/tests/browser/test_landing_page.py b/lib/toaster/tests/browser/test_landing_page.py index e010c59c..7ec52a4b 100644 --- a/lib/toaster/tests/browser/test_landing_page.py +++ b/lib/toaster/tests/browser/test_landing_page.py @@ -10,6 +10,7 @@ from django.urls import reverse from django.utils import timezone from tests.browser.selenium_helpers import SeleniumTestCase +from selenium.webdriver.common.by import By from orm.models import Layer, Layer_Version, Project, Build @@ -52,11 +53,11 @@ class TestLandingPage(SeleniumTestCase): # check that the documentation link is visible self.assertTrue(documentation_link.is_displayed()) - + # check browser open new tab toaster manual when clicking on the documentation link self.assertEqual(documentation_link.get_attribute('target') , '_blank') self.assertEqual( - documentation_link.get_attribute('href'), + documentation_link.get_attribute('href'), 'http://docs.yoctoproject.org/toaster-manual/index.html#toaster-user-manual') self.assertTrue("Documentation" in documentation_link.text) @@ -66,7 +67,7 @@ class TestLandingPage(SeleniumTestCase): jumbotron = self.find('.jumbotron') # check OpenEmbedded - openembedded = jumbotron.find_element_by_link_text('OpenEmbedded') + openembedded = jumbotron.find_element(By.LINK_TEXT, 'OpenEmbedded') self.assertTrue(openembedded.is_displayed()) openembedded.click() self.assertTrue("openembedded.org" in self.driver.current_url) @@ -77,7 +78,7 @@ class TestLandingPage(SeleniumTestCase): jumbotron = self.find('.jumbotron') # check BitBake - bitbake = jumbotron.find_element_by_link_text('BitBake') + bitbake = jumbotron.find_element(By.LINK_TEXT, 'BitBake') self.assertTrue(bitbake.is_displayed()) bitbake.click() self.assertTrue("docs.yoctoproject.org/bitbake.html" in self.driver.current_url) @@ -88,7 +89,7 @@ class TestLandingPage(SeleniumTestCase): jumbotron = self.find('.jumbotron') # check Yocto Project - yoctoproject = jumbotron.find_element_by_link_text('Yocto Project') + yoctoproject = jumbotron.find_element(By.LINK_TEXT, 'Yocto Project') self.assertTrue(yoctoproject.is_displayed()) yoctoproject.click() self.assertTrue("yoctoproject.org" in self.driver.current_url) @@ -101,7 +102,7 @@ class TestLandingPage(SeleniumTestCase): jumbotron = self.find('.jumbotron') # check Big magenta button - big_magenta_button = jumbotron.find_element_by_link_text( + big_magenta_button = jumbotron.find_element(By.LINK_TEXT, 'Toaster is ready to capture your command line builds' ) self.assertTrue(big_magenta_button.is_displayed()) @@ -118,7 +119,7 @@ class TestLandingPage(SeleniumTestCase): jumbotron = self.find('.jumbotron') # check Big Blue button - big_blue_button = jumbotron.find_element_by_link_text( + big_blue_button = jumbotron.find_element(By.LINK_TEXT, 'Create your first Toaster project to run manage builds' ) self.assertTrue(big_blue_button.is_displayed()) @@ -131,7 +132,7 @@ class TestLandingPage(SeleniumTestCase): jumbotron = self.find('.jumbotron') # check Read the Toaster manual - toaster_manual = jumbotron.find_element_by_link_text('Read the Toaster manual') + toaster_manual = jumbotron.find_element(By.LINK_TEXT, 'Read the Toaster manual') self.assertTrue(toaster_manual.is_displayed()) toaster_manual.click() self.assertTrue("https://docs.yoctoproject.org/toaster-manual/index.html#toaster-user-manual" in self.driver.current_url) @@ -142,7 +143,7 @@ class TestLandingPage(SeleniumTestCase): jumbotron = self.find('.jumbotron') # check Contribute to Toaster - contribute_to_toaster = jumbotron.find_element_by_link_text('Contribute to Toaster') + contribute_to_toaster = jumbotron.find_element(By.LINK_TEXT, 'Contribute to Toaster') self.assertTrue(contribute_to_toaster.is_displayed()) contribute_to_toaster.click() self.assertTrue("wiki.yoctoproject.org/wiki/contribute_to_toaster" in str(self.driver.current_url).lower()) From patchwork Sat Nov 11 19:17:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Orling X-Patchwork-Id: 34322 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 9AE4DC4167D for ; Sat, 11 Nov 2023 19:19:16 +0000 (UTC) Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) by mx.groups.io with SMTP id smtpd.web10.2098.1699730352523674380 for ; Sat, 11 Nov 2023 11:19:12 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PYxwj9QL; spf=pass (domain: gmail.com, ip: 209.85.215.171, mailfrom: ticotimo@gmail.com) Received: by mail-pg1-f171.google.com with SMTP id 41be03b00d2f7-5bdc18756a3so2031733a12.1 for ; Sat, 11 Nov 2023 11:19:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699730352; x=1700335152; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6lcimKX0lS1WF0t4vmyNpoJBPBwPFbiVJoafNRCkItU=; b=PYxwj9QLIflO40thqbbqHYZxmxB8BhbmNPdrwOQJO0ZOvNpSe2ca2m4e+95Y10CL77 rkbfbFpmhHcYq3QyMpwb6cBRPQ+XP0i9sygyJTlgKjCxMYzcRAUKldI0aJrkxyhSo0ct oj56eYxM25Gub2EfXMdb6YXduuU+WBrU8slnxHUX2mWLu59doyizmV35R9Obj6FLaGbs BeqlJDTY3o4y/3WsUolNebmVFy0jMGc/7anAG+RcdI0PpPxY64tDsy8zmejtvDqpnhIl paIeePVhSlNBSJfB4HY+/NNIHrIHNCmhM4oHwU2VE5HpxvBD0Jj03u0K1TRXAP2cADMg AWKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699730352; x=1700335152; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6lcimKX0lS1WF0t4vmyNpoJBPBwPFbiVJoafNRCkItU=; b=np0IO1WBGhR1gToBB49oLKbYAVsua4aQHNwMMA0GQZRYr/17MEuZ6ou4zqbnv5vyAF NwpBYadKErmzOc+iUUxllEGLfN/qDPPz9fitl9lhkE39hYKf40F48X23SRmVbErcfRlc fvHyKujrmKgGJ9w28/vklHCkIQn2Gpxuv0LfG717ITegmgv4DXDNazK6GvXgsSyrdf/+ tCUh5NSjV3pGvDPP7FCZkNhRyqRYeWwGoPRQB98iqPYcudPOXnrsqs41sscoAd00C0Cx IZwTA6mem3rUqzRtlifQW6v0g4jh1szeGY827cO4RKU3AlyHuQYD5Q1FZ9m9P3w+PmLR 0/+A== X-Gm-Message-State: AOJu0YwlMLMriRd96RYA+BnV6WH4Cg0MQHJ8/YhelLXLQE9srqof5tq8 wpQU96JA8N0iaE65rvtDrF0= X-Google-Smtp-Source: AGHT+IE4wn0dduHk9jh0oi30DBv/UbfPAa5ULhifkpMjcEfjQ1Dq0xRK8fBiCJDaVvQS8TG5MxWvDw== X-Received: by 2002:a17:90b:350d:b0:280:f534:6b9c with SMTP id ls13-20020a17090b350d00b00280f5346b9cmr2069697pjb.21.1699730351904; Sat, 11 Nov 2023 11:19:11 -0800 (PST) Received: from chiron.hsd1.or.comcast.net ([2601:1c0:ca00:cea0:3313:4488:79b1:32e]) by smtp.gmail.com with ESMTPSA id oo3-20020a17090b1c8300b0028328057c67sm1255997pjb.45.2023.11.11.11.19.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Nov 2023 11:19:11 -0800 (PST) From: Tim Orling X-Google-Original-From: Tim Orling To: bitbake-devel@lists.openembedded.org, toaster@lists.yoctoproject.org Cc: Tim Orling Subject: [PATCH 3/3] toaster: test_create_new_project typos, whitespace Date: Sat, 11 Nov 2023 11:17:57 -0800 Message-Id: <20231111191754.2322314-3-tim.orling@konsulko.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231111191754.2322314-1-tim.orling@konsulko.com> References: <20231111191754.2322314-1-tim.orling@konsulko.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 ; Sat, 11 Nov 2023 19:19:16 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/toaster/message/5998 * Cleanup an extraneous # at the end of the hash bang line. * Cleanup some trailing whitespace errors. * Fix typo inf dunfull -> dunfell. Signed-off-by: Tim Orling --- .../tests/functional/test_create_new_project.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/toaster/tests/functional/test_create_new_project.py b/lib/toaster/tests/functional/test_create_new_project.py index a211d8b7..051709b4 100644 --- a/lib/toaster/tests/functional/test_create_new_project.py +++ b/lib/toaster/tests/functional/test_create_new_project.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python3 # +#! /usr/bin/env python3 # BitBake Toaster UI tests implementation # # Copyright (C) 2023 Savoir-faire Linux @@ -49,7 +49,7 @@ class TestCreateNewProject(SeleniumFunctionalTestCase): element = self.wait_until_visible('#project-created-notification') self.assertTrue( - self.element_exists('#project-created-notification'), + self.element_exists('#project-created-notification'), f"Project:{project_name} creation notification not shown" ) self.assertTrue( @@ -57,7 +57,7 @@ class TestCreateNewProject(SeleniumFunctionalTestCase): f"New project name:{project_name} not in new project notification" ) self.assertTrue( - Project.objects.filter(name=project_name).count(), + Project.objects.filter(name=project_name).count(), f"New project:{project_name} not found in database" ) @@ -101,7 +101,7 @@ class TestCreateNewProject(SeleniumFunctionalTestCase): True, ) - def test_create_new_project_dunfull(self): + def test_create_new_project_dunfell(self): """ Test create new project using: - Project Name: Any string - Release: Yocto Project 3.1 "Dunfell" (option value: 5) @@ -116,7 +116,7 @@ class TestCreateNewProject(SeleniumFunctionalTestCase): release_title, False, ) - + def test_create_new_project_local(self): """ Test create new project using: - Project Name: Any string