Skip to content

Commit

Permalink
increase timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
laurasootes committed Aug 23, 2024
1 parent ce38ea9 commit f38fd09
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/test_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def test_text_page(page: Page):
# Movie sentiment example
page.locator("label").filter(has_text="Use an example").locator("div").nth(1).click()
page.get_by_text("Movie sentiment").click()
expect(page.get_by_text("Select a method to continue")).to_be_visible()
expect(page.get_by_text("Select a method to continue")).to_be_visible(timeout=50_000)

page.locator('label').filter(has_text='RISE').locator('span').click()
page.locator('label').filter(has_text='LIME').locator('span').click()
Expand Down Expand Up @@ -148,13 +148,13 @@ def test_image_page(page: Page):
page.locator("label").filter(has_text="Use an example").locator("div").nth(1).click()
page.get_by_text("Hand-written digit recognition").click()

expect(page.get_by_text('Select a method to continue')).to_be_visible()
expect(page.get_by_text('Select a method to continue')).to_be_visible(timeout=100_000)

page.locator('label').filter(has_text='RISE').locator('span').click()
page.locator('label').filter(has_text='KernelSHAP').locator('span').click()
page.locator('label').filter(has_text='LIME').locator('span').click()
page.get_by_test_id("stNumberInput-StepUp").click()
page.get_by_text('Running...').wait_for(state='detached', timeout=45_000)
page.get_by_text('Running...').wait_for(state='detached', timeout=50_000)

for selector in (
page.get_by_role('heading', name='RISE').get_by_text('RISE'),
Expand Down Expand Up @@ -188,7 +188,7 @@ def test_timeseries_page(page: Page):

expect(page).to_have_title('Time_series')

expect(page.get_by_text("Select which input type to")).to_be_visible()
expect(page.get_by_text("Select which input type to")).to_be_visible(timeout=100_000)

page.locator("label").filter(has_text="Use an example").locator("div").nth(1).click()
expect(page.get_by_text("Select an example in the left")).to_be_visible()
Expand All @@ -197,7 +197,7 @@ def test_timeseries_page(page: Page):

# Test weather example
page.locator("label").filter(has_text="Weather").locator("div").nth(1).click()
expect(page.get_by_text("Select a method to continue")).to_be_visible()
expect(page.get_by_text("Select a method to continue")).to_be_visible(timeout=100_000)

page.locator('label').filter(has_text='LIME').locator('span').click()
page.locator('label').filter(has_text='RISE').locator('span').click()
Expand All @@ -220,7 +220,7 @@ def test_timeseries_page(page: Page):

# Test FRB example
page.locator("label").filter(has_text="FRB").locator("div").nth(1).click()
expect(page.get_by_text("Select a method to continue")).to_be_visible()
expect(page.get_by_text("Select a method to continue")).to_be_visible(timeout=100_000)

page.locator('label').filter(has_text='RISE').locator('span').click()

Expand Down Expand Up @@ -254,7 +254,7 @@ def test_tabular_page(page: Page):

expect(page).to_have_title('Tabular')

expect(page.get_by_text("Select which input type to")).to_be_visible(timeout=20_000)
expect(page.get_by_text("Select which input type to")).to_be_visible(timeout=100_000)

page.locator("label").filter(has_text="Use an example").locator("div").nth(1).click()

Expand Down

0 comments on commit f38fd09

Please sign in to comment.