Comments (3)
Is there something you don't like about the (admittedly insufficient) existing test suite?
That is executed by a github action on PRs, but can also be run locally as described in the contribution guide
from anvil-extras.
It would be very nice to 'eat our own dog food' and add some UI testing using anvil-test
from anvil-extras.
it's specifically things for client side low level component functionality which would be easier done having access to both the dom and the anvil components.
I don't think that's as easy with anvil-test alone since it focuses on higher level user experience.
e.g.
def __init__(self):
self.base = anvil_extras.Tabs
self.component = anvil_extras.Tabs(tab_titles=["Tab 1", "Tab 2", "Tab 3"])
self.dom_node = anvil.js.get_dom_node(self.component)
def test_constructor(self):
tabs = self.base(tab_titles=["foo"])
self.assertEqual(tabs.tab_titles, ["foo"])
def test_tabs_clicked(self):
with self.assertRaisesEvent('tabs_clicked'):
self.component.trigger('click')
def test_dynamic_color_prop(self):
self.component.foreground = "#eee"
self.assertEqual(self.dom_node.style.getProperty("--fg"), "#eee")
self.assertEqual(#computed style of tabs is actually #eee)
def test_dynamic_tabs(self):
with self.assertRaises(TypeError):
self.component.tabs = 'foo'
...
But happy to be convinced otherwise.
from anvil-extras.
Related Issues (20)
- Make Ignore Columns Not require all Linked Table Names in Serialization
- Adding url_keys to route decorator is making the route stop working at all HOT 12
- Google's address autocomplete breaks anvil-extrass' autocomplete
- [Accelerated Tables][Serialisation] datatable_schema fails to load linked tables
- Fix override of roles when navigation links are clicked HOT 1
- Usage of chipInput in mobile devices HOT 7
- MultiSelect Change Event - Potential Bug
- HashRouting: load_from_cache not working, when changing templates. HOT 5
- Popovers being cut off by top nav bar in material design theme HOT 9
- Anvil_extras Routing library issue "ExternalError: TypeError: Cannot assign to read only property 'in$repr' of object '[object Object]'" HOT 3
- Mulitselect not firing after changing enabled Status via code HOT 1
- AttributeError: 'MultiSelectDropDown' object has no attribute '_menu_shown' HOT 2
- `self.url_dict` not upated after `routing.set_url_hash(redirect=False)` HOT 1
- NotFoundError raised by Autocomplete()._on_hide
- Any interest in adding my native date/time picker component? HOT 1
- Support foreground (and background) property for MultiSelectDropdown HOT 1
- Make Authorisation module more reusable HOT 2
- Make Navigation module aware of Authorisation module HOT 2
- Any way to fix Quill translate problem? HOT 17
- Autocomplete accept list of tuples (<displayed>,<returned>) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anvil-extras.