Skip to content

[tests-only][full-ci] pass multiple data in array to avoid multiple function call in step definition#13571

Open
PrajwolAmatya wants to merge 1 commit intomasterfrom
pw-test/refactor-steps
Open

[tests-only][full-ci] pass multiple data in array to avoid multiple function call in step definition#13571
PrajwolAmatya wants to merge 1 commit intomasterfrom
pw-test/refactor-steps

Conversation

@PrajwolAmatya
Copy link
Contributor

@PrajwolAmatya PrajwolAmatya commented Feb 12, 2026

Description

Refactor step definition so that we only call the function once for one specific step. For instance steps like

And "Alice" shares the following resource using API
       | resource       | recipient | type | role                                | resourceType |
       | folderPublic   | Brian     | user | Can edit with versions and trashbin | folder       |
       | emptyFolder    | Brian     | user | Can edit with versions and trashbin | folder       |
       | testavatar.jpg | Brian     | user | Can edit with versions and trashbin | file         |

we are calling api.userHasSharedResource function 3 times. And there are other similar steps where we call the same function multiple times depending upon the number of data.
This PR addresses this issue.

Related Issue

closes: #13565

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests
  • Documentation
  • Maintenance (e.g. dependency updates or tooling)

@PrajwolAmatya PrajwolAmatya force-pushed the pw-test/refactor-steps branch 2 times, most recently from 1bae76e to a5a979c Compare February 13, 2026 10:39
Signed-off-by: Prajwol Amatya <prajwolamatya11@gmail.com>
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[QA] Refactor playwright test code to pass data in array

2 participants