Skip to content

Commit

Permalink
allow collision test to pass when screen is small
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Jun 2, 2022
1 parent c3ae594 commit b70dec0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions test/gui/blueprint.lua
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,9 @@ function test.name_no_collision()
local name_help_text_pos = {x=name_help_label.frame_body.x1+2,
y=name_help_label.frame_body.y1}
view:onRender()
expect.eq('Set', get_screen_word(name_help_text_pos))
if name_help_label.visible then
expect.eq('Set', get_screen_word(name_help_text_pos))
end
send_keys('LEAVESCREEN') -- cancel ui
end)

Expand All @@ -413,8 +415,10 @@ function test.name_no_collision()
local name_help_text_pos = {x=name_help_label.frame_body.x1+2,
y=name_help_label.frame_body.y1}
view:onRender()
expect.eq('Set', get_screen_word(name_help_text_pos),
'dirname does not conflict with similar filename')
if name_help_label.visible then
expect.eq('Set', get_screen_word(name_help_text_pos),
'dirname does not conflict with similar filename')
end
send_keys('LEAVESCREEN') -- cancel ui
end)
end
Expand Down

0 comments on commit b70dec0

Please sign in to comment.