Skip to content
This repository has been archived by the owner on May 13, 2022. It is now read-only.

Explicit pages import #137

Closed
luciano-renzi opened this issue Nov 1, 2018 · 1 comment
Closed

Explicit pages import #137

luciano-renzi opened this issue Nov 1, 2018 · 1 comment
Assignees
Labels
Milestone

Comments

@luciano-renzi
Copy link
Member

Currently the pages are imported implicitly into a test using a list of page name strings. This negates the use of code completion when using an IDE.

There should be a way to configure Golem to generate tests (from the GUI) using standard Python import statements. With a setting key to override this (keep current behavior).

As an example, a test with explicit page import would look like this:

from projects.my_project.pages import login_page
from projects.my_project.pages import landing_page


def test(data):
    login_page.login('john', '123456')
    landing_page.reticulate_spline()
@luciano-renzi
Copy link
Member Author

0.9.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant