Skip to content

Commit

Permalink
Merge pull request #814 from dianna-ai/dashboard-test-failing
Browse files Browse the repository at this point in the history
Dashboard test failing
  • Loading branch information
laurasootes committed Jul 4, 2024
2 parents 8e4ed63 + e94b96b commit b9faca7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions dianna/dashboard/_shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ def get_base64_of_bin_file(png_file):

def build_markup_for_logo(
png_file,
background_position='50% 10%',
margin_top='10%',
background_position='10% 10%',
margin_top='0%',
image_width='60%',
image_height='',
padding_top='70px'
):
binary_string = get_base64_of_bin_file(png_file)
return f"""
Expand All @@ -38,6 +39,7 @@ def build_markup_for_logo(
background-position: {background_position};
margin-top: {margin_top};
background-size: {image_width} {image_height};
padding-top: {padding_top};
}}
</style>
"""
Expand Down
6 changes: 3 additions & 3 deletions tests/test_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def test_text_page(page: Page):

page.get_by_text('Running...').wait_for(state='detached')

expect(page).to_have_title('Text · Streamlit')
expect(page).to_have_title('Text')

selector = page.get_by_text(
'Add your input data in the left panel to continue')
Expand Down Expand Up @@ -132,7 +132,7 @@ def test_image_page(page: Page):

page.get_by_text('Running...').wait_for(state='detached')

expect(page).to_have_title('Images · Streamlit')
expect(page).to_have_title('Images')

expect(
page.get_by_text('Add your input data in the left panel to continue')
Expand Down Expand Up @@ -173,7 +173,7 @@ def test_timeseries_page(page: Page):

page.get_by_text('Running...').wait_for(state='detached')

expect(page).to_have_title('Time_series · Streamlit')
expect(page).to_have_title('Time_series')

expect(
page.get_by_text('Add your input data in the left panel to continue')
Expand Down

0 comments on commit b9faca7

Please sign in to comment.