test: workspace import and validation testcase (TC-969) (#8349)

* test cases for workspace import and validation TC-969, jira: https://usebruno.atlassian.net/browse/BRU-3575

* incorporated comments, moved findWorkspaceDirByName function to helpers.ts, fixed all the comments

* modified as per comment provided , removed css locators , used playwright inbuilt methods , handled timeout

* Created file structure as per comment provided, added tc-id , resolved code-rabbit review

* incorporated comments removed commented line, removed timeouts, modified package.json added package in dev dependencies

* changed const l to locators for better readbility

* - Reorganized test helpers: split title-bar locators into title-bar.ts and
  import-workspace flow into workspace/import-workspace.ts for reuse
- Replaced brittle .bruno-modal-card/CSS locators with stable role/testid/label
  based locators
- Added a data-testid for the Import Workspace modal and removed the redundant one
- Cleaned up unnecessary comments
- Updated package-lock.json

* minor changes

* minor changes

* addressed comments

* addressed comments for variable naming

* minor changes
This commit is contained in:
mohit-bruno
2026-06-26 16:57:02 +05:30
committed by GitHub
parent 0a3ee95310
commit 33e8f5ca4a
8 changed files with 207 additions and 6 deletions

View File

@@ -0,0 +1,7 @@
{
"preferences": {
"general": {
"defaultLocation": "{{wsLocation}}"
}
}
}