@fluentui-react-native/tester 0.129.6 → 0.129.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/CHANGELOG.json +73 -1
  2. package/CHANGELOG.md +17 -2
  3. package/lib/E2E/src/FocusZone/consts.d.ts +3 -2
  4. package/lib/E2E/src/FocusZone/consts.d.ts.map +1 -1
  5. package/lib/E2E/src/FocusZone/consts.js.map +1 -1
  6. package/lib/E2E/src/FocusZone/pages/FocusZonePageObject.d.ts +28 -0
  7. package/lib/E2E/src/FocusZone/pages/FocusZonePageObject.d.ts.map +1 -0
  8. package/lib/E2E/src/FocusZone/pages/FocusZonePageObject.js +189 -0
  9. package/lib/E2E/src/FocusZone/pages/FocusZonePageObject.js.map +1 -0
  10. package/lib/E2E/src/common/BasePage.d.ts +67 -0
  11. package/lib/E2E/src/common/BasePage.d.ts.map +1 -0
  12. package/lib/E2E/src/common/BasePage.js +654 -0
  13. package/lib/E2E/src/common/BasePage.js.map +1 -0
  14. package/lib/E2E/src/common/consts.d.ts.map +1 -1
  15. package/lib/E2E/src/common/consts.js.map +1 -1
  16. package/lib/fluent-tester/src/TestComponents/Button/ButtonSizeTestSection.d.ts.map +1 -1
  17. package/lib/fluent-tester/src/TestComponents/Button/ButtonSizeTestSection.js +2 -1
  18. package/lib/fluent-tester/src/TestComponents/Button/ButtonSizeTestSection.js.map +1 -1
  19. package/lib/fluent-tester/src/TestComponents/Button/ButtonTest.d.ts.map +1 -1
  20. package/lib/fluent-tester/src/TestComponents/Button/ButtonTest.js +4 -2
  21. package/lib/fluent-tester/src/TestComponents/Button/ButtonTest.js.map +1 -1
  22. package/lib/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.android.d.ts +1 -2
  23. package/lib/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.android.d.ts.map +1 -1
  24. package/lib/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.android.js +1 -22
  25. package/lib/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.android.js.map +1 -1
  26. package/lib/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.ios.d.ts +2 -0
  27. package/lib/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.ios.d.ts.map +1 -0
  28. package/lib/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.ios.js +2 -0
  29. package/lib/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.ios.js.map +1 -0
  30. package/lib/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.mobile.d.ts +3 -0
  31. package/lib/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.mobile.d.ts.map +1 -0
  32. package/lib/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.mobile.js +23 -0
  33. package/lib/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.mobile.js.map +1 -0
  34. package/lib/fluent-tester/src/TestComponents/FocusZone/FocusZoneE2ETest.d.ts +1 -1
  35. package/lib/fluent-tester/src/TestComponents/FocusZone/FocusZoneE2ETest.d.ts.map +1 -1
  36. package/lib/fluent-tester/src/TestComponents/FocusZone/FocusZoneE2ETest.js +5 -5
  37. package/lib/fluent-tester/src/TestComponents/FocusZone/FocusZoneE2ETest.js.map +1 -1
  38. package/lib-commonjs/E2E/src/FocusZone/consts.d.ts +3 -2
  39. package/lib-commonjs/E2E/src/FocusZone/consts.d.ts.map +1 -1
  40. package/lib-commonjs/E2E/src/FocusZone/consts.js.map +1 -1
  41. package/lib-commonjs/E2E/src/FocusZone/pages/FocusZonePageObject.d.ts +28 -0
  42. package/lib-commonjs/E2E/src/FocusZone/pages/FocusZonePageObject.d.ts.map +1 -0
  43. package/lib-commonjs/E2E/src/FocusZone/pages/FocusZonePageObject.js +191 -0
  44. package/lib-commonjs/E2E/src/FocusZone/pages/FocusZonePageObject.js.map +1 -0
  45. package/lib-commonjs/E2E/src/common/BasePage.d.ts +67 -0
  46. package/lib-commonjs/E2E/src/common/BasePage.d.ts.map +1 -0
  47. package/lib-commonjs/E2E/src/common/BasePage.js +658 -0
  48. package/lib-commonjs/E2E/src/common/BasePage.js.map +1 -0
  49. package/lib-commonjs/E2E/src/common/consts.d.ts.map +1 -1
  50. package/lib-commonjs/E2E/src/common/consts.js.map +1 -1
  51. package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonSizeTestSection.d.ts.map +1 -1
  52. package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonSizeTestSection.js +2 -1
  53. package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonSizeTestSection.js.map +1 -1
  54. package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonTest.d.ts.map +1 -1
  55. package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonTest.js +4 -2
  56. package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonTest.js.map +1 -1
  57. package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.android.d.ts +1 -2
  58. package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.android.d.ts.map +1 -1
  59. package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.android.js +2 -24
  60. package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.android.js.map +1 -1
  61. package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.ios.d.ts +2 -0
  62. package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.ios.d.ts.map +1 -0
  63. package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.ios.js +6 -0
  64. package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.ios.js.map +1 -0
  65. package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.mobile.d.ts +3 -0
  66. package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.mobile.d.ts.map +1 -0
  67. package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.mobile.js +28 -0
  68. package/lib-commonjs/fluent-tester/src/TestComponents/Button/ButtonVariantTestSection.mobile.js.map +1 -0
  69. package/lib-commonjs/fluent-tester/src/TestComponents/FocusZone/FocusZoneE2ETest.d.ts +1 -1
  70. package/lib-commonjs/fluent-tester/src/TestComponents/FocusZone/FocusZoneE2ETest.d.ts.map +1 -1
  71. package/lib-commonjs/fluent-tester/src/TestComponents/FocusZone/FocusZoneE2ETest.js +14 -14
  72. package/lib-commonjs/fluent-tester/src/TestComponents/FocusZone/FocusZoneE2ETest.js.map +1 -1
  73. package/package.json +8 -8
  74. package/src/TestComponents/Button/ButtonSizeTestSection.tsx +3 -1
  75. package/src/TestComponents/Button/ButtonTest.tsx +4 -2
  76. package/src/TestComponents/Button/ButtonVariantTestSection.android.tsx +1 -45
  77. package/src/TestComponents/Button/ButtonVariantTestSection.ios.tsx +1 -0
  78. package/src/TestComponents/Button/ButtonVariantTestSection.mobile.tsx +45 -0
  79. package/src/TestComponents/FocusZone/FocusZoneE2ETest.tsx +15 -14
  80. package/tsconfig.json +2 -1
