uprawnienia do stacji i usuwanie firm
This commit is contained in:
@@ -252,3 +252,14 @@ def test_company_settings_show_station_access_and_favorite_pagination(tmp_path):
|
||||
assert 'favorite-pagination' in html
|
||||
assert 'Zapisz ulubione' in html
|
||||
assert 'Usuń firmę' in html
|
||||
|
||||
def test_admin_stations_without_company_shows_company_picker(tmp_path):
|
||||
app = make_app(tmp_path, "stations-picker.db")
|
||||
client = app.test_client()
|
||||
client.post('/login', data={'email':'admin@example.com','password':'admin123!'})
|
||||
response = client.get('/stations')
|
||||
html = response.get_data(as_text=True)
|
||||
assert response.status_code == 200
|
||||
assert 'Wybierz firmę' in html
|
||||
assert 'name="company_id"' in html
|
||||
assert 'Przejdź do konfiguracji' in html
|
||||
|
||||
Reference in New Issue
Block a user