Skip to content

Conversation

Ashim-Stha
Copy link
Contributor

@Ashim-Stha Ashim-Stha commented Aug 20, 2025

Description

Rewrite the old Cucumber test from tests/e2e/cucumber/features/shares/internalLink.feature with a new Playwright test at tests/spec/internalLink.spec.ts

Related Issue

#12938

Run test

To run test locally in chromium in headed mode

pnpm test:e2e:playwright --project=chromium --headed

@Ashim-Stha Ashim-Stha self-assigned this Aug 20, 2025
@CLAassistant
Copy link

CLAassistant commented Aug 20, 2025

CLA assistant check
All committers have signed the CLA.

@Ashim-Stha Ashim-Stha force-pushed the replaceCucumberWithPlaywright branch 14 times, most recently from 1facfa0 to 9b2c634 Compare August 25, 2025 10:46
@Ashim-Stha Ashim-Stha marked this pull request as ready for review August 25, 2025 10:56
@saw-jan
Copy link
Member

saw-jan commented Aug 25, 2025

@Ashim-Stha Could you edit the PR title to something like this?
[POC][tests-only] e2e tests with Playwright only

@Ashim-Stha Ashim-Stha changed the title [tests-only][full-ci] Replace cucumber with playwright [POC][tests-only] e2e tests with Playwright only Aug 25, 2025
@Ashim-Stha
Copy link
Contributor Author

@Ashim-Stha Could you edit the PR title to something like this? [POC][tests-only] e2e tests with Playwright only

done 👍

@Ashim-Stha Ashim-Stha force-pushed the replaceCucumberWithPlaywright branch from 9b2c634 to c242bfc Compare August 25, 2025 11:43
@Ashim-Stha Ashim-Stha force-pushed the replaceCucumberWithPlaywright branch 2 times, most recently from f52c40f to 751f68f Compare September 11, 2025 05:44
@Ashim-Stha Ashim-Stha requested a review from saw-jan September 11, 2025 05:45
@saw-jan saw-jan requested a review from LukasHirt September 12, 2025 04:03
@saw-jan
Copy link
Member

saw-jan commented Sep 12, 2025

@LukasHirt Could you review this one and check if this is how we want to have the tests?

@Ashim-Stha Ashim-Stha force-pushed the replaceCucumberWithPlaywright branch 8 times, most recently from 136e5fb to edc5302 Compare September 12, 2025 06:29
@Ashim-Stha Ashim-Stha requested a review from saw-jan September 12, 2025 06:45
Copy link
Contributor

@phil-davis phil-davis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made a few comments related to readability of the test "scenario".

What sort of people do we want to be able to read and comprehend what the test suite is testing?
Do we want non-technical people to be able to put together a test scenario (using existing available steps) that would demonstrate some expected behavior?
Or is the test suite to be used just by technical staff who are doing SW development and test development?

Answers to these questions might help answer what format/framework is best for implementing the test suite.

)
await ui.LogOutUser(actorsEnvironment, 'Alice')

expect(await ui.isAbleToEditFileOrFolder(actorsEnvironment, 'Brian', 'myfolder')).toBeFalsy()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This implements the scenario step:

    Then "Brian" should not be able to edit folder "myfolder"

A technical user who knows coding can read the line of code and work out what is being expected. So the choice of format depends who the "target audience" is for the test suite.

Copy link
Collaborator

@LukasHirt LukasHirt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@Ashim-Stha Ashim-Stha force-pushed the replaceCucumberWithPlaywright branch from edc5302 to f935551 Compare September 16, 2025 09:13
@Ashim-Stha Ashim-Stha force-pushed the replaceCucumberWithPlaywright branch from f935551 to 971cce6 Compare September 16, 2025 09:14
Copy link

@nirajacharya2 nirajacharya2 linked an issue Sep 16, 2025 that may be closed by this pull request
@saw-jan
Copy link
Member

saw-jan commented Sep 18, 2025

@LukasHirt @deyankiteworks Please feel free to merge this if everything is ok from your side

@deyankiteworks deyankiteworks merged commit 62c4b96 into master Sep 19, 2025
4 checks passed
@deyankiteworks deyankiteworks deleted the replaceCucumberWithPlaywright branch September 19, 2025 12:02
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] replace cucumber with playwright
8 participants