We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It would be nice to be able to rewrite chain-steps w/ desc config to Promise approach.
desc
Like the following step for example:
{ click : '.b-button[data-ref="addTaskButton"]', desc : 'Clicked Add task button' },
to something like:
await t.click('.b-button[data-ref="addTaskButton"]');
Using the above approach we cannot achieve the same result ..writing the code like this:
await t.click('.b-button[data-ref="addTaskButton"]'); t.pass('Clicked Add task button');
doesn't help in case click() fails since then it does not use the assertion text.
click()
The text was updated successfully, but these errors were encountered:
I might've put that badly. I didn't mean changing just click functionality.
click
Generally speaking we can provide desc to any chain step which allows to write tests like this:
t.it('Undo/Redo should be clear clear after load', (t) => { t.chain( { waitForPropagate : gantt }, { click : '.b-button[data-ref="addTaskButton"]', desc : 'Clicked Add task button' }, { waitForSelector : '.b-badge[data-ref="undoBtn"][data-badge="1"]', desc : 'Undo badge is 1' }, { click : tools.addTaskButton.element }, { waitForSelector : '.b-badge[data-ref="undoBtn"][data-badge="2"]', desc : 'Undo badge is 2' }, { click : tools.undoBtn.element }, { waitForSelector : '.b-badge[data-ref="undoBtn"][data-badge="1"]', desc : 'Undo badge is 1' }, { waitForSelector : '.b-badge[data-ref="redoBtn"][data-badge="1"]', desc : 'Redo badge is 1' }, clickLoadButton, { waitForSelectorNotFound : '.b-badge[data-ref="undoBtn"]', desc : 'Undo badge is hidden' }, { waitForSelectorNotFound : '.b-badge[data-ref="redoBtn"]', desc : 'Redo badge is hidden' } ); });
which is impossible to rewrite to Promise-approach at the moment.
Sorry, something went wrong.
No branches or pull requests
It would be nice to be able to rewrite chain-steps w/
desc
config to Promise approach.Like the following step for example:
to something like:
Using the above approach we cannot achieve the same result ..writing the code like this:
doesn't help in case
click()
fails since then it does not use the assertion text.The text was updated successfully, but these errors were encountered: