Skip to content

Commit

Permalink
add continuous individual test
Browse files Browse the repository at this point in the history
  • Loading branch information
shapiromatron committed Aug 21, 2024
1 parent 538c3da commit e36d386
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/Data/SelectModelType.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ class SelectModelType extends Component {
text="New"
onClick={dataStore.addDataset}
/>
<LabelInput label="New dataset" htmlFor="idFilteredDatasets" />{" "}
<LabelInput label="New dataset" htmlFor="datasetType" />
<SelectInput
id="idFilteredDatasets"
id="datasetType"
onChange={value => dataStore.setModelType(value)}
value={dataStore.model_type}
choices={dataStore.getFilteredDatasetTypes.map(item => {
Expand Down
10 changes: 8 additions & 2 deletions tests/integration/test_integration.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import pytest
from playwright.sync_api import expect

from .common import PlaywrightTestCase


class TestContinuousIntegration(PlaywrightTestCase):
def test_continuous(self):
def _test_continuous(self, option: str):
page = self.page
page.goto(self.url("/"))

Expand All @@ -22,6 +21,7 @@ def test_continuous(self):

# view data tab
page.get_by_role("link", name="Data").click()
page.locator("#datasetType").select_option(option)
page.get_by_role("button", name="New").click()
page.get_by_role("button", name="Load an example dataset").click()

Expand Down Expand Up @@ -71,6 +71,12 @@ def test_continuous(self):
page2.get_by_role("link", name="Logic").click()
expect(page2.get_by_role("cell", name="Decision Logic")).to_be_visible()

def test_continuous_summary(self):
self._test_continuous(option="CS")

def test_continuous_individual(self):
self._test_continuous(option="I")

def test_dichotomous(self):
page = self.page
page.goto(self.url("/"))
Expand Down

0 comments on commit e36d386

Please sign in to comment.