Skip to content

Commit 3c0dcef

Browse files
authored
fix: rename 'risky' changes to 'requires attention'
1 parent a6c91e5 commit 3c0dcef

File tree

8 files changed

+34
-34
lines changed

8 files changed

+34
-34
lines changed

src/packages/portal/pages/PortalPage/ComparisonPages/BaseCompareToolbar.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ export abstract class BaseCompareToolbar {
88
readonly breadcrumbs = new Breadcrumbs(this.locator.getByTestId('ComparedPackagesBreadcrumbs'), 'Comparison')
99
readonly backBtn = new Button(this.locator.getByTestId('BackButton'), 'Back')
1010
readonly packageSlt = new ComparisonPagePackageSelect(this.page)
11-
readonly breakingChangesFilterBtn = new Button(this.locator.getByTestId('ChangesFilterButton-breaking'), 'Breaking changes filter')
12-
readonly semiBreakingChangesFilterBtn = new Button(this.page.getByTestId('ChangesFilterButton-semi-breaking'), 'Risky changes filter')
13-
readonly deprecatedChangesFilterBtn = new Button(this.locator.getByTestId('ChangesFilterButton-deprecated'), 'Deprecated changes filter')
14-
readonly nonBreakingChangesFilterBtn = new Button(this.locator.getByTestId('ChangesFilterButton-non-breaking'), 'Non-breaking changes filter')
15-
readonly annotationChangesFilterBtn = new Button(this.locator.getByTestId('ChangesFilterButton-annotation'), 'Annotation changes filter')
16-
readonly unclassifiedChangesFilterBtn = new Button(this.locator.getByTestId('ChangesFilterButton-unclassified'), 'Unclassified changes filter')
11+
readonly breakingChangesFilterBtn = new Button(this.locator.getByTestId('ChangesFilterButton-breaking'), 'Breaking Сhanges filter')
12+
readonly semiBreakingChangesFilterBtn = new Button(this.page.getByTestId('ChangesFilterButton-semi-breaking'), 'Changes Requiring Attention filter')
13+
readonly deprecatedChangesFilterBtn = new Button(this.locator.getByTestId('ChangesFilterButton-deprecated'), 'Deprecated Сhanges filter')
14+
readonly nonBreakingChangesFilterBtn = new Button(this.locator.getByTestId('ChangesFilterButton-non-breaking'), 'Non-breaking Сhanges filter')
15+
readonly annotationChangesFilterBtn = new Button(this.locator.getByTestId('ChangesFilterButton-annotation'), 'Annotation Сhanges filter')
16+
readonly unclassifiedChangesFilterBtn = new Button(this.locator.getByTestId('ChangesFilterButton-unclassified'), 'Unclassified Сhanges filter')
1717

1818
protected constructor(protected readonly page: Page) { }
1919
}

