From e127c4aa3fd2926b6a550cb978f082718055fd89 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 3 May 2021 18:46:14 +0100 Subject: [PATCH] bundles: Go via the a element Signed-off-by: Ian Jackson --- nwtemplates/bundles-info-pane.tera | 2 +- wdriver/wdt-bundles.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/nwtemplates/bundles-info-pane.tera b/nwtemplates/bundles-info-pane.tera index 7ac88118..df5a3558 100644 --- a/nwtemplates/bundles-info-pane.tera +++ b/nwtemplates/bundles-info-pane.tera @@ -4,7 +4,7 @@ There is NO WARRANTY. --> {% for b in bundles %}
-{{ b.id }} +{{ b.id }} {{ b.title }}
{% endfor %} diff --git a/wdriver/wdt-bundles.rs b/wdriver/wdt-bundles.rs index 95ed3500..48503561 100644 --- a/wdriver/wdt-bundles.rs +++ b/wdriver/wdt-bundles.rs @@ -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"); }); -- 2.30.2