use testty::assertion;
use testty::region::Region;
use crate::common;
use crate::common::FeatureTest;
#[test]
fn projects_page_shows_cwd() {
FeatureTest::new("projects_cwd")
.with_git()
.zola(
"Project dashboard",
"See project activity and switch between registered projects.",
90,
)
.run(
|scenario| {
scenario
.compose(&common::wait_for_agentty_startup())
.viewing_pause_ms(3000)
.capture_labeled("projects", "Projects page with registered project")
},
|frame, _report| {
let full = Region::full(frame.cols(), frame.rows());
assertion::assert_text_in_region(frame, "Activity Heatmap", &full);
assertion::assert_text_in_region(frame, "Branch", &full);
assertion::assert_text_in_region(frame, "Sessions", &full);
assertion::assert_text_in_region(frame, "Last Opened", &full);
assertion::assert_text_in_region(frame, "Work Pace", &full);
assertion::assert_not_visible(frame, "Version");
assertion::assert_not_visible(frame, "Agentty is an ADE");
assertion::assert_text_in_region(frame, "Active", &full);
assertion::assert_text_in_region(frame, "test-project", &full);
},
)
.expect("feature test failed");
}