diff --git a/scoop-viewer.py b/scoop-viewer.py index 0ebf9e1..661344c 100644 --- a/scoop-viewer.py +++ b/scoop-viewer.py @@ -34,6 +34,8 @@ def __init__(self, *args, **kw): self.Bind(wx.EVT_CLOSE, self.on_exit) self.Center() + self.SetMinSize((600,300)) + # start webapp self.webapp = FlaskThread(create_app('testing' if TEST else 'release')) self.webapp.start() diff --git a/tests/test.py b/tests/test.py index 48f87a3..8d377f9 100644 --- a/tests/test.py +++ b/tests/test.py @@ -66,7 +66,7 @@ def test_install(self): wait = ui.WebDriverWait(driver,10) wait.until(lambda driver: "Loading" not in driver.page_source) - elem = driver.find_element_by_css_selector("#app > div > div > div > div.col-sm-9 > div > div > div:nth-child(1) > div.col-sm-2.text-right > button") + elem = driver.find_element_by_css_selector("#app > div > div > div > main.col-sm-9 > div > div > div:nth-child(1) > div.col-sm-2.text-right > button") elem.click() wait.until(lambda driver: "Installed" in driver.page_source) assert "Installed" in driver.page_source diff --git a/webapp/frontend/app.jsx b/webapp/frontend/app.jsx index 08921a8..f59a4bf 100644 --- a/webapp/frontend/app.jsx +++ b/webapp/frontend/app.jsx @@ -2,7 +2,7 @@ import React from 'react'; import ReactDOM from 'react-dom'; import BucketsList from './components/buckets-list'; import BucketContainer from './components/bucket-container'; -import Menu from './components/menu'; +import Header from './components/header'; class App extends React.Component { constructor(props) { @@ -29,15 +29,15 @@ class App extends React.Component { render() { return (