Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tzatziki Front] CSS Selector Referential #261

Open
1 task
alexandrepa opened this issue Mar 29, 2024 · 0 comments
Open
1 task

[Tzatziki Front] CSS Selector Referential #261

alexandrepa opened this issue Mar 29, 2024 · 0 comments

Comments

@alexandrepa
Copy link
Collaborator

alexandrepa commented Mar 29, 2024

In a lot of scenario, you want to check on the same type of html element across multiple tests.
Those css selectors are some times really complex and really not readable if present in a lot of tests.

The idea is to offer the possibility to specify those 'constant css selectors' in a parameter file that can be used directly in Gherkins syntax.

For example, in src/test/resources/css_const.yml :

save-button: "//button[contains(@class,'MuiButton-root') and @aria-label='Save']"

We can directly use it in feature test :

we perform a CLICK on save-button

We can also imagine some specific css_const yaml file that can override global const for specific features.

Maybe also add the possibility to use variable in constant :

mui-button: "//button[contains(@class,'MuiButton-root') and @aria-label=%1]"
we perform a CLICK on click-button('Save')

Tasks

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

No branches or pull requests

1 participant