Skip to content

Commit 743bd15

Browse files
authored
[Proposal] Order imports using the eslint import plugin (#2632)
* Add import plugin (eslintrc.json, package.json, yarn.lock) * Changes from running yarn lint --fix * Change files * Change import order config "warn" to "error" * Run yarn lint --fix again + some manual fixes * Change files * Run prettier * Re-order - move standard libraries (react/react native) to the top * Run yarn lint --fix after previous change * Change files * Bad merge
1 parent ddc903d commit 743bd15

File tree

786 files changed

+2899
-1377
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

786 files changed

+2899
-1377
lines changed

.eslintrc.json

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"browser": true
77
},
88
"parser": "@typescript-eslint/parser",
9-
"plugins": ["@typescript-eslint"],
9+
"plugins": ["@typescript-eslint", "import"],
1010
"rules": {
1111
"indent": "off",
1212
"no-unused-vars": "off",
@@ -29,7 +29,26 @@
2929
"@typescript-eslint/no-object-literal-type-assertion": "off",
3030
"@typescript-eslint/array-type": "off",
3131
"@typescript-eslint/no-var-requires": "off",
32-
"@typescript-eslint/no-unused-vars": "off"
32+
"@typescript-eslint/no-unused-vars": "off",
33+
"import/order": [
34+
"error",
35+
{
36+
"newlines-between": "always",
37+
"groups": ["builtin", "external", "internal", ["parent", "sibling", "index"]],
38+
"pathGroups": [
39+
{
40+
"pattern": "react+(|-native)",
41+
"group": "external",
42+
"position": "before"
43+
}
44+
],
45+
"pathGroupsExcludedImportTypes": ["react"],
46+
"alphabetize": {
47+
"order": "asc",
48+
"caseInsensitive": true
49+
}
50+
}
51+
]
3352
},
3453
"overrides": [
3554
{

apps/E2E/src/ActivityIndicator/pages/ActivityIndicatorPageObject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { HOMEPAGE_ACTIVITY_INDICATOR_BUTTON, ACTIVITY_INDICATOR_TESTPAGE, ACTIVITY_INDICATOR_TEST_COMPONENT } from '../consts';
21
import { BasePage } from '../../common/BasePage';
2+
import { HOMEPAGE_ACTIVITY_INDICATOR_BUTTON, ACTIVITY_INDICATOR_TESTPAGE, ACTIVITY_INDICATOR_TEST_COMPONENT } from '../consts';
33

44
class ActivityIndicatorPageObject extends BasePage {
55
/*****************************************/

apps/E2E/src/Avatar/pages/AvatarPageObject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { AVATAR_TESTPAGE, HOMEPAGE_AVATAR_BUTTON, AVATAR_TEST_COMPONENT, AVATAR_SECONDARY_TEST_COMPONENT } from '../consts';
21
import { BasePage } from '../../common/BasePage';
2+
import { AVATAR_TESTPAGE, HOMEPAGE_AVATAR_BUTTON, AVATAR_TEST_COMPONENT, AVATAR_SECONDARY_TEST_COMPONENT } from '../consts';
33
class AvatarPageObject extends BasePage {
44
/*****************************************/
55
/**************** Getters ****************/

apps/E2E/src/Avatar/specs/Avatar.spec.win.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import AvatarPageObject from '../pages/AvatarPageObject';
21
import { Attribute, LINK_A11Y_ROLE, IMAGE_A11Y_ROLE } from '../../common/consts';
32
import { AVATAR_ACCESSIBILITY_LABEL, AVATAR_ACCESSIBILITY_LABEL_BY_NAME, AVATAR_ACCESSIBILITY_HINT } from '../consts';
3+
import AvatarPageObject from '../pages/AvatarPageObject';
44

55
// Before testing begins, allow up to 60 seconds for app to open
66
describe('Avatar Testing Initialization', () => {

apps/E2E/src/ButtonLegacy/pages/ButtonLegacyPageObject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
import { BasePage, By } from '../../common/BasePage';
12
import {
23
BUTTON_TESTPAGE,
34
BUTTON_TEST_COMPONENT_DEPRECATED,
45
BUTTON_NO_A11Y_LABEL_COMPONENT_DEPRECATED,
56
HOMEPAGE_BUTTON_BUTTON,
67
BUTTON_ON_PRESS_DEPRECATED,
78
} from '../consts';
8-
import { BasePage, By } from '../../common/BasePage';
99
class ButtonLegacyPageObject extends BasePage {
1010
/******************************************************************/
1111
/**************** UI Element Interaction Methods ******************/

apps/E2E/src/ButtonLegacy/specs/ButtonLegacy.spec.win.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import ButtonLegacyPageObject from '../pages/ButtonLegacyPageObject';
21
import { BUTTON_A11Y_ROLE, Keys, Attribute } from '../../common/consts';
32
import { BUTTON_ACCESSIBILITY_LABEL_DEPRECATED, BUTTON_TEST_COMPONENT_LABEL_DEPRECATED } from '../consts';
3+
import ButtonLegacyPageObject from '../pages/ButtonLegacyPageObject';
44

55
// Before testing begins, allow up to 60 seconds for app to open
66
describe('Button Legacy Testing Initialization', () => {

apps/E2E/src/ButtonV1/specs/ButtonV1.spec.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import { BUTTON_TEST_COMPONENT } from '../../ButtonLegacy/consts';
12
import { AndroidAttribute, ANDROID_BUTTON } from '../../common/consts';
23
import ButtonV1PageObject from '../pages/ButtonV1PageObject';
3-
import { BUTTON_TEST_COMPONENT } from '../../ButtonLegacy/consts';
44

55
// Before testing begins, allow up to 60 seconds for app to open
66
describe('Button Testing Initialization', () => {

apps/E2E/src/ButtonV1/specs/ButtonV1.spec.win.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import ButtonV1PageObject from '../pages/ButtonV1PageObject';
2-
import { BUTTON_A11Y_ROLE, Keys, Attribute } from '../../common/consts';
31
import { BUTTON_ACCESSIBILITY_LABEL, BUTTON_TEST_COMPONENT_LABEL } from '../../ButtonLegacy/consts';
2+
import { BUTTON_A11Y_ROLE, Keys, Attribute } from '../../common/consts';
3+
import ButtonV1PageObject from '../pages/ButtonV1PageObject';
44

55
// Before testing begins, allow up to 60 seconds for app to open
66
describe('ButtonV1 Testing Initialization', () => {

apps/E2E/src/Callout/pages/CalloutPageObject.win.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { CALLOUT_TESTPAGE, CALLOUT_TEST_COMPONENT, HOMEPAGE_CALLOUT_BUTTON, BUTTON_TO_OPEN_CALLOUT } from '../consts';
21
import { BasePage, By } from '../../common/BasePage';
2+
import { CALLOUT_TESTPAGE, CALLOUT_TEST_COMPONENT, HOMEPAGE_CALLOUT_BUTTON, BUTTON_TO_OPEN_CALLOUT } from '../consts';
33

44
class CalloutPageObject extends BasePage {
55
/******************************************************************/

apps/E2E/src/Callout/specs/Callout.spec.win.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import CalloutPageObject from '../pages/CalloutPageObject.win';
2-
import { CALLOUT_ACCESSIBILITY_LABEL } from '../consts';
31
import { Attribute, CALLOUT_A11Y_ROLE } from '../../common/consts';
2+
import { CALLOUT_ACCESSIBILITY_LABEL } from '../consts';
3+
import CalloutPageObject from '../pages/CalloutPageObject.win';
44

55
// Before testing begins, allow up to 60 seconds for app to open
66
describe('Callout Testing Initialization', () => {

apps/E2E/src/CheckboxLegacy/specs/CheckboxLegacy.spec.win.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import CheckboxLegacyPageObject from '../pages/CheckboxLegacyPageObject';
2-
import { CHECKBOX_TEST_COMPONENT_LABEL, CHECKBOX_ACCESSIBILITY_LABEL } from '../consts';
31
import { CHECKBOX_A11Y_ROLE, Keys, Attribute } from '../../common/consts';
2+
import { CHECKBOX_TEST_COMPONENT_LABEL, CHECKBOX_ACCESSIBILITY_LABEL } from '../consts';
3+
import CheckboxLegacyPageObject from '../pages/CheckboxLegacyPageObject';
44

55
describe('Checkbox Legacy Testing Initialization', () => {
66
it('Wait for app load', async () => {

apps/E2E/src/CheckboxV1/pages/CheckboxV1PageObject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
import { BasePage, By } from '../../common/BasePage';
12
import {
23
HOMEPAGE_CHECKBOXV1_BUTTON,
34
CHECKBOXV1_TESTPAGE,
45
CHECKBOXV1_TEST_COMPONENT,
56
CHECKBOXV1_NO_A11Y_LABEL_COMPONENT,
67
CHECKBOXV1_ON_PRESS,
78
} from '../consts';
8-
import { BasePage, By } from '../../common/BasePage';
99

1010
class CheckboxV1PageObject extends BasePage {
1111
/******************************************************************/

apps/E2E/src/CheckboxV1/specs/CheckboxV1.spec.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import CheckboxV1PageObject from '../pages/CheckboxV1PageObject';
21
import { AndroidAttribute, ANDROID_CHECKBOX } from '../../common/consts';
32
import { CHECKBOXV1_TEST_COMPONENT } from '../consts';
3+
import CheckboxV1PageObject from '../pages/CheckboxV1PageObject';
44

55
describe('CheckboxV1 Testing Initialization', () => {
66
it('Wait for app load', async () => {

apps/E2E/src/CheckboxV1/specs/CheckboxV1.spec.win.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import CheckboxV1PageObject from '../pages/CheckboxV1PageObject';
2-
import { CHECKBOXV1_TEST_COMPONENT_LABEL, CHECKBOXV1_ACCESSIBILITY_LABEL } from '../consts';
31
import { CHECKBOX_A11Y_ROLE, Keys, Attribute } from '../../common/consts';
2+
import { CHECKBOXV1_TEST_COMPONENT_LABEL, CHECKBOXV1_ACCESSIBILITY_LABEL } from '../consts';
3+
import CheckboxV1PageObject from '../pages/CheckboxV1PageObject';
44

55
describe('CheckboxV1 Testing Initialization', () => {
66
it('Wait for app load', async () => {

apps/E2E/src/ColorTokens/pages/ColorTokensPageObject.win.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { HOMEPAGE_COLORTOKEN_BUTTON, COLORTOKEN_TESTPAGE } from '../consts';
21
import { BasePage } from '../../common/BasePage';
2+
import { HOMEPAGE_COLORTOKEN_BUTTON, COLORTOKEN_TESTPAGE } from '../consts';
33

44
class ColorTokenPageObject extends BasePage {
55
/*****************************************/

apps/E2E/src/ContextualMenu/pages/ContextualMenuPageObject.win.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
import { BasePage, By } from '../../common/BasePage';
2+
import { Keys } from '../../common/consts';
13
import {
24
CONTEXTUALMENU_TESTPAGE,
35
CONTEXTUALMENU_TEST_COMPONENT,
46
HOMEPAGE_CONTEXTUALMENU_BUTTON,
57
CONTEXTUALMENUITEM_TEST_COMPONENT,
68
} from '../consts';
7-
import { BasePage, By } from '../../common/BasePage';
8-
import { Keys } from '../../common/consts';
99

1010
class ContextualMenuPageObject extends BasePage {
1111
/******************************************************************/

apps/E2E/src/ContextualMenu/specs/ContextualMenu.spec.win.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import ContextualMenuPageObject from '../pages/ContextualMenuPageObject.win';
21
import { PAGE_TIMEOUT, Keys } from '../../common/consts';
2+
import ContextualMenuPageObject from '../pages/ContextualMenuPageObject.win';
33

44
// Before testing begins, allow up to 60 seconds for app to open
55
describe('ContextualMenu Testing Initialization', () => {

apps/E2E/src/CornerRadiusTokens/pages/CornerRadiusTokensPageObject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { HOMEPAGE_CORNERRADIUS_TESTPAGE, HOMEPAGE_CORNERRADIUS_BUTTON } from '../consts';
21
import { BasePage } from '../../common/BasePage';
2+
import { HOMEPAGE_CORNERRADIUS_TESTPAGE, HOMEPAGE_CORNERRADIUS_BUTTON } from '../consts';
33

44
class CornerRadiusTokensPageObject extends BasePage {
55
/*****************************************/

apps/E2E/src/FocusTrapZone/pages/FocusTrapZonePageObject.win.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { FOCUSTRAPZONE_TESTPAGE, FOCUSTRAPZONE_TEST_COMPONENT, HOMEPAGE_FOCUSTRAPZONE_BUTTON } from '../consts';
21
import { BasePage } from '../../common/BasePage';
2+
import { FOCUSTRAPZONE_TESTPAGE, FOCUSTRAPZONE_TEST_COMPONENT, HOMEPAGE_FOCUSTRAPZONE_BUTTON } from '../consts';
33

44
class FocusTrapZonePageObject extends BasePage {
55
/*****************************************/

apps/E2E/src/FocusZone/consts.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { FocusZoneDirection } from '@fluentui-react-native/focus-zone';
2+
23
import type { GridButton } from './pages/FocusZonePageObject';
34

45
export const HOMEPAGE_FOCUSZONE_BUTTON = 'Homepage_FocusZone_Button';

apps/E2E/src/FocusZone/pages/FocusZonePageObject.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { FocusZoneDirection } from '@fluentui-react-native/focus-zone';
2+
23
import { BasePage, By } from '../../common/BasePage';
34
import {
45
FOCUSZONE_CIRCLE_NAV_SWITCH,

apps/E2E/src/IconLegacy/pages/IconLegacyPageObject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { ICON_TESTPAGE, ICON_TEST_COMPONENT, HOMEPAGE_ICON_BUTTON, ICON_NO_A11Y_LABEL_COMPONENT } from '../consts';
21
import { BasePage } from '../../common/BasePage';
2+
import { ICON_TESTPAGE, ICON_TEST_COMPONENT, HOMEPAGE_ICON_BUTTON, ICON_NO_A11Y_LABEL_COMPONENT } from '../consts';
33

44
class IconLegacyPageObject extends BasePage {
55
/*****************************************/

apps/E2E/src/IconV1/pages/IconV1PageObject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { ICON_TESTPAGE, ICON_TEST_COMPONENT, HOMEPAGE_ICON_BUTTON, ICON_FONT_TEST_COMPONENT } from '../../IconLegacy/consts';
21
import { BasePage } from '../../common/BasePage';
2+
import { ICON_TESTPAGE, ICON_TEST_COMPONENT, HOMEPAGE_ICON_BUTTON, ICON_FONT_TEST_COMPONENT } from '../../IconLegacy/consts';
33

44
class IconV1PageObject extends BasePage {
55
/*****************************************/

apps/E2E/src/IconV1/specs/IconV1.spec.win.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import IconV1PageObject from '../pages/IconV1PageObject';
21
import { Attribute, IMAGE_A11Y_ROLE } from '../../common/consts';
32
import { ICON_ACCESSIBILITY_LABEL } from '../../IconLegacy/consts';
3+
import IconV1PageObject from '../pages/IconV1PageObject';
44

55
// Before testing begins, allow up to 60 seconds for app to open
66
describe('IconV1 Testing Initialization', () => {

apps/E2E/src/LinkLegacy/pages/LinkLegacyPageObject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { LINK_TESTPAGE, LINK_TEST_COMPONENT, HOMEPAGE_LINK_BUTTON, LINK_NO_A11Y_LABEL_COMPONENT } from '../consts';
21
import { BasePage } from '../../common/BasePage';
2+
import { LINK_TESTPAGE, LINK_TEST_COMPONENT, HOMEPAGE_LINK_BUTTON, LINK_NO_A11Y_LABEL_COMPONENT } from '../consts';
33

44
class LinkLegacyPageObject extends BasePage {
55
/*****************************************/

apps/E2E/src/LinkLegacy/specs/LinkLegacy.spec.win.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import LinkLegacyPageObject from '../pages/LinkLegacyPageObject';
2-
import { LINK_ACCESSIBILITY_LABEL } from '../consts';
31
import { LINK_A11Y_ROLE, Attribute } from '../../common/consts';
2+
import { LINK_ACCESSIBILITY_LABEL } from '../consts';
3+
import LinkLegacyPageObject from '../pages/LinkLegacyPageObject';
44

55
// Before testing begins, allow up to 60 seconds for app to open
66
describe('Link Testing Initialization', () => {

apps/E2E/src/LinkV1/pages/LinkV1PageObject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { LINKV1_TESTPAGE, LINKV1_TEST_COMPONENT, HOMEPAGE_LINKV1_BUTTON, LINKV1_NO_A11Y_LABEL_COMPONENT } from '../consts';
21
import { BasePage, By } from '../../common/BasePage';
2+
import { LINKV1_TESTPAGE, LINKV1_TEST_COMPONENT, HOMEPAGE_LINKV1_BUTTON, LINKV1_NO_A11Y_LABEL_COMPONENT } from '../consts';
33

44
class LinkV1PageObject extends BasePage {
55
/******************************************************************/

apps/E2E/src/LinkV1/specs/LinkV1.spec.win.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import LinkV1PageObject from '../pages/LinkV1PageObject';
2-
import { LINKV1_ACCESSIBILITY_LABEL } from '../consts';
31
import { LINK_A11Y_ROLE, Attribute, Keys } from '../../common/consts';
2+
import { LINKV1_ACCESSIBILITY_LABEL } from '../consts';
3+
import LinkV1PageObject from '../pages/LinkV1PageObject';
44

55
// Before testing begins, allow up to 60 seconds for app to open
66
describe('LinkV1 Testing Initialization', () => {

apps/E2E/src/MenuButtonLegacy/specs/MenuButtonLegacy.spec.win.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import MenuButtonLegacyPageObject from '../pages/MenuButtonLegacyPageObject.win';
21
import { MENUBUTTON_A11Y_ROLE, Keys, Attribute } from '../../common/consts';
32
import { MENU_BUTTON_ACCESSIBILITY_LABEL, MENU_BUTTON_TEST_COMPONENT_LABEL } from '../consts';
3+
import MenuButtonLegacyPageObject from '../pages/MenuButtonLegacyPageObject.win';
44

55
// Before testing begins, allow up to 60 seconds for app to open
66
describe('MenuButton Legacy Testing Initialization', () => {

apps/E2E/src/MenuButtonV1/pages/MenuButtonV1PageObject.win.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
import { BasePage, By } from '../../common/BasePage';
12
import {
23
MENUBUTTONV1_TESTPAGE,
34
MENUBUTTONV1_TEST_COMPONENT,
45
HOMEPAGE_MENUBUTTONV1_BUTTON,
56
MENUBUTTONV1_NO_A11Y_LABEL_COMPONENT,
67
} from '../consts';
7-
import { BasePage, By } from '../../common/BasePage';
88

99
class MenuButtonV1PageObject extends BasePage {
1010
/*****************************************/

apps/E2E/src/MenuButtonV1/specs/MenuButtonV1.spec.win.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import MenuButtonV1PageObject from '../pages/MenuButtonV1PageObject.win';
21
import { MENUBUTTON_A11Y_ROLE, Attribute } from '../../common/consts';
32
import { MENUBUTTONV1_ACCESSIBILITY_LABEL, MENUBUTTONV1_TEST_COMPONENT_LABEL } from '../consts';
3+
import MenuButtonV1PageObject from '../pages/MenuButtonV1PageObject.win';
44

55
// Before testing begins, allow up to 60 seconds for app to open
66
describe('MenuButtonV1 Testing Initialization', () => {

apps/E2E/src/Persona/pages/PersonaPageObject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { PERSONA_TESTPAGE, PERSONA_TEST_COMPONENT, HOMEPAGE_PERSONA_BUTTON } from '../consts';
21
import { BasePage } from '../../common/BasePage';
2+
import { PERSONA_TESTPAGE, PERSONA_TEST_COMPONENT, HOMEPAGE_PERSONA_BUTTON } from '../consts';
33

44
class PersonaPageObject extends BasePage {
55
/*****************************************/

apps/E2E/src/PersonaCoin/pages/PersonaCoinPageObject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { PERSONACOIN_TESTPAGE, PERSONACOIN_TEST_COMPONENT, HOMEPAGE_PERSONACOIN_BUTTON } from '../consts';
21
import { BasePage } from '../../common/BasePage';
2+
import { PERSONACOIN_TESTPAGE, PERSONACOIN_TEST_COMPONENT, HOMEPAGE_PERSONACOIN_BUTTON } from '../consts';
33

44
class PersonaCoinPageObject extends BasePage {
55
/*****************************************/

apps/E2E/src/Pressable/pages/PressablePageObject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { PRESSABLE_TESTPAGE, PRESSABLE_TEST_COMPONENT, HOMEPAGE_PRESSABLE_BUTTON } from '../consts';
21
import { BasePage } from '../../common/BasePage';
2+
import { PRESSABLE_TESTPAGE, PRESSABLE_TEST_COMPONENT, HOMEPAGE_PRESSABLE_BUTTON } from '../consts';
33

44
class PressablePageObject extends BasePage {
55
/*****************************************/

apps/E2E/src/Separator/pages/SeparatorPageObject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { SEPARATOR_TESTPAGE, SEPARATOR_TEST_COMPONENT, HOMEPAGE_SEPARATOR_BUTTON } from '../consts';
21
import { BasePage } from '../../common/BasePage';
2+
import { SEPARATOR_TESTPAGE, SEPARATOR_TEST_COMPONENT, HOMEPAGE_SEPARATOR_BUTTON } from '../consts';
33

44
class SeparatorPageObject extends BasePage {
55
/*****************************************/

apps/E2E/src/Shadow/pages/ShadowPageObject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { SHADOW_TESTPAGE, HOMEPAGE_SHADOW_BUTTON } from '../consts';
21
import { BasePage } from '../../common/BasePage';
2+
import { SHADOW_TESTPAGE, HOMEPAGE_SHADOW_BUTTON } from '../consts';
33

44
class ShadowTestPage extends BasePage {
55
/*****************************************/

apps/E2E/src/Shimmer/pages/ShimmerPageObject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { HOMEPAGE_SHIMMER_BUTTON, SHIMMER_TESTPAGE, SHIMMER_TEST_COMPONENT } from '../consts';
21
import { BasePage } from '../../common/BasePage';
2+
import { HOMEPAGE_SHIMMER_BUTTON, SHIMMER_TESTPAGE, SHIMMER_TEST_COMPONENT } from '../consts';
33

44
class ShimmerPageObject extends BasePage {
55
/*****************************************/

apps/E2E/src/Spacing/pages/SpacingTokensPageObject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { SPACING_TESTPAGE, HOMEPAGE_SPACING_BUTTON } from '../consts';
21
import { BasePage } from '../../common/BasePage';
2+
import { SPACING_TESTPAGE, HOMEPAGE_SPACING_BUTTON } from '../consts';
33

44
class SpacingTokensPageObject extends BasePage {
55
/*****************************************/

apps/E2E/src/Spinner/pages/SpinnerPageObject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { HOMEPAGE_SPINNER_BUTTON, SPINNER_TESTPAGE, SPINNER_TEST_COMPONENT } from '../consts';
21
import { BasePage } from '../../common/BasePage';
2+
import { HOMEPAGE_SPINNER_BUTTON, SPINNER_TESTPAGE, SPINNER_TEST_COMPONENT } from '../consts';
33

44
class SpinnerPageObject extends BasePage {
55
/*****************************************/

apps/E2E/src/StrokeWidthTokens/pages/StrokeWidthTokensPageObject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { STROKEWIDTH_TESTPAGE, HOMEPAGE_STROKEWIDTH_BUTTON } from '../consts';
21
import { BasePage } from '../../common/BasePage';
2+
import { STROKEWIDTH_TESTPAGE, HOMEPAGE_STROKEWIDTH_BUTTON } from '../consts';
33

44
class StrokeWidthTokensPageObject extends BasePage {
55
/*****************************************/

apps/E2E/src/Svg/pages/SvgPageObject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { SVG_TESTPAGE, SVG_TEST_COMPONENT, HOMEPAGE_SVG_BUTTON } from '../consts';
21
import { BasePage } from '../../common/BasePage';
2+
import { SVG_TESTPAGE, SVG_TEST_COMPONENT, HOMEPAGE_SVG_BUTTON } from '../consts';
33

44
class SvgPageObject extends BasePage {
55
/*****************************************/

apps/E2E/src/Switch/specs/Switch.spec.win.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import SwitchPageObject from '../pages/SwitchPageObject';
21
import { BUTTON_A11Y_ROLE, Keys, Attribute } from '../../common/consts';
32
import { SWITCH_TEST_COMPONENT_LABEL, SWITCH_ACCESSIBILITY_LABEL } from '../consts';
3+
import SwitchPageObject from '../pages/SwitchPageObject';
44

55
// Before testing begins, allow up to 60 seconds for app to open
66
describe('Switch Testing Initialization', () => {

apps/E2E/src/TabsLegacy/pages/TabsLegacyPageObject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { BasePage, By } from '../../common/BasePage';
12
import {
23
TABS_TESTPAGE,
34
TABS_TEST_COMPONENT,
@@ -9,7 +10,6 @@ import {
910
SECOND_TABS_ITEM_CONTENT,
1011
THIRD_TABS_ITEM_CONTENT,
1112
} from '../consts';
12-
import { BasePage, By } from '../../common/BasePage';
1313

1414
/* This enum gives the spec file an EASY way to interact with SPECIFIC UI elements on the page.
1515
* The spec file should import this enum and use it when wanting to interact with different elements on the page.

apps/E2E/src/TabsLegacy/specs/TabsLegacy.spec.win.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import TabsLegacyPageObject from '../pages/TabsLegacyPageObject';
21
import { TAB_A11Y_ROLE, TABITEM_A11Y_ROLE, Keys, Attribute } from '../../common/consts';
2+
import TabsLegacyPageObject from '../pages/TabsLegacyPageObject';
33

44
// Before testing begins, allow up to 60 seconds for app to open
55
describe('Tabs Legacy Testing Initialization', () => {

apps/E2E/src/TabsV1/pages/TabsV1PageObject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { BasePage, By } from '../../common/BasePage';
12
import {
23
TABSV1_TESTPAGE,
34
TABSV1_TEST_COMPONENT,
@@ -9,7 +10,6 @@ import {
910
TABSITEMV1_CONTENT_2,
1011
TABSITEMV1_CONTENT_3,
1112
} from '../consts';
12-
import { BasePage, By } from '../../common/BasePage';
1313

1414
export type TabItem = 'First' | 'Second' | 'Third';
1515

0 commit comments

Comments
 (0)