@@ -0,0 +1,67 @@
1
+ /// <reference types="webdriverio/async" />
2
+ import type { AndroidAttribute } from './consts';
3
+ import { Keys } from './consts';
4
+ import { Attribute } from './consts';
5
+ export declare const COMPONENT_SCROLL_COORDINATES: {
6
+ x: number;
7
+ y: number;
8
+ };
9
+ export declare function By(identifier: string): Promise<WebdriverIO.Element>;
10
+ type ComponentSelector = 'Primary' | 'Secondary';
11
+ type MobilePlatform = 'android' | 'ios';
12
+ type DesktopPlatform = 'win32' | 'windows' | 'macos';
13
+ type Platform = MobilePlatform | DesktopPlatform;
14
+ /****************************** IMPORTANT! PLEASE READ! **************************************************
15
+ * Every component's page object extends this. We can assume each test page will interact with at least
16
+ * two UI elements, so we'll add integration for two UI elements in this file (See *Getters* section below).
17
+ * Every additional UI element that a test page wants to interact with should be handled in that respective
18
+ * component's page object.
19
+ *********************************************************************************************************/
20
+ export declare abstract class BasePage {
21
+ protected platform?: Platform;
22
+ constructor();
23
+ /******************************************************************/
24
+ /**************** UI Element Interaction Methods ******************/
25
+ /******************************************************************/
26
+ /**
27
+ * Checks to see if an element attribute is strictly equal to an expected value the user passes in.
28
+ * The advantage to this over testing using .isEqual in a spec is that this throws a detailed error if
29
+ * the expected and actual values don't match. This should be called for attribute tests in specs. */
30
+ compareAttribute(element: Promise<WebdriverIO.Element>, attribute: Attribute | AndroidAttribute, expectedValue: any): Promise<boolean>;
31
+ getAccessibilityRole(): Promise<string>;
32
+ getAccessibilityLabel(componentSelector: ComponentSelector): Promise<string>;
33
+ isPageLoaded(): Promise<boolean>;
34
+ isButtonInView(): Promise<boolean>;
35
+ clickComponent(): Promise<void>;
36
+ click(element: Promise<WebdriverIO.Element>): Promise<void>;
37
+ sendKeys(element: Promise<WebdriverIO.Element>, keys: Keys[]): Promise<void>;
38
+ getElementAttribute(element: WebdriverIO.Element, attribute: Attribute): Promise<string>;
39
+ mobileScrollToComponentButton(): Promise<void>;
40
+ waitForPageDisplayed(timeout?: number): Promise<void>;
41
+ waitForButtonDisplayed(timeout?: number): Promise<void>;
42
+ waitForPrimaryElementDisplayed(timeout?: number): Promise<void>;
43
+ scrollToTestElement(component?: WebdriverIO.Element): Promise<void>;
44
+ mobileScrollToTestElement(componentIdentifier?: string): Promise<void>;
45
+ waitForCondition(condition: () => Promise<boolean>, errorMsg?: string, timeout?: number, interval?: number): Promise<void>;
46
+ didAssertPopup(): Promise<boolean>;
47
+ /*****************************************/
48
+ /**************** Getters ****************/
49
+ /*****************************************/
50
+ get _testPage(): Promise<WebdriverIO.Element>;
51
+ get _primaryComponent(): Promise<WebdriverIO.Element>;
52
+ get _secondaryComponent(): Promise<WebdriverIO.Element>;
53
+ get _pageButton(): Promise<WebdriverIO.Element>;
54
+ abstract get _pageName(): string;
55
+ abstract get _pageButtonName(): string;
56
+ get _primaryComponentName(): string;
57
+ get _secondaryComponentName(): string;
58
+ get _testPageButtonScrollViewer(): Promise<WebdriverIO.Element>;
59
+ /****************** Error Messages ******************/
60
+ get ERRORMESSAGE_SUFFIX(): string;
61
+ get ERRORMESSAGE_APPLOAD(): string;
62
+ get ERRORMESSAGE_PAGELOAD(): string;
63
+ get ERRORMESSAGE_ASSERT(): string;
64
+ waitForUiEvent: number;
65
+ }
66
+ export {};
67
+ //# sourceMappingURL=BasePage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BasePage.d.ts","sourceRoot":"","sources":["../../../../../E2E/src/common/BasePage.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,IAAI,EAA4C,MAAM,UAAU,CAAC;AAC1E,OAAO,EAAE,SAAS,EAAsD,MAAM,UAAU,CAAC;AAKzF,eAAO,MAAM,4BAA4B;;;CAAqB,CAAC;AAK/D,wBAAsB,EAAE,CAAC,UAAU,EAAE,MAAM,gCAM1C;AAoBD,KAAK,iBAAiB,GAClB,SAAS,GACT,WAAW,CAAC;AAEhB,KAAK,cAAc,GAAG,SAAS,GAAG,KAAK,CAAC;AAExC,KAAK,eAAe,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;AAErD,KAAK,QAAQ,GAAG,cAAc,GAAG,eAAe,CAAC;AAEjD;;;;;2GAK2G;AAE3G,8BAAsB,QAAQ;IAC5B,SAAS,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC;;IAO9B,oEAAoE;IACpE,oEAAoE;IACpE,oEAAoE;IAEpE;;;yGAGqG;IAC/F,gBAAgB,CACpB,OAAO,EAAE,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,EACrC,SAAS,EAAE,SAAS,GAAG,gBAAgB,EACvC,aAAa,EAAE,GAAG,GACjB,OAAO,CAAC,OAAO,CAAC;IAeb,oBAAoB,IAAI,OAAO,CAAC,MAAM,CAAC;IAKvC,qBAAqB,CAAC,iBAAiB,EAAE,iBAAiB,GAAG,OAAO,CAAC,MA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