Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Loading the same image a second time makes views black

未关闭
#787 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
typescript

调研方向

从以 ../pageobjects/volview.page 导入的 VolView 页面对象和提供的 Image Reload Bug 测试开始,尤其关注 downloadProstateSample() 和 waitForViews()。运行复现并比较第一次和第二次 layout-container 截图;当加载前列腺样本两次后视图仍保持渲染状态,且两项视觉检查都低于阈值时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

This test reproduced it

import { volViewPage } from '../pageobjects/volview.page';

describe('Image Reload Bug', () => {
  it('should properly render when loading the same image twice', async () => {
    await volViewPage.open();

    // First click on prostate sample
    await volViewPage.downloadProstateSample();
    await volViewPage.waitForViews();

    const layoutContainer = await $('.layout-container');
    const firstLoadResult = await browser.checkElement(
      layoutContainer,
      'first_load_rendering'
    );

    const THRESHOLD = 11;
    expect(firstLoadResult).toBeLessThan(THRESHOLD);

    // Second click on prostate sample
    // Need to reopen the samples panel first since it closes after selection
    // Look for the Sample Data expansion panel title and click it
    const sampleDataPanelTitle = await $('span=Sample Data').parentElement();
    await sampleDataPanelTitle.click();

    // Wait for the samples list to be visible
    await browser.waitUntil(
      async () => {
        const samplesList = await volViewPage.samplesList;
        return samplesList.isDisplayed();
      },
      {
        timeout: 5000,
        timeoutMsg: 'Expected samples list to be visible after reopening panel',
      }
    );

    // Click prostate sample again
    await volViewPage.downloadProstateSample();

    await volViewPage.waitForViews();

    await browser.pause(2000);

    const secondLoadResult = await browser.checkElement(
      layoutContainer,
      'second_load_rendering'
    );

    expect(secondLoadResult).toBeLessThan(THRESHOLD);
  });
});

主要语言
TypeScript
星标
303
派生
102
平均合并
2 天 4 小时
30 天内合并 PR
19

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Kitware/VolView 的其他 Issue

查看 Kitware/VolView 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。