Граф коммитов

2042 Коммитов

Автор SHA1 Сообщение Дата
Lawrence Win 99479c5a45
Overhaul Tests + Errors for Checkbox (deprecated) and CheckboxV1 (#2464)
* Redid deprecated Button tests

* Overhaul avatar tests

* Overhaul Callout tests

* Overhaul checkbox deprecated tests

* Overhaul CheckboxV1 tests

* Remove un-needed overrided method for Callout tests

* Change files

* Address comments and nits

* Missed some changes

* Re-did some of the checkbox page object methods

* More nits

* Address comments, add comments to funcs

* Nits fixed

* Fix errors not displaying for waiting methods on specs

* More consistency across individual test names

* Align test names for checkbox windows spec

* Typo fix

* Remove instances of '->' in test labels

* Remove instances of '->' in test names

* Reduce scope of PR

* Test names follow '{action}. {expectation}' format

* Re-enable checkbox functional tests for windows

* Change files

* Change accessibilityRole test names

* Adjust unset accessibilityRole test names

* Change .toBeTrue() calls to .toBeTruthy()

* Remove optional errorMsg param in waiter methods

* Removed the optional errors for real this time

* Rephrase accessibilityRole test

* Fix build error
2023-01-25 10:19:56 -08:00
Lawrence Win ff11fb0c2b
Fix build failing on radiogroup android tests (#2548)
* Fix build failing on radiogroup android tests

* Change files

* Change files
2023-01-24 16:49:30 -08:00
Lawrence Win f4c332065f
Improve Error Messages + Refactor RadioGroupV1 + Radio E2E Tests (#2514)
* Refactor spec + pageobject using new methods

* Write better errors, remove optional error params

* Change names of tests

* Correcting e2e test minor errors

* Change files

* Rephrase test names, fix nits

* Fixing double negatives
2023-01-24 11:57:13 -08:00
Ankita Raj ec1f0db70e
Android Avatar - Presence Activity Ring (#2526)
* tokensUpdate

* TypesAndTESTER

* styleUpdates

* Change files

* moreChnages

* moreChnages

* staleChanges

* reviewfeedbacks

Co-authored-by: Ankita Raj <ankraj@microsoft.com>
2023-01-23 23:01:53 +05:30
Ayush Singh 59844a6c45
[Shimmer] Update animations and Tokenize (#2524)
* Separate shimmer tokens into file

* Add android tokens

* Fix shimmer animation

* Change files

* Shimmer fixes, snapshot test & android tester changes

* Fix depcheck for shimmer

* Update snaps and examples

* Separate shimmer tokens into file for win32

* E2E tests for Android Shimmer

* Change files

* Made elements required for win32 as well
2023-01-23 14:13:02 +05:30
Rohan Prasad 837bc67051
[Switch] Fix initial page load animation (#2535)
* initial anim fix : controller comp issue

* switch initial animation fix

* Change files
2023-01-23 11:29:42 +05:30
UI-Fabric-RN-Bot f11c020bec 📦 applying package updates ***NO_CI*** 2023-01-20 21:49:21 +00:00
Adam Gleitman deddda487f
Move text documentation (#2533)
* Move Text part of typography docs to Text README

* Change files

* Fix Markdown link

* Add reference to SPEC.md

Co-authored-by: Adam Gleitman <adgleitm@microsoft.com>
2023-01-20 13:15:29 -08:00
UI-Fabric-RN-Bot 46e27f2c4a 📦 applying package updates ***NO_CI*** 2023-01-20 19:02:20 +00:00
lyzhan7 60e16b9f69
Rename Tokens Test -> Color Tokens Test (#2519)
### Platforms Impacted
- [x] iOS
- [x] macOS
- [x] win32 (Office)
- [x] windows
- [x] android

### Description of changes

As part of the iOS color tokens work, we will want to add a test page showing all of the global + alias colors we have.
The existing tokens test is already showing all the alias color tokens, so planning to reuse this page. 
Not many functional changes in this test - just renaming everything to be specific to color tokens, since we have separate tests for spacing, stroke width, corner radius.

Broke up changes by commit - should be easier to review that way

Future work:
- Will be changing the layout to be able to suit mobile a bit better (right now a lot of the long token names are getting truncated - see screenshots below
- Planning to add global tokens to the page - there will be a lot more, with 100 greys and 49 x 12 shared global colors
- Known issue - there are some slight inconsistencies between the naming conventions for each of the tokens pages (ex. Color vs. ColorTokens vs ColorToken). I'm also considering renaming the pages to be "Tokens: Color" or something so that all the tokens pages are in the same place. 

### Verification

CI will confirm that e2e tests still pass.
Checked that on the iOS and macOS testers, the token test has been renamed to color token

| | Before                                       | After                                      |
| - |----------------------------------------------|--------------------------------------------|
| iOS | ![Simulator Screen Shot - iPhone 14 Pro - 2023-01-13 at 09 56 36](https://user-images.githubusercontent.com/78454019/212388107-f5e0ffdf-05e9-4921-bf96-28c289a338be.png) | ![Simulator Screen Shot - iPhone 14 Pro - 2023-01-13 at 09 28 12](https://user-images.githubusercontent.com/78454019/212387137-ca228e75-b80b-495b-bd59-119ecce6bee4.png) |
| macOS | <img width="904" alt="Screenshot 2023-01-13 at 9 56 57 AM" src="https://user-images.githubusercontent.com/78454019/212388167-9029d9fc-d979-44c4-b5c3-6a4b4da8d7f6.png"> | <img width="1007" alt="Screenshot 2023-01-13 at 9 52 00 AM" src="https://user-images.githubusercontent.com/78454019/212387276-a3af7490-6023-4880-bacc-e6c26335a555.png"> |

### Pull request checklist

This PR has considered (when applicable):
- [ ] Automated Tests
- [ ] Documentation and examples
- [ ] Keyboard Accessibility
- [ ] Voiceover
- [ ] Internationalization and Right-to-left Layouts
2023-01-20 18:52:46 +00:00
lenahong 8a0759e04b
[Spinner V1] Define spinner props and slots (#2532)
* define spinner props and slots

* remove unnecessary comments

* Change files

* change package name

* update lock file with new package

* Change files

* remove change file with outdated package name

* add text package dep

* add missing dep
2023-01-20 10:27:54 -08:00
UI-Fabric-RN-Bot 47b1b11c43 📦 applying package updates ***NO_CI*** 2023-01-20 18:06:47 +00:00
lyzhan7 c1e32c4ac9
Update all design-tokens packages to 0.42.0 (#2534)
* Update all design-tokens packages to 0.42.0

* Change files
2023-01-20 09:31:45 -08:00
UI-Fabric-RN-Bot b293011048 📦 applying package updates ***NO_CI*** 2023-01-20 04:45:05 +00:00
Ayush Singh 124829284f
[E2E Tests] Expand Android tests (#2511)
* Added E2 test section scroll

* Change button android tests to V1

* Expand button android tests

* Clean BasePage

* Fix CheckboxV1 tests

* Remove extra fns added while merging

* Android functional tests added

* Test on big screen

* Optimise imports

* Replace toBeTrue with toBeTruthy

* Remove extra sections for button test on Android

* Resolve comments
2023-01-20 09:42:44 +05:30
UI-Fabric-RN-Bot e7d4908a7a 📦 applying package updates ***NO_CI*** 2023-01-20 01:45:17 +00:00
warren-ms 8e5bba552d
Add external svg icon packages test page (#2529)
* Add test page as a playground for various icon packages available on the internet.

FontAwesome is used in a pretty large percentage of all websites and has a rnsvg package of their font icons.

Microsofts fluentui-system-icons are svg icons meant for use with web react. They use SVGR to do the conversion process for web react but SVGR can also do the conversion for react-native-svg. I'm currently working on publishing a rnsvg package from my personal github fork. Some more advanced features will not be available like css styling since RNSVG does not readily support this. The icons themselves will be available though.

* Move fluentui icon dependency higher

* yarn lock

* Change files
2023-01-19 17:09:14 -08:00
Lawrence Win 287147ff03
Improve Error Messages + Refactor Switch E2E Tests (#2516)
* Refactor switch test + pageobject

* Change switch test names

* Change files

* Fix e2etest logic errors

* Address comments

* Rephrase accessibilityRole test
2023-01-19 10:18:13 -08:00
UI-Fabric-RN-Bot a902928c88 📦 applying package updates ***NO_CI*** 2023-01-18 22:36:16 +00:00
Gulnaz Sayed 6aa333e06f
Fixed Horizontal-Stacked RadioGroup Padding (#2509)
* fixed horizontal-stacked padding

* fixed size

* removed left padding and fixed alignment

* Change files

* updated snapshots
2023-01-18 17:08:13 -05:00
UI-Fabric-RN-Bot d5f5c7f979 📦 applying package updates ***NO_CI*** 2023-01-18 19:59:45 +00:00
Mike Schreiber 099c16c70f
Fix incorrect docs in iOS `fluent-tester` README (#2525)
* Fix incorrect docs in iOS `fluent-tester` README

* Change files
2023-01-18 11:26:50 -08:00
UI-Fabric-RN-Bot 1a75027aa7 📦 applying package updates ***NO_CI*** 2023-01-18 19:14:24 +00:00
Gulnaz Sayed 989ae06a27
RadioGroup Narrator Selection State Bug Fix (#2461)
* disabled arrow keys on native side

* working keyboarding minus controlled group

* working except controlled

* removed comments

* updated comment for focus

* Change files

* fixed win32 files

* fixed PR comments with circular navigation working

* removed explicitly setting radiogroup context values

* removed redundant focus set

* call onChange only when arrow key is pressed

* added invoked check

* updated comment:

* removed comment

* fixed controlled radiogroup and populating values and enabledValues arrays

* prettier

* commenting out jest test

* commented import

* updated snapshots

* combined useEffects

* created enum

* added if statement for DirectionalArrowKeys

* improved comments

* more improvements to comments

* updated snapshots

* check for RTL

* fixed RTL
2023-01-18 13:46:55 -05:00
UI-Fabric-RN-Bot b6e5e192e6 📦 applying package updates ***NO_CI*** 2023-01-18 01:55:12 +00:00
lyzhan7 f7626f6eb1
Add iOS shared color tokens (error, status, and presence) (#2520)
* Update ios design tokens package

* Add shared colors to AliasColorTokens and mapPipelineToTheme

* Bump iOS design tokens pages again

* Change files

* Add android todos and section title
2023-01-17 17:25:45 -08:00
UI-Fabric-RN-Bot 28d52db699 📦 applying package updates ***NO_CI*** 2023-01-17 22:09:42 +00:00
chiuam 350c6980ed
macOS: Update Menu font (#2521) 2023-01-17 16:22:42 -05:00
UI-Fabric-RN-Bot 5e5158243c 📦 applying package updates ***NO_CI*** 2023-01-15 14:58:56 +00:00
dependabot[bot] 65fc2e42b7
Bump prettier from 2.8.1 to 2.8.2 (#2499)
* Bump prettier from 2.8.1 to 2.8.2

Bumps [prettier](https://github.com/prettier/prettier) from 2.8.1 to 2.8.2.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.8.1...2.8.2)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Apply prettier

* Change files

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ruriko Araki <ruaraki@microsoft.com>
2023-01-15 05:51:35 -08:00
UI-Fabric-RN-Bot b2ca4d1643 📦 applying package updates ***NO_CI*** 2023-01-14 17:43:18 +00:00
Ayush Singh 8d3c5ab137
[E2E Tests] Remove testPage fn overrides, add pageButtonName fn (#2493)
* Remove need to override testPage, add pageButtonName fn

* Change files

* Update readme
2023-01-14 22:31:23 +05:30
UI-Fabric-RN-Bot cd58a5c9f0 📦 applying package updates ***NO_CI*** 2023-01-12 20:09:58 +00:00
Gulnaz Sayed f038ccbdfa
RadioGroup Adding Re-Render Depth 2 Jest Test (#2503)
* checking depth 2 test

* Change files

* remove old test and comment
2023-01-12 11:14:00 -08:00
UI-Fabric-RN-Bot 465012d667 📦 applying package updates ***NO_CI*** 2023-01-11 14:59:31 +00:00
chiuam c4cc101a87
macOS: Update MenuDivider margin (#2510) 2023-01-11 09:33:38 -05:00
UI-Fabric-RN-Bot b763a82da4 📦 applying package updates ***NO_CI*** 2023-01-10 21:36:52 +00:00
chiuam c69888e157
Fix MenuDividerTokens import (#2508) 2023-01-10 16:06:37 -05:00
UI-Fabric-RN-Bot 833897007b 📦 applying package updates ***NO_CI*** 2023-01-10 20:17:18 +00:00
lyzhan7 bd23a4ac5d
Set up iOS alias color tokens (#2481)
### Platforms Impacted
- [x] iOS
- [ ] macOS
- [ ] win32 (Office)
- [ ] windows
- [ ] android

### Description of changes

Set up iOS alias color tokens in FURN (just neutral and brand colors for now; shared colors will be done in a future PR), so the tokens specified in updated Fluent2 designs can be accessed through the theme.

1. The pipeline output is retrieved by getTokens.ios.ts
   - Also moved apple-theme/getiOSTokens.ts to theme-tokens/getTokens.ios.ts, as per https://github.com/microsoft/fluentui-react-native/issues/2190. Slightly unrelated but also recombined the existing android/windows getTokens/getShadowTokens files - they were separated to make android token integration more simple but since that work is complete, should be fine to recombine them and have less files 
3. The output gets mapped in an AliasColorTokens object through mapPipelineToTheme
   - The AliasColorTokens object was updated to include some new mobile tokens
   - The existing mapPipelineToTheme method in the mapPipelineToTheme.ios.ts file was copied from the original mapPipelineToTheme.ts file. Updated it to match designs - for this file reviewing commit by commit should make the changes more clear
4. The AliasColorTokens object gets added to the iOS color palette in paletteFromAppleColors  by createiOSColorAliasTokens

Out of scope for this PR:
1. Shared colors (ex. dangerbackground1) - there's been some questions raised about the definitions for these tokens so they haven't been added to the design-tokens package yet
2. Moving all createAliasTokens files from platform-specific themes into the theme-tokens folder - this seemed to have been planned for all the platforms but none of them do this yet. Planning to do this in a future PR

### Verification

Initial verification since the actual tokens aren't part of FURN yet - copied some tokens into the IOS alias-tokens files in node_modules, and checked that they were part of the final iOS palette.

No visual changes otherwise. Will add these tokens to the Notification component in a future PR for additional verification.

### Pull request checklist

This PR has considered (when applicable):
- [ ] Automated Tests
- [ ] Documentation and examples
- [ ] Keyboard Accessibility
- [ ] Voiceover
- [ ] Internationalization and Right-to-left Layouts
2023-01-10 19:07:20 +00:00
UI-Fabric-RN-Bot 15e7ff1871 📦 applying package updates ***NO_CI*** 2023-01-10 18:57:30 +00:00
lyzhan7 1653ac2a4a
Change apple theme jest config platform from iOS -> macOS (#2502)
* Update jest config platform iOS -> macOS

* macOS not macOs

* Comment out createAppleTheme test + update snapshot

* Change files

* Fix createAppleTest - make sure AccessibilityInfo module is not mocked
2023-01-10 10:18:44 -08:00
Lawrence Win e07b3a18f5
Refactor MenuButton tests and add more informative errors (#2479)
* Refactor MenuButton test

* Refactor MenuButtonExperimental tests

* Remove instances of '->' in test names

* Experimental MenuButton test name changes

* Change files

* Remove optional param for waiter

* Change .toBeTrue() -> .toBeTruthy()
2023-01-10 10:18:05 -08:00
UI-Fabric-RN-Bot 7670dfbe1d 📦 applying package updates ***NO_CI*** 2023-01-10 17:55:08 +00:00
Lawrence Win 0704bb48dc
Refactor RadioGroup (legacy) tests and add better errors (#2480)
* Change spec test names

* Refactor RadioGroup spec and PageObject code

* Adjust spec names

* Change files

* Change errorMsg param to be required

* Change .toBeTruthy -> .toBeTrue where needed

* Change .toBeTrue() -> .toBeTruthy()
2023-01-10 09:28:28 -08:00
UI-Fabric-RN-Bot 64f721e355 📦 applying package updates ***NO_CI*** 2023-01-10 06:54:59 +00:00
Ayush Singh 99d342be0c
[Radiogroup] Tokenize RadioGroup / Rename RadioSize Token (#2454)
* Added Android token values

* Add ripple on RG

* Fix rippleRadius token

* Clean up code

* Change files

* Fix radio behaviour

* Fixed disabled prop missing

* Android tester changes

* Resolved comments

* Finish merge

* Resolve comments

* Update screenshots

* Updated ripple documentation

* Added RadioGroup Tokens for Android

* Change files

* Update specs for button and checkbox

* Tester updates

* Snapshot update
2023-01-10 11:47:51 +05:30
UI-Fabric-RN-Bot 287d6d3bc5 📦 applying package updates ***NO_CI*** 2023-01-10 06:10:57 +00:00
Rohan Prasad a7e8c44b2a
[Switch] Add examples and update spec (#2495)
### Platforms Impacted
- [ ] iOS
- [ ] macOS
- [ ] win32 (Office)
- [ ] windows
- [ ] android

### Description of changes
 This updates documentation/examples for Switch. 

### Verification
Visually verification of spec.md file. 

### Pull request checklist

This PR has considered (when applicable):
- [ ] Automated Tests
- [x] Documentation and examples
- [ ] Keyboard Accessibility
- [ ] Voiceover
- [ ] Internationalization and Right-to-left Layouts
2023-01-10 05:45:27 +00:00
UI-Fabric-RN-Bot 24eebc707c 📦 applying package updates ***NO_CI*** 2023-01-10 05:10:09 +00:00
Rohan Prasad 2ffccb4003
[Switch] Disable state a11y fix (#2494)
### Platforms Impacted
- [x] iOS
- [ ] macOS
- [ ] win32 (Office)
- [ ] windows
- [x] android

### Description of changes
This PR targets to fix the a11y issue where keyboard navigation also goes into disabled state switch which shouldn't happen. 
This fixes it for mobile platform - Android and iOS. 

This was already working on win32, hence verified that it doesn't break it and working as before. 

### Verification

Visually verified on Android, tested on win32 as well, it's working as before. 


| Before                                       | After                                      |
|----------------------------------------------|--------------------------------------------|
| [Screen Recording (2).webm](https://user-images.githubusercontent.com/30728574/211253264-09dd856e-998c-4b9e-b2f1-a89a3ebfa623.webm) | [Screen Recording (1).webm](https://user-images.githubusercontent.com/30728574/211253237-e2d08847-7064-4995-bf0c-df798f4ef4d5.webm) |

### Pull request checklist

This PR has considered (when applicable):
- [ ] Automated Tests
- [x] Documentation and examples
- [ ] Keyboard Accessibility
- [ ] Voiceover
- [ ] Internationalization and Right-to-left Layouts
2023-01-10 04:45:03 +00:00
UI-Fabric-RN-Bot 83a6a4a3f9 📦 applying package updates ***NO_CI*** 2023-01-10 01:11:01 +00:00
Ruriko Araki fe28312f4d
Add underline to Link component (#2484)
* Add underline to Link

* Change files
2023-01-09 15:55:31 -08:00
UI-Fabric-RN-Bot 71af884c47 📦 applying package updates ***NO_CI*** 2023-01-09 22:25:00 +00:00
lyzhan7 17bf1b5655
Change default theme jest config platform from iOS -> win32 (#2500)
* Update jest.config

* Update snapshot

* Change files
2023-01-09 13:57:33 -08:00
UI-Fabric-RN-Bot 7d611690cb 📦 applying package updates ***NO_CI*** 2023-01-07 02:02:26 +00:00
Valentina ca3a85a7ee
Changed jest config for win32 in Badge and Avatar (#2491)
* Updated jest config for Avatar and Badge

* Change files

Co-authored-by: Valentyna Kozlova <vkozlova@microsoft.com>
2023-01-06 17:34:38 -08:00
UI-Fabric-RN-Bot ea7357106b 📦 applying package updates ***NO_CI*** 2023-01-06 19:49:47 +00:00
chiuam 28ba9c0aff
Show focus on Submenu item for keyboard access (#2489)
### Platforms Impacted
- [ ] iOS
- [X] macOS
- [ ] win32 (Office)
- [ ] windows
- [ ] android

### Description of changes

This PR refines the focus behavior for Submenu item to align with the native experience. 

1. When opening a menu(via keyboard/mouse), the first menu item should not get focus. 
            - Covered.
2. When opening a submenu via mouse, the first menu item should not get focus. 
            - Regressed by this change, created a task for followup.
3. When opening a submenu via keyboard, the first menu item should get focus and the parent submenu item should lose focus/ fades to a gray color background.
            - This change achieves the first part, a task has been filed to followup on the second part.



### Verification

Tested Submenus on win32, didn't notice any behavioral changes. 

Before:

https://user-images.githubusercontent.com/67026167/211050743-78ec34af-8fea-4c57-aa58-9d31324f49bd.mov


After:

https://user-images.githubusercontent.com/67026167/211050712-02f2f912-8c40-4f60-823e-2693f08e284a.mov



### Pull request checklist

This PR has considered (when applicable):
- [ ] Automated Tests
- [ ] Documentation and examples
- [X] Keyboard Accessibility
- [ ] Voiceover
- [ ] Internationalization and Right-to-left Layouts
2023-01-06 19:23:04 +00:00
UI-Fabric-RN-Bot 76c36872bb 📦 applying package updates ***NO_CI*** 2023-01-06 12:26:32 +00:00
lyzhan7 984ee826e9
Change default theme from a const object to a function that returns the object (#2483)
### Platforms Impacted
- [x] iOS
- [x] macOS
- [x] win32 (Office)
- [x] windows
- [x] android

### Description of changes

Update the default theme fluent object to be a method that returns an object. 

This issue is blocking https://github.com/microsoft/fluentui-react-native/pull/2481:
- the updated designs for iOS tokens include some new tokens that aren't in the default theme
- mapPipelineToTheme.ios.ts was updated to reflect these designs
- however, the default theme is still getting created and is trying to running the iOS code for mapPipelineToTheme, which causes failures because the iOS alias token set now includes tokens that aren't in the default theme (win32) token set
- changing the default theme from a const object to a method prevents the default theme from getting created automatically

### Verification

No visual changes
Check if CI passes

### Pull request checklist

This PR has considered (when applicable):
- [ ] Automated Tests
- [ ] Documentation and examples
- [ ] Keyboard Accessibility
- [ ] Voiceover
- [ ] Internationalization and Right-to-left Layouts
2023-01-06 11:58:55 +00:00
Rohan Prasad 82579143a7
[Switch] Animation using Animated API , Removing LayoutAnimation (#2457)
* refactoring useSwitch animation

* revert customised checked file

* remove used

* Change files

* refactor and add comments

* refactoring

* fix test re-render fails

* lookup change

* snapshot update

* revert to prev impl

* fix typo and error

* update snapshot

* disabled state bg color fix , color slow transitions

* fix render fail and label text tokens

* rename IAnimationConfig to AnimationConfig , nit fix

* nit changes

* address feedbacks
2023-01-06 07:21:04 +05:30
Krystal Kramer 0c4b7017d6
Remove Pressable from ContextualMenu and use useAsPressable (#2488)
* Revert win32 submenuitem back to useAsPressable

* Change files

* Update types in PressabilityConfig to match PressableProps

* Change files

* Revert "Change files"

This reverts commit b30154e6ba.

* Revert "Update types in PressabilityConfig to match PressableProps"

This reverts commit 0e0b0e3f4f.

* Remove Pressable from ContextualMenuItem

* update change file
2023-01-05 15:02:37 -05:00
UI-Fabric-RN-Bot 94f30ed171 📦 applying package updates ***NO_CI*** 2023-01-05 11:24:53 +00:00
Rohan Prasad 371e8e8287
[Checkbox] Android tokens fixes (#2486)
* fix checkbox android tokens

* Change files
2023-01-05 16:53:21 +05:30
Valentina 595155b0e1
Migrate Icon V1 to a new package (#2478)
* Migrated Icon to V1
2023-01-05 11:58:01 +01:00
UI-Fabric-RN-Bot 925ff06f8d 📦 applying package updates ***NO_CI*** 2023-01-04 16:55:54 +00:00
Saad Najmi 60c0e92899
More useKeyProps followup (#2477)
* More useKeyProps followup

* Change files

* Revert windows change, add comment
2023-01-04 10:27:50 -06:00
UI-Fabric-RN-Bot 28268c4d2e 📦 applying package updates ***NO_CI*** 2023-01-04 02:04:50 +00:00
Ruriko Araki 82b813327d
Add cli to run transforms using the codemods package (#2189)
* Build cli for codemod package

* Make the thing actually work

* Change files

* Update readme

* Update ignore path

* Fix cli

* Include new codemod

* consistent slashes

* Fix depcheck

* Remove unnecessary change file

* Add exe bit
2023-01-03 17:39:23 -08:00
UI-Fabric-RN-Bot b165a81f18 📦 applying package updates ***NO_CI*** 2023-01-04 01:18:14 +00:00
Lawrence Win 85998ef171
Overhaul Menu E2E tests with better errors, refactored test code (#2447)
* Refactor Menu tests with new testing methods

* Change files

* Modify errors for menu tests, add better comments

* Remove instances of '->' in test names

* Adjust unset accessibilityRole test names

* Use === for string comparison in onClick() test

* Add waitForMenuToClose() method
2023-01-03 18:46:22 -06:00
UI-Fabric-RN-Bot f3068db1fc 📦 applying package updates ***NO_CI*** 2023-01-03 23:38:40 +00:00
Ruriko Araki 4ba3eb0acc
Rename test files to Legacy/V1 instead of using "experimental" (#2473)
* Rename file folders

* Fix paths

* Fix paths

* Fix build

* Rename e2e files

* Rename test files

* Rename all e2e test pages, specs, consts

* Rename consts and tests in test components

* Clean up loose ends

* Change files

* Fix some links

* Address feedback

* Change files

* Fix build issues
2023-01-03 15:08:04 -08:00
UI-Fabric-RN-Bot f7492a582e 📦 applying package updates ***NO_CI*** 2023-01-03 22:50:24 +00:00
Ruriko Araki c624fd62cd
Add click tests for LinkV1 (#2437)
### Platforms Impacted
- [ ] iOS
- [ ] macOS
- [ ] win32 (Office)
- [ ] windows
- [ ] android

### Description of changes

Add E2E click tests for LinkV1

### Verification

CI will verify

### Pull request checklist

This PR has considered (when applicable):
- [x] Automated Tests
- [ ] Documentation and examples
- [ ] Keyboard Accessibility
- [ ] Voiceover
- [ ] Internationalization and Right-to-left Layouts
2023-01-03 22:23:31 +00:00
UI-Fabric-RN-Bot 0e49789d8b 📦 applying package updates ***NO_CI*** 2023-01-03 21:35:03 +00:00
Ruriko Araki 2e72eb614a
Migrate LinkV1 component to new package (#2439)
### Platforms Impacted
- [ ] iOS
- [ ] macOS
- [ ] win32 (Office)
- [ ] windows
- [ ] android

### Description of changes

Move LinkV1 code to existing link package
Move legacy Link code into legacy folder
Update index folder to have new exports.

This will migrate the LinkV1 component to its main package and have it ready for release.

### Verification

Opened tester to test Link component.

### Pull request checklist

This PR has considered (when applicable):
- [ ] Automated Tests
- [ ] Documentation and examples
- [ ] Keyboard Accessibility
- [ ] Voiceover
- [ ] Internationalization and Right-to-left Layouts
2023-01-03 21:08:24 +00:00
UI-Fabric-RN-Bot dfba1ad05d 📦 applying package updates ***NO_CI*** 2023-01-03 20:16:36 +00:00
Lawrence Win 856ff868e4
Overhaul ContextualMenu, Link, and LinkV1 tests with better errors and refactored spec code (#2425)
* Overhaul ContextualMenu E2E tests

* More changes to ContextualMenu E2E

* Overhaul both link E2E tests

* Fix wrong import + some nits

* Clarifying an error

* Refine test names for link

* Change files

* Forgot .toBeTrue() at the end of accessibility test expects

* Add comments to ContextualMenu PO

* Nits fixed

* Reword errors for ContextualMenu test

* Fix comment typos for Link + ExperimentalLink

* Add ENTER press test + cleaner code

* Fix close() error message

* Remove instances of -> in test names

* Fix nit
2023-01-03 13:50:50 -06:00
UI-Fabric-RN-Bot a4b4fb9aab 📦 applying package updates ***NO_CI*** 2023-01-03 17:37:39 +00:00
Gulnaz Sayed 91d5adf18b
RadioGroup Updated jest.config & Additional Snapshot Tests (#2393)
* uncomment tests

* Change files

* Moving tests to seperate folders

* Revert "Moving tests to seperate folders"

This reverts commit 2de860ce2a.

* Revert folder change, update snaps

* separated test files into folders

* removed defaults

* updated jest config platform for win32

* updated yarn.lock

* E2E fix

* updated package

* Revert "E2E fix"

This reverts commit 944d6a241d.

* fix

* Testing with depth 1

* removed comment

* added depth 2 blocked comment

* added additional details to comment about error

Co-authored-by: Ayush Singh <ayushsinghs@yahoo.in>
2023-01-03 12:10:05 -05:00
UI-Fabric-RN-Bot ef90227d02 📦 applying package updates ***NO_CI*** 2023-01-02 18:05:06 +00:00
Ayush Singh f077f84f8f
E2E Tests setup for Android (#2399)
* Basic E2E setup for android

* Basic tests working

* Added scrolling element selector to Android

* Cleanup code

* Change files

* Replace ScrollView id with existing const

* Clean up mobile scroll

* Testing Android pipeline

* Fix platform

* Fix spacing

* Changing Gradlew task

* Comment non-android tests

* Changed vm to ubuntu added working directory to gradlew

* Update emulator to use xamarin

* Updated fradlew task

* Revert ubuntu change for Android PR

* Revert "Update emulator to use xamarin"

This reverts commit 6bea0a8ed6.

* Change jdk path

* Update version for jdk

* Disable yarn android

* Revert "Disable yarn android"

This reverts commit 1dc6bad9dc.

* Set to re-install apk mode

* Remove existing packages

* Remove yarn android, add caching for avd

* Added apk dump mechanism

* Fix syntax

* Fix syntax

* Fix syntax

* Update apk dump to run on failure

* Testing screenshot on android

* Update emulator script

* Fix missing label for E2E

* Reverting APK dump mechanism

* Attempting to fix screenshot issue

* Attempting to fix screenshot issue x2

* Attempting to fix screenshot issue x3

* Attempting to fix screenshot issue x4

* Revert "Attempting to fix screenshot issue x4"

This reverts commit f6ed8fd035.

* Change to MacOS 12

* Revert "Change to MacOS 12"

This reverts commit 7cdaacdeba.

* Attempting to fix screenshot issue x5

* Revert "Comment non-android tests"

This reverts commit d4faed2d29.

* Revert "Testing screenshot on android"

This reverts commit 88cde98d61.

* Added apk dump on failure

* Code cleanup

* Test Screenshot

* Change emulator device model and Remove apk dump

* Revert "Test Screenshot"

This reverts commit 3deb82308f.

* Replace testId with testProps

* Attempt AVD Caching

* Fix task blocks

* Fix import

* Revert AVD Caching

* Revert "Revert AVD Caching"

This reverts commit f31ac5ab08.

* Try different path

* Path format fix

* Change path to single folder

* Enable quick boot emulator

* Revert "Enable quick boot emulator"

This reverts commit e50cfa9f0f.

* Removing caching

* Code cleanup

* Resolve comments

* Resolve comments

* Remove extra bundle command from E2E
2023-01-02 23:09:50 +05:30
UI-Fabric-RN-Bot 2b961837d5 📦 applying package updates ***NO_CI*** 2023-01-02 11:28:01 +00:00
Valentina a46d94d270
Added SVG Icon snapshot tests (#2458)
* Added snapshot tests for the Icon
2023-01-02 12:00:37 +01:00
UI-Fabric-RN-Bot 85efe900b2 📦 applying package updates ***NO_CI*** 2022-12-31 00:08:14 +00:00
Adam Gleitman f9e474adc4
Use a V2 variant style for Notification's action button (#2472)
* Use V2 font variant for notification action button

* Update Podfile

* Change files

Co-authored-by: Adam Gleitman <adgleitm@microsoft.com>
2022-12-30 15:28:46 -08:00
UI-Fabric-RN-Bot 084e4a2f3b 📦 applying package updates ***NO_CI*** 2022-12-30 23:23:24 +00:00
Adam Gleitman dc11ed5cff
Bump Spacing to at least Experimental everywhere (#2474)
* Bump Spacing's status to at least Experimental everywhere

* Change files

Co-authored-by: Adam Gleitman <adgleitm@microsoft.com>
2022-12-30 14:56:40 -08:00
UI-Fabric-RN-Bot 6421aef43e 📦 applying package updates ***NO_CI*** 2022-12-30 16:09:28 +00:00
Saad Najmi 8aefb1921c
Update Compressible inline documentation (#2471)
* Update Compressible documentation

* Change files

* lowercase

* More!
2022-12-30 09:42:07 -06:00
UI-Fabric-RN-Bot 67d5cf3977 📦 applying package updates ***NO_CI*** 2022-12-30 06:16:42 +00:00
Rohan Prasad 793ea620bc
[Link] Documentation and tester update for link on Android (#2442)
### Platforms Impacted
- [ ] iOS
- [ ] macOS
- [ ] win32 (Office)
- [ ] windows
- [x] android

### Description of changes
Updates the documentation and tester app for Link for android. 

### Verification
Visual Verification on Android

### Pull request checklist

This PR has considered (when applicable):
- [ ] Automated Tests
- [x] Documentation and examples
- [ ] Keyboard Accessibility
- [ ] Voiceover
- [ ] Internationalization and Right-to-left Layouts
2022-12-30 05:51:42 +00:00
UI-Fabric-RN-Bot 7a257fe995 📦 applying package updates ***NO_CI*** 2022-12-30 03:49:06 +00:00
Saad Najmi 74a8dcd019
Better types and tests for useKeyProps (#2468)
* Better types + tests for useKeyProps

* Change files

* Update base type

* type KeyboardEvent

* KeyboardEvent -> KeyPressEvent

* More tests + type fix

* More tests

* Combine useKeyProps to one file

* more

* PR comments
2022-12-29 21:06:52 -06:00
UI-Fabric-RN-Bot c225025e9c 📦 applying package updates ***NO_CI*** 2022-12-29 17:19:11 +00:00
Rohan Prasad 9a1daacbd5
[Checkbox] fix checkbox & regression (#2469)
* fix checkbox & regression

* Change files
2022-12-29 22:22:35 +05:30
UI-Fabric-RN-Bot bfa6429031 📦 applying package updates ***NO_CI*** 2022-12-29 08:02:58 +00:00
Ankita Raj b388c484e4
Export Text for android (#2449)
### Platforms Impacted
- [ ] iOS
- [ ] macOS
- [ ] win32 (Office)
- [ ] windows
- [x] android

### Description of changes
Exported text variants for android, and used in tester.

### Verification
Dark:
![DarkText](https://user-images.githubusercontent.com/32593094/209659389-db387c18-9faa-4d88-8754-70cf3acdd819.png)

Light:
![LightText](https://user-images.githubusercontent.com/32593094/209659456-8dd3d8a1-7d3a-4fc5-ad57-055d03a82178.png)

### Pull request checklist

This PR has considered (when applicable):
- [ ] Automated Tests
- [ ] Documentation and examples
- [ ] Keyboard Accessibility
- [ ] Voiceover
- [ ] Internationalization and Right-to-left Layouts
2022-12-29 07:36:25 +00:00
UI-Fabric-RN-Bot e86f53db92 📦 applying package updates ***NO_CI*** 2022-12-29 03:47:48 +00:00
Adam Gleitman 6d8afaea84
Use alias token definitions for iOS typography (#2214)
* Use alias token definitions for iOS typography

* Define `FontWeightValue` in terms of what RN says

* Use theming-utils to fetch font alias tokens

* Change files

* Specify dynamic type ramps in mapPipelineToTheme

* Add mapPipelineToTheme function

* Update yarn.lock

* Update Podfile.lock

* Update FURN tokens version that theming-utils depends on

* theming-utils tests were written for Windows

Co-authored-by: Adam Gleitman <adgleitm@microsoft.com>
2022-12-28 19:19:56 -08:00
UI-Fabric-RN-Bot 51d2c463b5 📦 applying package updates ***NO_CI*** 2022-12-28 17:46:02 +00:00
Navneet Kambo bae1bb6e4a
Make Button respect accessibilityRole passed in props (#2358)
e.g. I'd like to be able to use things like menuitem or similar, which indicates a button-like control in a list of similar controls.

Testing:

* I see the expected role now with tools, e.g. Accessibility Insights.
2022-12-28 09:20:13 -08:00
UI-Fabric-RN-Bot f8ba93348f 📦 applying package updates ***NO_CI*** 2022-12-28 15:44:43 +00:00
Rohan Prasad e52ba9363f
[Checkbox] Fix regression on win32 (#2467)
* fix regression on win32

* Change files
2022-12-28 10:18:22 -05:00
UI-Fabric-RN-Bot 495e605860 📦 applying package updates ***NO_CI*** 2022-12-28 06:51:05 +00:00
Ruriko Araki b1d5abf56e
[Menu] Mark certain key events as handled for MenuPopover (#2463)
### Platforms Impacted
- [ ] iOS
- [ ] macOS
- [ ] win32 (Office)
- [ ] windows
- [ ] android

### Description of changes

In the MenuPopover, certain key events are automatically handled by native, but the key event gets fired on the JS side anyway (this is by design for RN). This can cause bugs as keys could get double handled if a user has a separate key handler set up.

Since the key events are handled on native, it would make sense to automatically mark those key events as handled. That way, they don't get handled on the JS side, too.

### Verification

Tested change against client code

### Pull request checklist

This PR has considered (when applicable):
- [ ] Automated Tests
- [ ] Documentation and examples
- [ ] Keyboard Accessibility
- [ ] Voiceover
- [ ] Internationalization and Right-to-left Layouts
2022-12-28 06:26:02 +00:00
UI-Fabric-RN-Bot 8466c50ff1 📦 applying package updates ***NO_CI*** 2022-12-28 01:30:07 +00:00
Ruriko Araki 7a63f97648
Update json5 package version (#2465)
* Update json5 in yarn.lock

* Remove unused packages

* Change files
2022-12-27 17:02:21 -08:00
UI-Fabric-RN-Bot 683f9f67a1 📦 applying package updates ***NO_CI*** 2022-12-27 22:21:16 +00:00
Lawrence Win 9877f2f456
Overhaul Tests + Errors for Avatar and Callout (#2423)
* Redid deprecated Button tests

* Overhaul avatar tests

* Overhaul Callout tests

* Overhaul checkbox deprecated tests

* Overhaul CheckboxV1 tests

* Remove un-needed overrided method for Callout tests

* Change files

* Address comments and nits

* Missed some changes

* Re-did some of the checkbox page object methods

* More nits

* Address comments, add comments to funcs

* Nits fixed

* Fix errors not displaying for waiting methods on specs

* More consistency across individual test names

* Align test names for checkbox windows spec

* Typo fix

* Remove instances of '->' in test labels

* Rephrase test names: action -> expectation format

* Reduce scope of PR

* Updating change message
2022-12-27 15:37:20 -06:00
UI-Fabric-RN-Bot 9fca6a2a4f 📦 applying package updates ***NO_CI*** 2022-12-27 21:34:49 +00:00
lyzhan7 d401f5bb14
Update Aliascolortoken interface (#2441)
### Platforms Impacted
- [x] iOS
- [x] macOS
- [x] win32 (Office)
- [x] windows
- [x] android

### Description of changes

In preparation of adding iOS alias color tokens, updating the existing AliasColorTokens interface to specify which platforms each token is on, make all the properties optional (there are only 30 tokens that are currently defined on all platforms, and that still seems to be changing) and also reorganized the tokens into the following:

// Foreground
1. Neutralforeground 1-4
2. Neutralforegrounddisabled
3. Neutralforegroundoncolor and onboard
4. Neutralforegroundinverted
5. Brandforegroundlink
6. Compoundbrandforeground
7. Brandforeground 1 and 2
8. Brandforegroundtint
9. Brandforegrounddisabled

// Background
10. Neutralbackground 1-6
11. Neutralbackground other
12. Subtle background
13. Transparent background
14. Brandbackground

// Stroke
15. Neutralstroke
16. Stroke focus
17. Brand stroke
18. Transparent stroke

// Red
16. Red background/foreground/border

Changes are split up by commit.

### Verification

There are no functional changes in this PR - no properties were removed/added to this interface.

### Pull request checklist

This PR has considered (when applicable):
- [ ] Automated Tests
- [ ] Documentation and examples
- [ ] Keyboard Accessibility
- [ ] Voiceover
- [ ] Internationalization and Right-to-left Layouts
2022-12-27 21:31:59 +00:00
huwilkes 57ea8967c4
Update Fluent UI Apple to version 0.10.0 (#2455)
### Platforms Impacted
- [x] iOS
- [x] macOS
- [ ] win32 (Office)
- [ ] windows
- [ ] android

### Description of changes

Updated Fluent UI Apple to 0.10.0. Going from 0.9 to 0.10 didn't really have any impact, but we seem to have missed the bump to 0.9, which had some changes to the Avatar.

### Verification

| Before                                       | After                                      |
|----------------------------------------------|--------------------------------------------|
| ![FURN_Avatar_Mac_Before](https://user-images.githubusercontent.com/67026548/209225085-fdfd3f3e-077d-45b2-adb7-f9d4ab4258cb.png) | ![FURN_Avatar_Mac_After](https://user-images.githubusercontent.com/67026548/209224857-25bc970d-d241-4519-b45e-6b75ed2a7ced.png) |
| ![FURN_Avatar_iOS_Before](https://user-images.githubusercontent.com/67026548/209224875-b1520df6-90fc-42a2-8fc0-c9b55cd0eeab.png) | ![FURN_Avatar_iOS_After](https://user-images.githubusercontent.com/67026548/209224885-f77caee8-ee6a-4342-b5cf-6e3581114e3b.png) |

### Pull request checklist

This PR has considered (when applicable):
- [ ] Automated Tests
- [ ] Documentation and examples
- [ ] Keyboard Accessibility
- [ ] Voiceover
- [ ] Internationalization and Right-to-left Layouts
2022-12-27 20:56:40 +00:00
UI-Fabric-RN-Bot 2c62960633 📦 applying package updates ***NO_CI*** 2022-12-27 20:49:49 +00:00
Samuel Freiberg 4208989552
Exporting E2E Data as NuGet Package (#2459)
* Changing location of E2E constants from /apps/fluent-tester to /apps/E2E. This consolidates data specific to E2E testing

* Creating new NuGet package containing all E2E testing data, while removing unnecessary bundles

* Reverting WDIO config file specs path

* Change files

* Fixing prettier

* Removing bundle verb from E2E (not needed anymore)

* Renaming index.win32 to index.consts to better represent file

* Removing old NuGet package and creating new one that contains E2E directory

* Modifying .ado nuget publish pipeline to include new package

* Resolve conflict with FocusZone version

* Removing unwanted change in tsconfig

* Adding back rnx-kit without bundle potion
2022-12-27 13:24:04 -07:00
UI-Fabric-RN-Bot 4cb077cdeb 📦 applying package updates ***NO_CI*** 2022-12-27 19:25:09 +00:00
Adam Gleitman f1a04c796f
Add spacing test page and E2E tests for other platforms (#2456)
* Add spacing E2E tests

* Change files

* Add test ID to Spacing test page

* Change files

* Remove macOS and Win E2E tests since they don't have the Spacing test page yet

* Revert "Remove macOS and Win E2E tests since they don't have the Spacing test page yet"

This reverts commit 3516a68bc0.

* Activate spacing tokens page for all platforms

* Change files

Co-authored-by: Adam Gleitman <adgleitm@microsoft.com>
2022-12-27 10:58:31 -08:00
UI-Fabric-RN-Bot 76ace5002c 📦 applying package updates ***NO_CI*** 2022-12-27 10:18:14 +00:00
Ankita Raj 19c7982576
Bug fix - Bump android design tokens (#2450)
### Platforms Impacted
- [ ] iOS
- [ ] macOS
- [ ] win32 (Office)
- [ ] windows
- [x] android

### Description of changes

Integrated a new version for tokens with updated color values.
### Verification

Manually tested.

| Before                                       | After                                      |
|----------------------------------------------|--------------------------------------------|
| Screenshot or description before this change | Screenshot or description with this change |

### Pull request checklist

This PR has considered (when applicable):
- [ ] Automated Tests
- [ ] Documentation and examples
- [ ] Keyboard Accessibility
- [ ] Voiceover
- [ ] Internationalization and Right-to-left Layouts
2022-12-27 09:50:52 +00:00
UI-Fabric-RN-Bot 15c23c9fd6 📦 applying package updates ***NO_CI*** 2022-12-23 11:03:02 +00:00
Rohan Prasad e34a93726a
[Separator - Android] Tokenization , InsetSpacing and TesterApp and Platform utils addition (#2413)
### Platforms Impacted
- [x] iOS
- [ ] macOS
- [x] win32 (Office) (Just the tester app : migrated components used from Stock RN to FURN)
- [ ] windows
- [x] android

### Description of changes

(a summary of the changes made, often organized by file)

This PR targets to tokenize and adding of insetSpacing to the Separator component for Android.
packages/components/Separator/src/* - General separation/cleaning of files and Android Specific changes
apps/fluent-tester/* - tester app changes.


### Verification

Visual Verified for Win32. 

(how the change was tested, including both manual and automated tests)

| Light                                       | Dark                                      |
|----------------------------------------------|--------------------------------------------|
| ![Screenshot_1670843312](https://user-images.githubusercontent.com/30728574/207031493-16dfbd71-c3fc-4bb6-8f28-f0169b695680.png) | ![Screenshot_1670843317](https://user-images.githubusercontent.com/30728574/207031465-f068725a-2c75-4c9c-a922-d6318d154f34.png) |

### Pull request checklist

This PR has considered (when applicable):
- [ ] Automated Tests
- [x] Documentation and examples
- [ ] Keyboard Accessibility
- [ ] Voiceover
- [ ] Internationalization and Right-to-left Layouts
2022-12-23 11:01:03 +00:00
Rohan Prasad 7bfe8d5767
[Checkbox] Documentation and tester update for checkbox on Android (#2444)
* doc updates for checkbox

* Change files

* types doc update

* update spec for android unsupported props

* Change files

* checkbox android completion
2022-12-23 16:06:15 +05:30
UI-Fabric-RN-Bot 404f9dc392 📦 applying package updates ***NO_CI*** 2022-12-23 05:52:48 +00:00
Rohan Prasad 2638c6fd2d
[Switch] Documentation and tester update for switch on Android (#2443)
### Platforms Impacted
- [ ] iOS
- [ ] macOS
- [ ] win32 (Office)
- [ ] windows
- [x] android

### Description of changes

Updates the documentation and tester app for Link for android.



### Verification

Visual Verification on Android



### Pull request checklist

This PR has considered (when applicable):
- [ ] Automated Tests
- [x] Documentation and examples
- [ ] Keyboard Accessibility
- [ ] Voiceover
- [ ] Internationalization and Right-to-left Layouts
2022-12-23 05:26:47 +00:00
UI-Fabric-RN-Bot 15359b6d39 📦 applying package updates ***NO_CI*** 2022-12-22 23:12:13 +00:00
Adam Gleitman 8bd92d77b7
Add spacing E2E tests (#2446)
* Add spacing E2E tests

* Change files

* Add test ID to Spacing test page

* Change files

* Remove macOS and Win E2E tests since they don't have the Spacing test page yet

Co-authored-by: Adam Gleitman <adgleitm@microsoft.com>
2022-12-22 14:42:42 -08:00
UI-Fabric-RN-Bot d5c4051856 📦 applying package updates ***NO_CI*** 2022-12-22 22:15:14 +00:00
Adam Gleitman 2e9c3b75cb
Clarify V2Usage on iOS (#2426)
* Clarify V2Usage on iOS

* Change files

Co-authored-by: Adam Gleitman <adgleitm@microsoft.com>
2022-12-22 13:49:18 -08:00
UI-Fabric-RN-Bot 293b8ee1b3 📦 applying package updates ***NO_CI*** 2022-12-22 19:31:49 +00:00
chiuam 619e026c31
Fork SubmenuItem pressable (#2435) 2022-12-22 13:58:17 -05:00
UI-Fabric-RN-Bot 64fdf01810 📦 applying package updates ***NO_CI*** 2022-12-22 17:02:46 +00:00
Adam Gleitman 17af13098d
Fix notification button padding (#2448)
* Remove notification button padding

* Change files

* Use size tokens

* Update snapshots

Co-authored-by: Adam Gleitman <adgleitm@microsoft.com>
2022-12-22 08:35:37 -08:00
UI-Fabric-RN-Bot 5ff648ec40 📦 applying package updates ***NO_CI*** 2022-12-21 23:00:53 +00:00
chiuam c6f0feaa01
Add ScrollView to Menu (#2353) 2022-12-21 17:34:33 -05:00
UI-Fabric-RN-Bot 90a983ff0f 📦 applying package updates ***NO_CI*** 2022-12-21 17:18:46 +00:00
Ruriko Araki 272c2cde9b
Subtle Link example update (#2438)
* Update subtle example for Link

* Change files
2022-12-21 08:52:43 -08:00
UI-Fabric-RN-Bot 300bd1223a 📦 applying package updates ***NO_CI*** 2022-12-21 10:29:08 +00:00
Valentina 62e3f79db5
Added E2E tests for FURN Icon (#2421)
* Added E2E tests for FURN Icon. This is code of existing Icon tests. Changes will be done in separate commits
2022-12-21 11:02:01 +01:00
UI-Fabric-RN-Bot e166634f8e 📦 applying package updates ***NO_CI*** 2022-12-21 06:39:35 +00:00
Rohan Prasad af98a17356
[Checkbox - Android] Ripple addition and review feedbacks (#2416)
* checkbox tokens fix and tester app fix

* chekcbox on android ripple changes

* add checkbox ripple

* ripple on label and accessiblity req fix

* Change files

* ripple color change

* checkbox spec changes

* change func names from toggleChecked to setChecked

* ripple color caching , tester app feedbacks

* remove console.log

* add rippleColor to cache

* target point changes , tester app feedbacks

* change types for checkbox props
2022-12-21 11:43:24 +05:30
UI-Fabric-RN-Bot fbb91480bc 📦 applying package updates ***NO_CI*** 2022-12-21 02:06:40 +00:00
Ruriko Araki 8fa01d4fa7
Move documentation for Link to permanent place (#2434)
* Move documentation files to new home

* Change files

* Move assets

* Move files
2022-12-20 17:40:55 -08:00
UI-Fabric-RN-Bot 99cf776ea8 📦 applying package updates ***NO_CI*** 2022-12-21 01:18:57 +00:00
Ruriko Araki 0175de1306
Link fix keyboarding (#2436)
* Fix Link space/enter keyboarding

* Change files
2022-12-20 16:52:16 -08:00
UI-Fabric-RN-Bot a702bf83ea 📦 applying package updates ***NO_CI*** 2022-12-20 23:10:17 +00:00
Ruriko Araki 6eb13550aa
Update link spec (#2433)
* Update link spec with more detail

* Change files
2022-12-20 14:31:52 -08:00
Ruriko Araki 63a0062e5a
Remove inline links from win32 (#2432)
* Fork inline link test for LinkV1

* Edit documentation

* Force win32 to not have inline links

* Remove stray test case

* Remove stray test case

* Change files

* Update Migrate.md
2022-12-20 14:31:20 -08:00
UI-Fabric-RN-Bot a35ebb9ba7 📦 applying package updates ***NO_CI*** 2022-12-16 17:55:16 +00:00
Krystal Kramer 4f66c5ae43
Add README for @fluentui-react-native/dependency-profiles (#2422)
* Save initial draft

* Edit comment

* Add additional info

* additional updates

* Change files

* Add npm badge link to ignorePatterns
2022-12-16 12:27:30 -05:00
UI-Fabric-RN-Bot 1e08845e75 📦 applying package updates ***NO_CI*** 2022-12-15 19:18:30 +00:00
lyzhan7 6dab45d16e
[E2E tests] Update comment to explain why iOS FluentTester root view cannot have accessible prop set to true (#2418)
* Make accessible prop true for win32 only, update comment

* Change files

* macOS e2e failed, try CI on just macos

* Try accessibility=false and collapsable=false

* Revert collapsable attempt, use accessible prop for win32/macOS

* Revert "Change files"

This reverts commit 34892bbac4.

* Revert changes, update comment to explain why iOS is an exception

* Change files
2022-12-15 10:52:20 -08:00
UI-Fabric-RN-Bot 56dbe6cb0c 📦 applying package updates ***NO_CI*** 2022-12-15 14:50:51 +00:00
Adam Gleitman ac1a77d965
Add maximumFontSize (#2389)
* Add maximumSize

* Remove extra LimitedDisplay customization

* Change files

* Simplify maximumFontSize math

* grammar

* Add comment about iOS-only FontStyleTokens props

* Add documentation for custom TextTokens

* TODO(#2268) -> GH #2268

* Add MaximumFontSize test element

* Organize imports

* Change files

Co-authored-by: Adam Gleitman <adgleitm@microsoft.com>
2022-12-15 06:22:37 -08:00
UI-Fabric-RN-Bot 3500d25b49 📦 applying package updates ***NO_CI*** 2022-12-14 17:45:42 +00:00
Lawrence Win e289811db7
Update BasePage + ExperimentalButton, FocusZone, NativeTesting page and spec with more intuitive errors (#2405)
* Add better errors to BasePage + ExperimentalBtn

- Made BasePage abstract so future PageObjects must implement abstract
  getters. Implemented getters for PageObjects lacking them.
- Overhauled accessibility testing to be in different method with
  more intuitive error.
- Updated ExperimentalButton PageObject + spec to use new BasePage
  features.

* Refine error messages to have less fluff

* Change files

* Removed the ButtonSelector enum from ExperimentalButton spec + pageobject

* Consolidate attribute testing to compareAttribute()

* Update compareAttribute method comment

* Rename TestDescription.testPage -> testPageButton

* Add more intuitive errors for NativeTesting page

* Rename BasePage method, refactor FocusZone tests

Renamed `keys()` to `sendKeys()`. This conflicted with a similar method
in FocusZonePageObject so I figured I would quickly refactor the tests
to use the same overhauled methods in BasePage with better errors. Also
I addressed some nits in the PR.

* Change compareAttribute error formatting

* Address nits

* Change files

* Fix build errors

* Re-re-naming the NavigateAppPage pageName

* Re-enumed grid buttons

Co-authored-by: Larry Win <winlarry@microsoft.com>
2022-12-14 09:18:13 -08:00
UI-Fabric-RN-Bot 1d0c8d146d 📦 applying package updates ***NO_CI*** 2022-12-14 06:48:58 +00:00
UI-Fabric-RN-Bot eaf7e572e6 📦 applying package updates ***NO_CI*** 2022-12-13 23:18:05 +00:00
Ruriko Araki 052206aece
Update list of exports of main FURN package (#2420)
* Add missing entries to export of library/core

* Change files
2022-12-13 14:50:45 -08:00
Ruriko Araki 4530b22606
Fix typos in deprecation warnings (#2419)
* Fix typos

* Change files
2022-12-13 14:50:31 -08:00
UI-Fabric-RN-Bot b9571540f7 📦 applying package updates ***NO_CI*** 2022-12-13 21:31:47 +00:00
Lawrence Win 7af343bc8a
Add more Menu E2E tests to shore up V1 Testing (#2388)
* Add more baseline Menu E2E tests

* Add testing for disabled prop on item

* Change files

* Address PR feedback

* Change change type from patch -> minor

* Address nits, cleared up code

* Reduce onClick testing from 6 to 2 specs, clear up code

* Reduce time it takes for a11y tests

* Refactor MenuPageObject, make test names clearer

* Fix erroneous merge

Co-authored-by: Larry Win <winlarry@microsoft.com>
2022-12-13 13:03:37 -08:00
UI-Fabric-RN-Bot a40a1e1133 📦 applying package updates ***NO_CI*** 2022-12-13 20:07:30 +00:00
Krystal Kramer 71dd315807
Add additional a11y tests for Text V1 component (#2394)
* Test both TextV1 and Deprecated Text components

* change accessibility label

* add primary and secondary getters back

* Remove secondaryComponent getter

* throw error if _primaryComponent isn't implemented

* Add accessibilityLabel testing for experimental text

* Add errors when base methods aren't implemented

* Change files

* Update error messages for BasePage methods

* improve Text V1 E2E Testing

* add waitForElementDisplayed

* Change files

* Change files

* Change files

* remove extra await
2022-12-13 14:42:16 -05:00
UI-Fabric-RN-Bot d98a535a8c 📦 applying package updates ***NO_CI*** 2022-12-13 18:37:11 +00:00
Saad Najmi 623ef5f1fd
Update Notification jest snapshot (#2417)
* Change files

* Update Notification jest snapshot
2022-12-13 10:10:38 -08:00
Ruriko Araki db71a5cb41
[Link] Disabled links should not be focusable (#2414)
* Change disabled link to not be focusable

* Edit text

* Change files
2022-12-13 09:07:04 -08:00
Adam Gleitman c9c758bca7
Use V2 font tokens for Notification text elements (#2383)
* Use V2 font tokens for Notification text elements

* Update test snapshot

* Change files

Co-authored-by: Adam Gleitman <adgleitm@microsoft.com>
2022-12-12 17:19:06 -08:00
UI-Fabric-RN-Bot b7a498cc0c 📦 applying package updates ***NO_CI*** 2022-12-13 00:35:19 +00:00
Saad Najmi 6d27d8e7f0
Less inline function components in Fluent Tester (#2317)
* Less inline Function Components in Fluent Tester

* Change files

* Fix back button

* Fix issues

* prettier

* Address PR feedback

* Remove redundant space
2022-12-12 16:05:56 -08:00
UI-Fabric-RN-Bot 50c4f88c71 📦 applying package updates ***NO_CI*** 2022-12-12 18:55:33 +00:00
Lawrence Win 100d4492f7
Remove unnecessary waiters during test starts (#2411)
* Remove unnecessary waiters during test starts

Removed the `waitForPrimaryElementDisplayed` method and calls to it in
specs because `scrollToTestElement` already calls the waiter internally.

* Change files

* Edit change type to minor, re-add method with deprecation warning

Co-authored-by: Larry Win <winlarry@microsoft.com>
2022-12-12 10:29:00 -08:00
UI-Fabric-RN-Bot c9c7660efc 📦 applying package updates ***NO_CI*** 2022-12-12 10:12:02 +00:00
Valentina 53114e08fc
[Icon] Added MIGRATION.md file (#2400)
* [Icon] Added MIGRATION.md file
2022-12-12 10:45:30 +01:00
UI-Fabric-RN-Bot 9036f768da 📦 applying package updates ***NO_CI*** 2022-12-09 23:48:05 +00:00
chiuam 5bfbcef174
Revert usePressableState for SubmenuItem (#2403)
### Platforms Impacted
- [ ] iOS
- [X] macOS
- [X] win32 (Office)
- [ ] windows
- [ ] android

### Description of changes

The usage of usePressableState in SubmenuItem causes a bug on macOS where SubmenuItem doesn't get keyboard focus on mouse hover. I couldn't figure out why onHoverIn gets overridden/not getting called in SubmenuItem, but we can live with this for now until MenuV1 transition is ready.

### Verification

Submenu item works as expected on macOS and win32

| Before                                       | After                                      |
|----------------------------------------------|--------------------------------------------|
| Screenshot or description before this change | Screenshot or description with this change |

### Pull request checklist

This PR has considered (when applicable):
- [ ] Automated Tests
- [ ] Documentation and examples
- [ ] Keyboard Accessibility
- [ ] Voiceover
- [ ] Internationalization and Right-to-left Layouts
2022-12-09 23:03:55 +00:00
UI-Fabric-RN-Bot 543f73b1ce 📦 applying package updates ***NO_CI*** 2022-12-09 22:56:19 +00:00
Samuel Freiberg 45af2ee84a
Fix NuGet .nuspec Name (#2409)
* Creating NuGet package for win32 js bundle specs

* Adding nuget publish to pipeline

* Clarifies description of NuGet package

* Fixing package path in .ado pipeline

* Change files

* Fixing name of .nuspec

* Change files

* Deleting previous file/ Renamed
2022-12-09 15:32:53 -07:00
Saad Najmi 38629bb8d0
Enable Switch test page on all platforms (#2408)
* Enable Switch test page on all platforms

* Change files
2022-12-09 14:27:07 -08:00
UI-Fabric-RN-Bot 345c34a0dd 📦 applying package updates ***NO_CI*** 2022-12-09 20:56:59 +00:00
Samuel Freiberg 9c86aae457
Creating NuGet package for win32 js bundle specs (#2407)
* Creating NuGet package for win32 js bundle specs

* Adding nuget publish to pipeline

* Clarifies description of NuGet package

* Fixing package path in .ado pipeline

* Change files
2022-12-09 13:30:35 -07:00
UI-Fabric-RN-Bot e200355c44 📦 applying package updates ***NO_CI*** 2022-12-09 20:03:13 +00:00
Ruriko Araki 23b2d1140b
Update component statuses in tester (#2398)
### Platforms Impacted
- [ ] iOS
- [ ] macOS
- [ ] win32 (Office)
- [ ] windows
- [ ] android

### Description of changes

Updating some statuses in the win32 tester.

Decisions:
- "Production" for a V1 component which we've finished and has been out for at least a few months without any major work required from initial partner integration. Menu and Text don't fall under here as I currently am changing their behavior and we are getting some bugs for those components
- "Beta" for completed V1 components with less maturity, tokens, and for older components which use the old framework. Older components will be rewritten in the future.
- "Experimental" for components currently under active development
- "Deprecated" for older components that have replacements available and in Beta or Production.

Please feel free to either push changes for other platforms or comment with additional change suggestions.

### Pull request checklist

This PR has considered (when applicable):
- [ ] Automated Tests
- [x] Documentation and examples
- [ ] Keyboard Accessibility
- [ ] Voiceover
- [ ] Internationalization and Right-to-left Layouts
2022-12-09 19:36:36 +00:00
UI-Fabric-RN-Bot 3d64a24735 📦 applying package updates ***NO_CI*** 2022-12-09 10:05:33 +00:00
Rohan Prasad df6df3d484
[Link - Android ] Initial Tokenization (#2396)
* initial tokens for link android

* Change files

* remove subtle invalid tokens and tester app fix

* update snapshot
2022-12-09 15:09:37 +05:30
UI-Fabric-RN-Bot d68f1a0a55 📦 applying package updates ***NO_CI*** 2022-12-09 05:23:39 +00:00
Rohan Prasad 837811eb63
[Switch - Android ] Tokenization and functionality fix (#2372)
* switch initial tokenization and tester app changes

* tester app styling changes for android

* tester app changes - fluentize text

* add disabled text label token

* switch knob shadow addition

* fix typography font tokens

* Change files

* revert android tokens from mapPipelineToTheme common file

* tester app styling fix - memoize

* memoize e2e tester styles

* switch ease in and out animation

* Change files

* snapshot update

* Change files

* move android animation to click event only

* update snapshots

* fix tester app styling feedbacks

* moved animation function code to switch

* remove unused imports

* replace experimentaltext as text in tester

* change knob margin to track when pressed

* moved animation code to useSwitch avoids re-render

* remove animation feature flag after animation complete

* moved animateKnob outside of useSwitch to avoid re-creation

* revert useAsToggleEvent.ts
2022-12-09 10:25:45 +05:30
UI-Fabric-RN-Bot 516a267c01 📦 applying package updates ***NO_CI*** 2022-12-09 00:56:09 +00:00
Ruriko Araki 092ce86a19
Rename test pages (#2402)
* Update test page names

* Change files

* Pre-v1 to Legacy
2022-12-08 16:23:37 -08:00
UI-Fabric-RN-Bot 80d70a71f5 📦 applying package updates ***NO_CI*** 2022-12-08 23:12:24 +00:00
lyzhan7 d3889339d2
Add steps for running iOS e2e tests (#2397)
* Add iOS steps

* Change files

* Add error message

* Update to make more sense iOS/macOS

* macOS not MacOS
2022-12-08 14:30:48 -08:00
UI-Fabric-RN-Bot 090b008f49 📦 applying package updates ***NO_CI*** 2022-12-07 18:40:57 +00:00
Valentina 2942e54f6e
Added information to the Icon spec (#2392)
* Added information to the Icon spec.
2022-12-07 19:11:25 +01:00
UI-Fabric-RN-Bot 10c382affa 📦 applying package updates ***NO_CI*** 2022-12-06 21:28:50 +00:00
UI-Fabric-RN-Bot a1a8ce5049 📦 applying package updates ***NO_CI*** 2022-12-06 16:59:54 +00:00
Ankita Raj 194db93551
Android Avatar variations (#2379)
### Platforms Impacted
- [ ] iOS
- [ ] macOS
- [ ] win32 (Office)
- [ ] windows
- [x] android

### Description of changes
PR proposes to add support for Avatar component for android.
- Updated tester to demonstrate usage for variations.
- Introduced 2 new tokens to provide support for - ascent and standard inverted variations. All other variations are supported re-using current tokens for supporting common types. The full variations in design guidelines are:

**1. Standard
2. Standard inverted
3. Anonymous
4. Anonymous ascent
5. Initials
6. Image
7. Overflow
8. Group**

The tester file for android demonstrates usage for each of above from consumer point, with variations.

Note that this PR does not aim to add tokens support for size, activity ring and badge. 

### Verification
Manual validation on test app.

![dark1](https://user-images.githubusercontent.com/32593094/205281586-7723e0ac-01c1-4a8d-ba73-ba1f90a7b5fe.png)
![dark2](https://user-images.githubusercontent.com/32593094/205281624-7d38f133-a73c-400a-b0b4-725d705a54d5.png)
![light1](https://user-images.githubusercontent.com/32593094/205281637-81606815-55aa-4fe5-9aad-4f50331a184c.png)
![light2](https://user-images.githubusercontent.com/32593094/205281656-f8c2e2ff-81eb-404e-ad04-0c6a7645788e.png)

### Pull request checklist

This PR has considered (when applicable):
- [ ] Automated Tests
- [ ] Documentation and examples
- [ ] Keyboard Accessibility
- [ ] Voiceover
- [ ] Internationalization and Right-to-left Layouts
2022-12-06 16:39:34 +00:00
Ankita Raj fd3173a082
Integrate Shadows in Android Theme (#2384)
* Change files

* enableCodePath

* perttierFix

* testFixes

Co-authored-by: Ankita Raj <ankraj@microsoft.com>
2022-12-06 22:01:21 +05:30
UI-Fabric-RN-Bot b1ba8bd278 📦 applying package updates ***NO_CI*** 2022-12-06 02:02:56 +00:00
Lawrence Win d64b7100cf
Bump react-native-svg: 12.3.0 -> 12.5.0 (#2252)
* Bump react-native-svg: 12.3.0 -> 12.x

* Change files

* 12.x -> 12.4.4 in package.json

* Add Graphics.Win2D as a dependency

* Revert "Add Graphics.Win2D as a dependency"

This reverts commit 7f3899bd93458d90f1236cc0724b4955bf67d802.

* Win2D.UWP added as a dependency

* Update yarn.lock

* Bump experimental icon rnsvg

* Bumping rnsvg to 12.5

* Add script to add win2d as a ReactTestApp dependency

* Add win2d script to uwp ado pipeline

* Update script to add Win2D.uwp dependency

* Commit for pipeline testing

* Remove disk size checks, keep fetchDepth in ado

* Change files

* Run windows Pr validation step on larger VM

* Add + use patch-package for Win2D.uwp dependency

Patching react-native-test-app is now more stable than the previous
commit.

* Revert accidental change to a change file

Co-authored-by: Larry Win <winlarry@microsoft.com>
Co-authored-by: Danny van Velzen <dannyvv@microsoft.com>
2022-12-05 19:36:45 -06:00
UI-Fabric-RN-Bot 06996a387c 📦 applying package updates ***NO_CI*** 2022-12-06 00:46:42 +00:00
Saad Najmi a91d5bc145
📦 applying package updates ***NO_CI*** (#2387)
* Manually edit everything

* Fix random formatting changes
2022-12-05 15:50:01 -08:00
Adam Gleitman bb56215afe
Allow V2 variants to be used in V1-style Text elements and still respect Dynamic Type (#2376)
* Move `dynamicTypeRamp` definitions

* Update Podfile.lock

* Allow V1 usage of V2 variants

* Change files

* Clarify a comment

* Typescript type stuff

Co-authored-by: Adam Gleitman <adgleitm@microsoft.com>
2022-12-05 15:32:57 -08:00
Valentina cc03a282a2
[Icon] Fixed an error about "esModuleInterop: true" (#2380)
* Fixed import for the Icon
2022-12-05 12:23:02 +01:00
Ayush Singh 453ff74a54
[FAB] Restore iOS to prior state / Fix Android elevation (#2378)
* Restoring FAB iOS visuals to original

* Updated snaps and fixed elevation for Android

* Tester changes for FAB iOS

* Change files

* Resolve comments
2022-12-03 15:10:10 +05:30
Saad Najmi 299ed92c52
Fix NPM publish pipeline (#2382)
* Fix NPM publish pipeline

* Change files

* One more

* And another....
2022-12-02 15:56:25 -08:00
Valentina e8719ef683
Badge color updates (#2367)
* [Badge] Updated danger and success and severe colors
2022-12-01 13:06:28 +01:00
UI-Fabric-RN-Bot 43c9b4c322 📦 applying package updates ***NO_CI*** 2022-12-01 03:12:21 +00:00
Rohan Prasad 9faf7ab619
Global tokens spacing bump to 0.36 (#2360)
* design tokens package bump

* replace old spacing token with new sizeTokens with win32 ramp

* theme spacing tokens change

* Change files

* minor medium addtion

* update snapshots and shadow mapping

* Change files

* android tokens mapping changes

* removal of new size tokens from theme

* mapping to ios size ramps instead of win32 for ios files

* android checkbox token update

* update outdated snapshot and token changes for FAB
2022-12-01 08:13:56 +05:30
UI-Fabric-RN-Bot 2beca152cc 📦 applying package updates ***NO_CI*** 2022-11-30 21:33:20 +00:00
Samuel Freiberg ed6ad65f29
Add E2E Win32 Spec Bundle to NPM Package (#2369)
* Adding bundle to NPM package:

* Adding task in publish pipeline to bundle E2E specs

* Fixing file paths

* Change files

* Running yarn buildci in publish pipeline
2022-11-30 14:27:50 -07:00
Saad Najmi 838377b70f
Update jest configs for ContextualMenu, FocusTrapZone, FocusZone (#2370)
* Update jest configs for ContextualMenu, FocusTrapZone, FocusZone

* Change files

* Update package.json

* update snapshots
2022-11-30 13:08:41 -08:00
UI-Fabric-RN-Bot 96b9918599 📦 applying package updates ***NO_CI*** 2022-11-30 01:20:53 +00:00
Saad Najmi eac52db4ba
Ignore xcode.env files in gitignore (#2371)
* Ignore xcode.env files in gitignore

* Change files
2022-11-29 16:48:26 -08:00
UI-Fabric-RN-Bot ed35ea091b 📦 applying package updates ***NO_CI*** 2022-11-29 20:39:50 +00:00
Ruriko Araki 2f6ea0cc82
Change jest endpoint to win32 for Callout, Menu, MenuButton, Separator, Tab (#2365)
* Update config

* Update snapshots

* Change files
2022-11-29 12:21:10 -08:00
UI-Fabric-RN-Bot f97f908759 📦 applying package updates ***NO_CI*** 2022-11-29 15:14:15 +00:00
Ayush Singh eecdb6e88e
FAB iOS Fix and E2E Link Fix (#2366)
* Replaced FAB Tokens for all platforms

* Change files

* Updated snapshots for FAB

* Fix E2E link
2022-11-29 20:25:18 +05:30
UI-Fabric-RN-Bot 05acc04d8b 📦 applying package updates ***NO_CI*** 2022-11-29 03:55:13 +00:00
Samuel Freiberg 0d37c13db9
[Win32] Create JS Bundle for E2E Spec Files and Publish as NPM Package (#2345)
* Adding package that includes all FURN automated testing dependencies

* Adding nuget publish for tester deps

* Temporarily post nuget package for testing

* Temporarily post nuget package for testing

* Removing param

* Making param false

* Reverting .ado changes and adding fields in package.json

* Testing nuget push

* Adding yarn.lock

* Revert "Adding yarn.lock"

This reverts commit 0948725dcf.

* Testing CI

* Testing CI

* Testing nuget publish

* removing publish temporarily

* Removing unwanted dep

* Updating deps

* Adding nuget publish job to ado

* Removing unwanted changes

* Removing unwanted changes

* Removing unwanted changes

* Integrating Webpack to create a JS bundle containing all win32 spec files

* Creating bundle in publish pipeline so it's included in the npm package

* Removing unwanted changes

* Reverting unwanted changes

* Reverting

* Reverting testing change

* Reverting newline

* Change files

* Reverting unnecessary .ado change

* Reverting whitespace

* Adding build script to /E2E

* Moving E2E testing files to its own package within /apps. This allows us to export as an NPM package easier (and allows us to consume the testing code outside of this repo)

* Updating pipeline refs to apps/E2E

* Adding support for metro within apps/E2E

* Fixing imports

* Change files

* Fixing Win32 wdio.conf.ts specs path

* Fix imports

* Adding missing dev dep

* Updating yarn.lock

* Re-creating yarn.lock

* Updating yarn conflicts

* Fixing links

* Adding missing dep

* Updating path to no hoisted packages

* Fixing package path

* Adding condition in BasePage
2022-11-28 20:36:02 -07:00
UI-Fabric-RN-Bot 58041c4748 📦 applying package updates ***NO_CI*** 2022-11-28 19:49:35 +00:00
Adam Gleitman 1b0f4b66f9
Use FRNFontMetrics module in `Text` (#2269)
* Add FRNFontMetrics module

* Remove debugging `console.log` statements

* Use a hook to access font metrics

* Add NativeFontMetrics package

* Remove unneeded API

* Fix spacing

* Change files

* Add @types/use-subscription dependency

* Update yarn.lock

* Add use-subscription as a dependency

* Update yarn.lock again

* NativeFontMetrics.tsx -> NativeFontMetrics.ts

* Make NativeFontMetrics iOS only, part 1

* Stub out NativeFontMetrics for non-iOS platforms

* Keep use-subscription version consistent with react-native and react-native-macos

* Remove core-android capability

* id -> UIFontTextStyle

* Delete old changefile

* Regenerate lockfiles

* Delete duplicate NativeFontMetrics.tsx file

* Change files

* allScaleFactors -> currentScaleFactors

* Use pure events to update font metrics

* Update package.nuspec

* Use pure JS hook to make V2 Texts rerender

* Change files

* Update snapshot

* Remove unneeded dependency

* Move fontMetrics to iOS specific file

* Better isolation of iOS-specific code

* Add useFontMetrics.ios.ts

* Remove useFontMetricsScaleFactors warning on non-iOS platforms

* Move fontMetrics accesses outside of continuation, and improve typing

* Fix Text rerender shallow equality test

* Handle case when NativeFontMetrics isn't defined

* IFontMetrics -> FontMetrics

* Keep `mergedProps` spreads next to each other

Co-authored-by: Adam Gleitman <adgleitm@microsoft.com>
2022-11-28 11:29:22 -08:00
UI-Fabric-RN-Bot cf6f27d720 📦 applying package updates ***NO_CI*** 2022-11-28 17:44:49 +00:00
Lawrence Win c07ddd7a78
FURN Tester: Fix FocusTrapZone test component not trapping focus (#2352)
* Remove FocusTrapZone at the root of win32 tester

* Change files

* Fix refocus on testlist re-render

* Fix nits

Co-authored-by: Lawrence Win <winlarry@microsoft.com>
2022-11-28 11:26:23 -06:00
UI-Fabric-RN-Bot 2a4f146cb2 📦 applying package updates ***NO_CI*** 2022-11-28 11:51:07 +00:00
Ayush Singh 890ff26064
Tokenize button Android/iOS (#2337)
* Button/FAB Tokenization Complete

* Update readme and snapshots

* Added support for inner border

* Updated tester app text for mobile

* Removed extra features from Android Tester

* Updated to use shared iconExamples

* Removed unsupported buttons from SizeTest

* Removed explicit mapping to default for outline
2022-11-28 17:01:08 +05:30
lyzhan7 103bce3def
Update jest config platform for Shadow to be IOS (#2357)
* Update jest config platform to be IOS

* Change files
2022-11-23 16:09:39 -08:00
Saad Najmi 39c553e624
Fix broken Button HOC test section (#2356)
* Fix ButtonHOCTestSection

* Change files

* Fix JS errors
2022-11-23 14:06:16 -08:00
Gulnaz Sayed d485629765
RadioGroup Automation Testing (#2169)
* added snapshot tests

* added tests

* started custom tests

* more updates to test

* adding new test

* finished spec file

* reverted wdio

* changed names

* fixed typo

* fixed page object

* moved import

* Change files

* updated testing

* Delete @fluentui-react-native-experimental-radio-group-0492f45e-8764-4cff-880c-ca7b9dd4b9d9.json

* Update wdio.conf.js

* Change files

* token for inner circle size

* added border color

* updated snapshot tests

* fixed padding with focus ring

* fixed e2e testing by making root accessible

* updated snapshot testing

* fixed border

* updated snapshot tests

* added awaits

* Delete VariantRadioGroup.tsx

* fixed awaits

* fixed inner circle alignment

* updated snapshots

* reverted style file

* reverted types file

* reverted tokens

* update snapshot testing

* added re-render tests for radio

* added circular navigation E2E test

* added more re-render tests

* added snapshot tests for additional props

* add tab test

* updated snapshot tests

* macos tests

* added accessibility testing

* Revert changes in wdio

* moved macos tests into folder

* commenting out tests for testing build error

* commenting out added snapshot tests for checking ADO build

* reverted snapshot test generated

* re-adding radio snapshot tests

* adding radiogroup tests

* removed defaultValue from disabled RadioGroup

* added radio re-render tests back

* adding json

* adding timer

* renamed extension to jsx and removed views in radiogroup

* reverting tests

* added comment

* added subtexts

* added tokens to customized test

* added subtext tokens to customized test

* commented macos accessibility testing

* fixed import

* comment out tests

* removed macos tests
2022-11-22 14:41:50 -05:00
Rohan Prasad 037c4c54ac
[Checkbox] Android platform specification changes (#2346)
feat : android checkbox functionality
2022-11-22 18:43:20 +05:30
Lawrence Win 448ebead08
Refactor FURN tester assets (#2350)
* Change files

* Refactor tester app assets and imports

- Moved test.svg to main assets folder, deleted duplicate test.svg files
- Removed duplicate code declarations for svgProps. Most instances of the
  same svg now get imported from a common file.
- Imports for icon_24x24.png are also from a common file.
- Added color for icon svgs for android. Without a color prop, the svg doesn't
  render.

* Fix incorrect import in menu test components

* Refactor android specific color code into a hook

* Color hook removed

* Remove conditional android styles for icon

Co-authored-by: Lawrence Win <winlarry@microsoft.com>
2022-11-21 14:45:01 -08:00
Tommy Nguyen 69703d1c76
chore: use `rnx-start` for dev server (#2339) 2022-11-21 09:42:00 +01:00
Lawrence Win 04b2533443
Add shadow crash + assert testing (#2336)
* Add shadow crash + assert testing

* Add ios and macos crash specs

* Change files

* Add _pageName const to page object

* Remove assert testing from mac / ios, add spec to uwp config

* Use correct page object to call methods, remove windows test

Co-authored-by: Larry Win <winlarry@microsoft.com>
2022-11-18 16:28:47 -08:00
Saad Najmi b8b9d8fb12
FocusZone (macOS): move focus between first responders instead of key views (#2329)
### Platforms Impacted
- [ ] iOS
- [x] macOS
- [ ] win32 (Office)
- [ ] windows
- [ ] android

### Description of changes

This is a simpler version of #2267 . Instead of adding a new prop to differentiate whether we focus on key views vs first responders, this one will just... focus on first responders unconditionally.

The reasoning is as follows:

1) FocusZone itself doesn't override `canBecomeKeyView. So FocusZone itself respects the system keyboard navigation preference.
2) FocusZone itself is pretending to be "one big focusable view" to the eyes of Appkit. Its job is to move focus inside itself between focusable views. Once it gains focus (via the key view loop or programmatically), it probably doesn't matter whether its children were key views. If you're using a FocusZone for your custom control, you probably still want the keyboard events to work regardless.

How this affects components:

- For the case of ContextualMenu, we call `focusZoneRef.current.focus()` once the menu is opened. This will force focus on the Menu regardless of the OS preference (which we want), and then with this change keyboard navigation will work.
- For the case of Radiogroup: Native Appkit RadioGroups are not key views if the keyboard navigation preference is disabled, and you can't move focus or arrow key through them at all. With our JS Radiogroup (and Native RadioGroup), this behavior should be the same, since the enclosing FocusZone will not become a key view.

### Verification

Locally side loaded the built `libRCTFocusZone.a` to test a partner scenario, and it worked fine with no regressions. Tested ContextualMenu and RadioGroup and didn't find any regressions. 


### Pull request checklist

This PR has considered (when applicable):
- [ ] Automated Tests
- [ ] Documentation and examples
- [ ] Keyboard Accessibility
- [ ] Voiceover
- [ ] Internationalization and Right-to-left Layouts
2022-11-18 01:17:51 +00:00
lyzhan7 d080806e8e
Remove 'web' platform from testPages (#2338)
### Platforms Impacted
- [ ] iOS
- [ ] macOS
- [ ] win32 (Office)
- [ ] windows
- [ ] android

### Description of changes

Remove 'web' as a platform from testPages. 
Some conversation in https://github.com/microsoft/fluentui-react-native/pull/2332 that we should remove it.

### Verification

Checked that tester still runs correctly on macOS

### Pull request checklist

This PR has considered (when applicable):
- [ ] Automated Tests
- [ ] Documentation and examples
- [ ] Keyboard Accessibility
- [ ] Voiceover
- [ ] Internationalization and Right-to-left Layouts
2022-11-17 02:45:06 +00:00
warren-ms c49a68b9e8
Add a test for fontawesome's rnsvg package (#2319)
### Platforms Impacted
- [ ] iOS
- [ ] macOS
- [ ] win32 (Office)
- [ ] windows
- [ ] android

### Description of changes

(a summary of the changes made, often organized by file)

### Verification

(how the change was tested, including both manual and automated tests)

| Before                                       | After                                      |
|----------------------------------------------|--------------------------------------------|
| Screenshot or description before this change | Screenshot or description with this change |

### Pull request checklist

This PR has considered (when applicable):
- [ ] Automated Tests
- [ ] Documentation and examples
- [ ] Keyboard Accessibility
- [ ] Voiceover
- [ ] Internationalization and Right-to-left Layouts
2022-11-17 00:25:25 +00:00
dependabot[bot] 9077e0b25f
Bump @types/react-native from 0.68.8 to 0.68.9 (#2249)
Bumps [@types/react-native](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-native) from 0.68.8 to 0.68.9.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-native">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@types/react-native&package-manager=npm_and_yarn&previous-version=0.68.8&new-version=0.68.9)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>
2022-11-16 19:38:43 +00:00
lyzhan7 08031ad738
Add corner radius token test page (#2332)
### Platforms Impacted
- [x] iOS
- [x] macOS
- [x] win32 (Office)
- [x] windows
- [x] android

### Description of changes

Add test page showcasing the global corner radius tokens.
Added e2e test that opens this test page.

### Verification


https://user-images.githubusercontent.com/78454019/201428061-aa31e3cb-c890-461f-b72d-af1aa8e0d4f7.mp4


https://user-images.githubusercontent.com/78454019/201428066-16cb413e-c7f1-42e1-bcd9-e6eda0ec166b.mp4


https://user-images.githubusercontent.com/78454019/201428069-27cdb9dc-8730-4d7b-895f-88bc12d021f4.mov


https://user-images.githubusercontent.com/78454019/201428070-c424f897-4e6e-4bd5-bdd7-ee90cd132ce5.mov


Ran e2e test on macOS and it looks good for the corner radius token page.

### Pull request checklist

This PR has considered (when applicable):
- [ ] Automated Tests
- [ ] Documentation and examples
- [ ] Keyboard Accessibility
- [ ] Voiceover
- [ ] Internationalization and Right-to-left Layouts
2022-11-16 19:04:52 +00:00
lyzhan7 be58e1ecbf
Add stroke width tokens test page (#2231)
* Create stroke width test page

* Update add stroke width to theme types

* Add stroke width to iOS theme

* Add empty stroke width object to other themes

* Update test to use stroke width from apple theme

* Change files

* Update snapshots

* Change files

* Revert "Change files"

This reverts commit 89e94fd727.

* Revert "Update snapshots"

This reverts commit 0a5e0b5841.

* Revert "Change files"

This reverts commit d2a5e2dd2f.

* Revert "Update test to use stroke width from apple theme"

This reverts commit 80308cc994.

* Revert "Add empty stroke width object to other themes"

This reverts commit a41b883146.

* Revert "Add stroke width to iOS theme"

This reverts commit 6f9e4d18c6.

* Revert "Update add stroke width to theme types"

This reverts commit 36393ac1c9.

* Update platforms, update tokens, update style with usememo

* Change files

* Update tester package to include theme tokens

* Add dark mode, use fluent corlors

* Remove unused import

* Use a color alias token

* Revert "Use a color alias token"

This reverts commit e88331ab7a.

* Possible fix for e2e test - rename STROKEWIDTH_TESTPAGE

* Potential e2e test fix 2 - make naming consistent

* Used wrong constant

* Add stroke width e2e test

* Alphabetize + add windows to list of platforms
2022-11-16 10:15:45 -08:00
UI-Fabric-RN-Bot 159821ed50 📦 applying package updates ***NO_CI*** 2022-11-16 12:15:43 +00:00
Valentina c9fa4c0b89
Added Icon component (#2315)
* Added Icon component
2022-11-16 12:56:34 +01:00
UI-Fabric-RN-Bot fc600cf3fc 📦 applying package updates ***NO_CI*** 2022-11-16 08:47:26 +00:00
Rohan Prasad ac846edd3f
[Checkbox - Android] Initial tokens for Checkbox on android (#2326)
* add initial checkbox tokens

* Change files

* modify tester app and tokens update

* add: checkbox android tokens mapping

* Change files

* checkbox token changes and update android tester app

* Change files

* remove utils & address pr feedback

Co-authored-by: Rohan Prasad <prasadro@microsoft.com>
2022-11-16 13:56:33 +05:30
UI-Fabric-RN-Bot 68aa56299f 📦 applying package updates ***NO_CI*** 2022-11-15 22:52:05 +00:00
Samuel Freiberg 99dfa4c136
Fixing Avatar E2E Testing Constant (#2334)
* Fixing Avatar constant

* Change files
2022-11-15 15:33:42 -07:00
UI-Fabric-RN-Bot 3ba4823909 📦 applying package updates ***NO_CI*** 2022-11-15 19:10:36 +00:00
Lawrence Win d223ad9b4f
Fix Callout testID bug and re-enable Callout E2E tests (#2311)
* Modify and re-enable callout e2e tests

* Re-enable disabled tests + fix persona test assert

We can re-enable these because we bumped react-native-win32 which
fixed our assert issue. Also replaced persona test images with ones that
don't return a 404.

* Change files

* Disable callout page for uwp

* Disable callout test for uwp

* Edit callout e2etest page for prop testing

* Add more reliable image sources for Persona page

* Image sources are even better now

Co-authored-by: Larry Win <winlarry@microsoft.com>
2022-11-15 10:53:50 -08:00
Lawrence Win 069de01c53
Fix icon / button assert in native test app (#2333)
* Fix icon / button assert in native test app

* Forgot to commit this 😅

* Change files

Co-authored-by: Lawrence Win <winlarry@microsoft.com>
2022-11-15 10:50:53 -08:00
UI-Fabric-RN-Bot dadf407c42 📦 applying package updates ***NO_CI*** 2022-11-13 09:17:07 +00:00
lenahong 42685ad6d7
Fix double press behavior for Link (#2308)
* fix double clicking on inline links

* remove icon hook from interactive-hooks

* add textpackage dep

* run prettier

* Change files

* add documentation

* pull out platform check as a variable
2022-11-13 00:57:51 -08:00