forked from microsoft/responsible-ai-toolbox
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move individual feature importance tests for text dashboard to common…
… e2e package folder to re-use for unit and notebook tests (microsoft#2299)
- Loading branch information
1 parent
ffa1acb
commit efbc451
Showing
15 changed files
with
59 additions
and
21 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
apps/dashboard-e2e/src/describer/interpretText/interpretTextDatasets.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 7 additions & 2 deletions
9
...e/src/integration/interpret-text/newsgroupsBinaryData/individualFeatureImportance.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
import { describeIndividualFeatureImportance } from "../../../describer/interpretText/individualFeatureImportance/describeIndividualFeatureImportance"; | ||
import { describeTextIndividualFeatureImportance } from "@responsible-ai/e2e"; | ||
|
||
describeIndividualFeatureImportance("newsgroupBinaryData"); | ||
import { interpretTextDatasets } from "../../../../src/describer/interpretText/interpretTextDatasets"; | ||
|
||
describeTextIndividualFeatureImportance( | ||
"newsgroupBinaryData", | ||
interpretTextDatasets.newsgroupBinaryData | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
export enum Locators { | ||
ClassImportanceWeights = "#ClassImportanceWeights", | ||
TextChoiceGroup = "#TextChoiceGroup", | ||
TextFeatureLegend = "#TextFeatureLegend", | ||
TextHighlighting = "#TextHighlighting", | ||
TextExplanationChart = "#TextExplanationChart", | ||
TextTopKSlider = "#TextTopKSlider", | ||
TextWordsDropdown = "#ClassImportanceWeights div.ms-Dropdown-container" | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
export function selectDropdown( | ||
selector: string, | ||
item: string | number | ||
): Cypress.Chainable<JQuery<HTMLElement>> { | ||
cy.get(selector).eq(0).click(); | ||
return cy | ||
.get(".ms-Callout") | ||
.should("be.visible") | ||
.get(".ms-Dropdown-optionText") | ||
.contains(item) | ||
.click(); | ||
} | ||
|
||
export function getDropdownValue(selector: string): string | undefined { | ||
return cy.$$(`${selector} .ms-Dropdown-title`).text(); | ||
} |
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...dualFeatureImportance/describeBarChart.ts → ...dualFeatureImportance/describeBarChart.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...describeClassImportanceWeightsDropdown.ts → ...describeClassImportanceWeightsDropdown.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...vidualFeatureImportance/describeLegend.ts → ...vidualFeatureImportance/describeLegend.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...cribeRadioButtonFeatureWeightsSelector.ts → ...cribeRadioButtonFeatureWeightsSelector.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...vidualFeatureImportance/describeSlider.ts → ...vidualFeatureImportance/describeSlider.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ureImportance/describeTextHighlighting.ts → ...ureImportance/describeTextHighlighting.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.