You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
step("Check field and value via table <table>",
async function (table) {
table.entries(function(entry) {
checkName(driver,entry["value"],entry["field"]);
});
}
);
In a scenario I like to use it as followed:
* Check field and value via table
| field | value |
|----|----|
| name | test |
| description | Description |
If values differ from expected value the step does not give an error, but gives a green check. I tried several tricks, changing to sync functions, use try/catch statements, used .catch functions, but none worked. Differing values are accepted with the test.
Discussed in #2199
Originally posted by ademant January 28, 2022
According to your description (https://docs.gauge.org/writing-specifications.html?os=macos&language=javascript&ide=vscode#step-implementations) I wrote following step definition to check all input fields on a site:
In a scenario I like to use it as followed:
If values differ from expected value the step does not give an error, but gives a green check. I tried several tricks, changing to sync functions, use try/catch statements, used .catch functions, but none worked. Differing values are accepted with the test.
Environment:
Ubuntu Impish
Gauge 1.4.3
html-report 4.1.4
js 2.4.0
json-report 0.3.6
The text was updated successfully, but these errors were encountered: