From: Ian Jackson Date: Mon, 3 May 2021 17:46:14 +0000 (+0100) Subject: bundles: Go via the a element X-Git-Tag: otter-0.6.0~424 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=e127c4aa3fd2926b6a550cb978f082718055fd89;p=otter.git bundles: Go via the a element Signed-off-by: Ian Jackson --- 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"); });