jmix-projects / jmix-old

DEPRECATED. Use https://github.com/jmix-framework/jmix
16 stars 3 forks source link

Move UiScreenSpec into add-on #427

Closed Flaurite closed 4 years ago

Flaurite commented 4 years ago

Description

UiScreenSpec is available only in cuba module. To write tests with Screen opening in other modules we have to copy this functionality or do some complicated stuff.

To make UiScreenSpec available for all modules we can move it to the separated module and then add it as dependency.


Changes

All functionality for running tests with screens is moved to separated add-on: ui-test-assists.

Add-on coordinates:

io.jmix.ui:jmix-ui-test-assist

Make your base specification extending ScreenSpecification and add ContextConfiguration annotation, for instance:

@ContextConfiguration(classes = [/* configuration classes */])
class MyTestSpecification extends ScreenSpecification {