chiark / gitweb /
bundles: Go via the a element
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 3 May 2021 17:46:14 +0000 (18:46 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 3 May 2021 18:41:03 +0000 (19:41 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
nwtemplates/bundles-info-pane.tera
wdriver/wdt-bundles.rs

index 7ac88118a2c6dd0c67cd60d61e944ba44ba95b33..df5a3558940f4d5bdbf630f2115f207819489d69 100644 (file)
@@ -4,7 +4,7 @@
      There is NO WARRANTY. -->
 {% for b in bundles %}
 <div class="bundle">
-<a href=""><code class="b_id">{{ b.id }}</code></a>
+<a class="b_link" href=""><code class="b_id">{{ b.id }}</code></a>
 <span class="b_title">{{ b.title }}</span>
 </div>
 {% endfor %}
index 95ed35001ae68ec03045e78826ed4ed680ae3385..48503561247b94e0f8d312d018ab82a1a12d1f46 100644 (file)
@@ -28,7 +28,8 @@ fn tests(UsualSetup { su, alice, ..}: UsualSetup) {
 
     let check = |w: &mut WindowGuard<'_>| Ok::<_,Explode>({
       w.synch()?;
-      let bundle_id = w.find_element(By::ClassName("b_id"))?;
+      let bundle_link = w.find_element(By::ClassName("b_link"))?;
+      let bundle_id = bundle_link.find_element(By::ClassName("b_id"))?;
       let html = bundle_id.inner_html()?;
       assert_eq!(&html, "00000.zip");
     });