Skip to content

e2e(FR-759): fix create test code#3442

Merged
graphite-app[bot] merged 1 commit into
mainfrom
feat_FR-636_/create-test-code
Apr 4, 2025
Merged

e2e(FR-759): fix create test code#3442
graphite-app[bot] merged 1 commit into
mainfrom
feat_FR-636_/create-test-code

Conversation

@agatha197
Copy link
Copy Markdown
Contributor

@agatha197 agatha197 commented Apr 2, 2025

resolves #3450 (FR-759)

Note

This PR only handles creation.

Update folder creation test and add data-testid attributes

This PR updates the folder creation test in e2e/test-util.ts to work with the new UI components. The changes include:

  1. Removing the 'wd' (Delete) permission option as it's no longer supported
  2. Updating the folder creation workflow to use the "Create Folder" button
  3. Adding data-testid attributes to radio buttons in FolderCreateModal for better test targeting
  4. Updating the folder verification process to work with the new UI components

Checklist:

  • Documentation
  • Minium required manager version
  • Specific setting for review (eg., KB link, endpoint or how to setup)
  • Minimum requirements to check during review
  • Test case(s) to demonstrate the difference of before/after

Copy link
Copy Markdown
Contributor Author

agatha197 commented Apr 2, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • flow:merge-queue - adds this PR to the back of the merge queue
  • flow:hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has required the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 2, 2025

Coverage report for ./react

St.
Category Percentage Covered / Total
🔴 Statements 4.32% 408/9446
🔴 Branches 3.69% 240/6512
🔴 Functions 2.62% 79/3016
🔴 Lines 4.26% 393/9235

Test suite run success

124 tests passing in 14 suites.

Report generated by 🧪jest coverage report action from 8fea3fc

@ironAiken2 ironAiken2 force-pushed the feat_FR-636_/create-test-code branch from 882f933 to 550d41a Compare April 2, 2025 07:35
@agatha197 agatha197 force-pushed the feat_FR-636_/create-test-code branch from 550d41a to 6a482b3 Compare April 2, 2025 07:45
@agatha197 agatha197 changed the title feat(FR-636): fix create test code feat(FR-759): fix create test code Apr 2, 2025
@agatha197 agatha197 changed the title feat(FR-759): fix create test code e2e(FR-759): fix create test code Apr 2, 2025
@ironAiken2 ironAiken2 force-pushed the feat_FR-636_/create-test-code branch from 6a482b3 to 550d41a Compare April 2, 2025 08:19
@agatha197 agatha197 force-pushed the feat_FR-636_/create-test-code branch from 550d41a to 6a482b3 Compare April 2, 2025 08:43
@ironAiken2 ironAiken2 force-pushed the feat_FR-636_/create-test-code branch from 6a482b3 to 550d41a Compare April 2, 2025 08:55
@agatha197 agatha197 force-pushed the feat_FR-636_/create-test-code branch from 550d41a to 6154199 Compare April 2, 2025 09:33
@ironAiken2 ironAiken2 force-pushed the feat_FR-636_/create-test-code branch from 6154199 to de1b5ba Compare April 4, 2025 04:18
Copy link
Copy Markdown
Contributor

@ironAiken2 ironAiken2 left a comment

Choose a reason for hiding this comment

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

LGTM

Comments don't need to be edited, just acknowledged.

Comment thread e2e/test-util.ts Outdated
@agatha197 agatha197 force-pushed the feat_FR-636_/create-test-code branch 2 times, most recently from 4254a5f to 23e06c2 Compare April 4, 2025 05:27
@graphite-app
Copy link
Copy Markdown

graphite-app Bot commented Apr 4, 2025

Merge activity

resolves #3450 (FR-759)

>[!NOTE]
> This PR only handles creation.

## Update folder creation test and add data-testid attributes

This PR updates the folder creation test in `e2e/test-util.ts` to work with the new UI components. The changes include:

1. Removing the 'wd' (Delete) permission option as it's no longer supported
2. Updating the folder creation workflow to use the "Create Folder" button
3. Adding data-testid attributes to radio buttons in FolderCreateModal for better test targeting
4. Updating the folder verification process to work with the new UI components

**Checklist:**

- [ ] Documentation
- [ ] Minium required manager version
- [ ] Specific setting for review (eg., KB link, endpoint or how to setup)
- [ ] Minimum requirements to check during review
- [ ] Test case(s) to demonstrate the difference of before/after
@graphite-app graphite-app Bot force-pushed the feat_FR-636_/create-test-code branch from 23e06c2 to 8fea3fc Compare April 4, 2025 09:29
@graphite-app graphite-app Bot merged commit 8fea3fc into main Apr 4, 2025
8 checks passed
@graphite-app graphite-app Bot deleted the feat_FR-636_/create-test-code branch April 4, 2025 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M 30~100 LoC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor vfolder test codes

2 participants