src/packages/portal/pages/PortalPage/ComparisonPages/ComparePackagesPage/ComparePackagesContent/OperationChangesSummary.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ import { BaseComponent, Content } from '@shared/components/base'
44
export class OperationChangesSummary extends BaseComponent {
55

66
readonly componentType: string = 'changes summary'
7-
readonly breaking = new Content(this.mainLocator.getByTestId('breaking'), `${this.componentName} Breaking changes`)
8-
readonly semiBreaking = new Content(this.mainLocator.getByTestId('semi-breaking'), `${this.componentName} Risky changes`)
9-
readonly deprecated = new Content(this.mainLocator.getByTestId('deprecated'), `${this.componentName} Deprecated changes`)
10-
readonly nonBreaking = new Content(this.mainLocator.getByTestId('non-breaking'), `${this.componentName} Non-breaking changes`)
11-
readonly annotation = new Content(this.mainLocator.getByTestId('annotation'), `${this.componentName} Annotation changes`)
12-
readonly unclassified = new Content(this.mainLocator.getByTestId('unclassified'), `${this.componentName} Unclassified changes`)
7+
readonly breaking = new Content(this.mainLocator.getByTestId('breaking'), `${this.componentName} Breaking Сhanges`)
8+
readonly semiBreaking = new Content(this.mainLocator.getByTestId('semi-breaking'), `${this.componentName} Changes Requiring Attention`)
9+
readonly deprecated = new Content(this.mainLocator.getByTestId('deprecated'), `${this.componentName} Deprecated Сhanges`)
10+
readonly nonBreaking = new Content(this.mainLocator.getByTestId('non-breaking'), `${this.componentName} Non-breaking Сhanges`)
11+
readonly annotation = new Content(this.mainLocator.getByTestId('annotation'), `${this.componentName} Annotation Сhanges`)
12+
readonly unclassified = new Content(this.mainLocator.getByTestId('unclassified'), `${this.componentName} Unclassified Сhanges`)
1313

1414
constructor(rootLocator: Locator, componentName?: string, componentType?: string) {
1515
super(rootLocator, componentName, componentType)

src/packages/portal/pages/PortalPage/VersionPage/VersionOverviewTab/OverviewSummaryTab/OverviewSummaryTabBody/OverviewValidationsContent.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ export class OverviewValidationsContent {
77
readonly deprecatedOperations = new Content(this.locator.getByTestId('NumberOfDeprecatedOperationsTypography'), 'Number of deprecated operations')
88
readonly noBwcOperations = new Content(this.locator.getByTestId('NumberOfNoBwcOperationsTypography'), 'Number of no-BWC operations')
99
readonly bwcErrors = new Content(this.locator.getByTestId('NumberOfBwcErrorsTypography'), 'Number of BWC errors')
10-
readonly breakingChanges = new Content(this.locator.getByTestId('breaking'), 'Breaking changes')
11-
readonly semiBreakingChanges = new Content(this.locator.getByTestId('semi-breaking'), 'Risky changes')
12-
readonly deprecatedChanges = new Content(this.locator.getByTestId('deprecated'), 'Deprecated changes')
13-
readonly nonBreakingChanges = new Content(this.locator.getByTestId('non-breaking'), 'Non-breaking changes')
14-
readonly annotationChanges = new Content(this.locator.getByTestId('annotation'), 'Annotation changes')
15-
readonly unclassifiedChanges = new Content(this.locator.getByTestId('unclassified'), 'Unclassified changes')
10+
readonly breakingChanges = new Content(this.locator.getByTestId('breaking'), 'Breaking Сhanges')
11+
readonly semiBreakingChanges = new Content(this.locator.getByTestId('semi-breaking'), 'Changes Requiring Attention')
12+
readonly deprecatedChanges = new Content(this.locator.getByTestId('deprecated'), 'Deprecated Сhanges')
13+
readonly nonBreakingChanges = new Content(this.locator.getByTestId('non-breaking'), 'Non-breaking Сhanges')
14+
readonly annotationChanges = new Content(this.locator.getByTestId('annotation'), 'Annotation Сhanges')
15+
readonly unclassifiedChanges = new Content(this.locator.getByTestId('unclassified'), 'Unclassified Сhanges')
1616

1717
constructor(private readonly locator: Locator) { }
1818
}

src/packages/portal/pages/PortalPage/VersionPage/VersionPackagePage/PackageTabToolbar.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ export class PackageTabToolbar {
77

88
readonly comparedToLnk = new Link(this.page.getByTestId('ComparedToLink'), 'Compared to')
99
readonly sltApiType = new ApiTypeSelect(this.page)
10-
readonly breakingChangesFilterBtn = new Button(this.page.getByTestId('ChangesFilterButton-breaking'), 'Breaking changes filter')
11-
readonly semiBreakingChangesFilterBtn = new Button(this.page.getByTestId('ChangesFilterButton-semi-breaking'), 'Risky changes filter')
12-
readonly deprecatedChangesFilterBtn = new Button(this.page.getByTestId('ChangesFilterButton-deprecated'), 'Deprecated changes filter')
13-
readonly nonBreakingChangesFilterBtn = new Button(this.page.getByTestId('ChangesFilterButton-non-breaking'), 'Non-breaking changes filter')
14-
readonly annotationChangesFilterBtn = new Button(this.page.getByTestId('ChangesFilterButton-annotation'), 'Annotation changes filter')
15-
readonly unclassifiedChangesFilterBtn = new Button(this.page.getByTestId('ChangesFilterButton-unclassified'), 'Unclassified changes filter')
10+
readonly breakingChangesFilterBtn = new Button(this.page.getByTestId('ChangesFilterButton-breaking'), 'Breaking Сhanges filter')
11+
readonly semiBreakingChangesFilterBtn = new Button(this.page.getByTestId('ChangesFilterButton-semi-breaking'), 'Changes Requiring Attention filter')
12+
readonly deprecatedChangesFilterBtn = new Button(this.page.getByTestId('ChangesFilterButton-deprecated'), 'Deprecated Сhanges filter')
13+
readonly nonBreakingChangesFilterBtn = new Button(this.page.getByTestId('ChangesFilterButton-non-breaking'), 'Non-breaking Сhanges filter')
14+
readonly annotationChangesFilterBtn = new Button(this.page.getByTestId('ChangesFilterButton-annotation'), 'Annotation Сhanges filter')
15+
readonly unclassifiedChangesFilterBtn = new Button(this.page.getByTestId('ChangesFilterButton-unclassified'), 'Unclassified Сhanges filter')
1616
readonly searchbar = new SearchBar(this.page.getByTestId('SearchOperations'), 'Operations')
1717
readonly filtersBtn = new Button(this.page.getByTestId('FiltersButton'), 'Filters')
1818
readonly listViewBtn = new Button(this.page.locator('button[value=list]'), 'List View')

src/packages/shared/components/custom/table-cells/ChangesTableCell.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import { Content, TableCell } from '@shared/components/base'
33

44
export class ChangesTableCell extends TableCell {
55

6-
readonly breakingChanges = new Content(this.mainLocator.getByTestId('breaking'), 'Breaking changes')
7-
readonly deprecatedChanges = new Content(this.mainLocator.getByTestId('deprecated'), 'Deprecated changes')
8-
readonly nonBreakingChanges = new Content(this.mainLocator.getByTestId('non-breaking'), 'Non-breaking changes')
9-
readonly semiBreakingChanges = new Content(this.mainLocator.getByTestId('semi-breaking'), 'Risky changes')
10-
readonly annotationChanges = new Content(this.mainLocator.getByTestId('annotation'), 'Annotation changes')
11-
readonly unclassifiedChanges = new Content(this.mainLocator.getByTestId('unclassified'), 'Unclassified changes')
6+
readonly breakingChanges = new Content(this.mainLocator.getByTestId('breaking'), 'Breaking Сhanges')
7+
readonly deprecatedChanges = new Content(this.mainLocator.getByTestId('deprecated'), 'Deprecated Сhanges')
8+
readonly nonBreakingChanges = new Content(this.mainLocator.getByTestId('non-breaking'), 'Non-breaking Сhanges')
9+
readonly semiBreakingChanges = new Content(this.mainLocator.getByTestId('semi-breaking'), 'Changes Requiring Attention')
10+
readonly annotationChanges = new Content(this.mainLocator.getByTestId('annotation'), 'Annotation Сhanges')
11+
readonly unclassifiedChanges = new Content(this.mainLocator.getByTestId('unclassified'), 'Unclassified Сhanges')
1212

1313
constructor(rootLocator: Locator, componentName?: string, componentType?: string) {
1414
super(rootLocator, componentName, componentType || 'changes cell')

src/test-data/shared/messages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export const TOOLTIP_SEVERITY_MSG = {
22
breaking: 'Breaking change is a change that breaks backward compatibility with the previous version of API. For example, deleting an operation, adding a required parameter or changing type of a parameter are breaking changes.',
33
nonBreaking: 'Non-breaking change is change that does not break backward compatibility with the previous version of API. For example, adding new operation or optional parameter is non-breaking change.',
44
semiBreaking: [
5-
'Risky change is a change that breaks backward compatibility according to the rules:',
5+
'A change requiring attention is a change that breaks backward compatibility according to the rules:',
66
'operation was annotated as deprecated in at least two previous consecutive releases and then it was deleted',
77
'operation is marked as no-BWC',
88
],

src/tests/portal/06-api-changes/6.1-api-changes-package.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ test.describe('6.1 API Changes (Package)', () => {
373373
await expect.soft(apiChangesTab.table.getChangeDescriptionCell(CREATE_LIST_OF_USERS_V1_UPDATED.changes!.annotation!.description).changeSeverityIndicator).toHaveText('annotation')
374374
await expect.soft(apiChangesTab.table.getChangeDescriptionCell(CREATE_LIST_OF_USERS_V1_UPDATED.changes!.unclassified!.description).changeSeverityIndicator).toHaveText('unclassified')
375375
await expect.soft(apiChangesTab.table.getChangeDescriptionCell(CREATE_LIST_OF_USERS_V1_UPDATED.changes!.deprecated!.description).changeSeverityIndicator).toHaveText('deprecated')
376-
await expect.soft(apiChangesTab.table.getChangeDescriptionCell(CREATE_LIST_OF_USERS_V1_UPDATED.changes!.semiBreaking!.description).changeSeverityIndicator).toHaveText('risky')
376+
await expect.soft(apiChangesTab.table.getChangeDescriptionCell(CREATE_LIST_OF_USERS_V1_UPDATED.changes!.semiBreaking!.description).changeSeverityIndicator).toHaveText('requires attention')
377377
await expect.soft(apiChangesTab.table.getChangeDescriptionCell(CREATE_LIST_OF_USERS_V1_UPDATED.changes!.nonBreaking!.description).changeSeverityIndicator).toHaveText('non-breaking')
378378
await expect.soft(apiChangesTab.table.getChangeDescriptionCell(CREATE_LIST_OF_USERS_V1_UPDATED.changes!.breaking!.description).changeSeverityIndicator).toHaveText('breaking')
379379

@@ -383,7 +383,7 @@ test.describe('6.1 API Changes (Package)', () => {
383383

384384
await apiChangesTab.table.getOperationRow(DEL_ORDER_V1).expandBtn.click()
385385

386-
await expect.soft(apiChangesTab.table.getChangeDescriptionCell(DEL_ORDER_V1.changes!.semiBreaking!.description).changeSeverityIndicator).toHaveText('risky')
386+
await expect.soft(apiChangesTab.table.getChangeDescriptionCell(DEL_ORDER_V1.changes!.semiBreaking!.description).changeSeverityIndicator).toHaveText('requires attention')
387387
})
388388

389389
test('[P-CHPVW-5] Navigation to the Operation Compare page',

src/tests/portal/09-comparison/9.1-compare-package-versions.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ test.describe('09.1 Compare Package versions', () => {
637637
await expect.soft(updateUserRow.rightSummary.path).toHaveText(`${UPDATE_USER_V1.method}${UPDATE_USER_V1.path}`)
638638
await expect.soft(updateUserRow.rightSummary.changes.deprecated).toHaveText('1')
639639

640-
await expect.soft(delOrderRow.changeSeverityIndicator).toHaveText('risky')
640+
await expect.soft(delOrderRow.changeSeverityIndicator).toHaveText('requires attention')
641641
await expect.soft(delOrderRow.leftSummary.title).toHaveText(DEL_ORDER_V1.title)
642642
await expect.soft(delOrderRow.leftSummary.path).toHaveText(`${DEL_ORDER_V1.method}${DEL_ORDER_V1.path}`)
643643
await expect.soft(delOrderRow.leftSummary.changes).not.toBeVisible()

0 commit comments

Comments
 (0)