Skip to content

[feature-request] Send current into Before / After hooks in Data Driven Tests #1243

Closed

Description

@xaota

sample

let accounts = new DataTable(['login', 'password']);
accounts.add(['davert', '123456']);
accounts.add(['admin', '123456']);

Before(async (I, current) => {
  await fetch('/api/createTestAccount', {method: 'post', body: JSON.stringify(current)})
});

Data(accounts).Scenario('Test Login', (I, current) => {
  I.fillField('Username', current.login);
  I.fillField('Password', current.password);
  I.click('Sign In');
});

After(async (I, current) => {
  await fetch('/api/removeTestAccount', {method: 'post', body: JSON.stringify(current)});
});

Activity

  1. self-assigned this
    on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions