diff options
author | Elliot Smith <elliot.smith@intel.com> | 2016-07-12 15:54:56 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-07-19 08:56:45 +0100 |
commit | 644a888ce5a2141f2e6e1c22430e196b65cb1313 (patch) | |
tree | fcbe6cf4b8e57e6819682e5de1ab5bdecccad136 /lib/toaster/toastergui | |
parent | 6648876c91134bda8498b4f8d7ace9147ec0d985 (diff) | |
download | bitbake-contrib-644a888ce5a2141f2e6e1c22430e196b65cb1313.tar.gz |
toaster-tests: add tests for build artifact display on build dashboard
Add tests for display of image, kernel and SDK artifacts on the
build dashboard, checking that the "Images" option in the left-hand
menu and the "Build artifacts" section display correctly for
different types of build.
Also add metadata to elements on the build dashboard so it's clearer
what they represent, and to assist in finding them in the tests.
Add a method to the test helper to make it more convenient to check
whether a single element matching a selector exists.
[YOCTO #8556]
[YOCTO #8563]
[YOCTO #9500]
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: bavery <brian.avery@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/toaster/toastergui')
-rw-r--r-- | lib/toaster/toastergui/templates/basebuildpage.html | 2 | ||||
-rw-r--r-- | lib/toaster/toastergui/templates/builddashboard.html | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/lib/toaster/toastergui/templates/basebuildpage.html b/lib/toaster/toastergui/templates/basebuildpage.html index eb709bbd4..44749bf49 100644 --- a/lib/toaster/toastergui/templates/basebuildpage.html +++ b/lib/toaster/toastergui/templates/basebuildpage.html @@ -63,7 +63,7 @@ <a href="{% url 'builddashboard' build.pk %}">Build summary</a> </li> {% if build.has_images and build.outcome == build.SUCCEEDED %} - <li class="nav-header">Images</li> + <li class="nav-header" data-menu-heading="images">Images</li> {% block nav-target %} {% for t in build.get_sorted_target_list %} {% if t.has_images %} diff --git a/lib/toaster/toastergui/templates/builddashboard.html b/lib/toaster/toastergui/templates/builddashboard.html index 36c28b7d6..bc41e2362 100644 --- a/lib/toaster/toastergui/templates/builddashboard.html +++ b/lib/toaster/toastergui/templates/builddashboard.html @@ -70,7 +70,7 @@ {%if build.outcome == build.SUCCEEDED%} <!-- built images --> {% if hasArtifacts %} - <h2>Build artifacts</h2> + <h2 data-heading="build-artifacts">Build artifacts</h2> {% for target in targets %} {% if target.target.is_image %} <div class="well well-transparent dashboard-section" data-artifacts-for-target="{{target.target.pk}}"> @@ -88,12 +88,12 @@ </dt> <dd> - <a href="{% url 'build_artifact' build.pk 'licensemanifest' target.target.pk %}">License manifest</a> + <a data-link="license-manifest" href="{% url 'build_artifact' build.pk 'licensemanifest' target.target.pk %}">License manifest</a> </dd> {% if target.target.package_manifest_path %} <dd> - <a href="{% url 'build_artifact' build.pk 'packagemanifest' target.target.pk %}">Package manifest</a> + <a data-link="package-manifest" href="{% url 'build_artifact' build.pk 'packagemanifest' target.target.pk %}">Package manifest</a> </dd> {% endif %} </dl> @@ -104,7 +104,7 @@ Image files </dt> <dd> - <ul class="list-unstyled"> + <ul class="list-unstyled" data-links="image-artifacts"> {% for i in target.imageFiles|dictsort:"suffix" %} <li> <a href="{% url 'build_artifact' build.pk 'imagefile' i.id %}"> @@ -119,7 +119,7 @@ Kernel artifacts </dt> <dd> - <ul class="list-unstyled"> + <ul class="list-unstyled" data-links="kernel-artifacts"> {% for artifact in target.target_kernel_artifacts|dictsort:"basename" %} <li> <a href="{% url 'build_artifact' build.id 'targetkernelartifact' artifact.id %}">{{artifact.basename}}</a> @@ -136,7 +136,7 @@ SDK artifacts </dt> <dd> - <ul class="list-unstyled"> + <ul class="list-unstyled" data-links="sdk-artifacts"> {% for artifact in target.target_sdk_artifacts|dictsort:"basename" %} <li> <a href="{% url 'build_artifact' build.id 'targetsdkartifact' artifact.id %}">{{artifact.basename}}</a> |