-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a0e6f6d
commit 1a8f26b
Showing
6 changed files
with
62 additions
and
42 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -36,15 +36,19 @@ describe("System management with Plus features", () => { | |
cy.getSelectValueContainer("input-vendor_id"); | ||
}); | ||
|
||
it("contains dictionary entries", () => { | ||
cy.selectOption("input-vendor_id", "Aniview LTD"); | ||
it("contains type ahead dictionary entries", () => { | ||
cy.getSelectValueContainer("input-vendor_id").type("A"); | ||
cy.get("#react-select-select-vendor_id-option-0").contains("Aniview LTD"); | ||
cy.get("#react-select-select-vendor_id-option-1").contains( | ||
"Anzu Virtual Reality LTD" | ||
); | ||
}); | ||
|
||
it("can switch entries", () => { | ||
cy.selectOption("input-vendor_id", "Aniview LTD"); | ||
cy.getSelectValueContainer("input-vendor_id").type("Aniview{enter}"); | ||
cy.getSelectValueContainer("input-vendor_id").contains("Aniview LTD"); | ||
|
||
cy.selectOption("input-vendor_id", "Anzu Virtual Reality LTD"); | ||
cy.getSelectValueContainer("input-vendor_id").type("Anzu{enter}"); | ||
cy.getSelectValueContainer("input-vendor_id").contains( | ||
"Anzu Virtual Reality LTD" | ||
); | ||
|
@@ -55,7 +59,7 @@ describe("System management with Plus features", () => { | |
// modal to pop up incorrectly when switching tabs | ||
it("can switch between tabs after populating from dictionary", () => { | ||
cy.wait("@getSystems"); | ||
cy.selectOption("input-vendor_id", "Anzu Virtual Reality LTD"); | ||
cy.getSelectValueContainer("input-vendor_id").type("Anzu{enter}"); | ||
cy.getByTestId("dict-suggestions-btn").click(); | ||
cy.getByTestId("toggle-dict-suggestions").click(); | ||
// the form fetches the system again after saving, so update the intercept with dictionary values | ||
|
@@ -67,6 +71,7 @@ describe("System management with Plus features", () => { | |
body: { | ||
...origSystem, | ||
...dictSystem, | ||
fides_key: origSystem.fides_key, | ||
customFieldValues: undefined, | ||
data_protection_impact_assessment: undefined, | ||
}, | ||
|
@@ -83,7 +88,6 @@ describe("System management with Plus features", () => { | |
cy.getByTestId("input-dpo").should("have.value", "[email protected]"); | ||
cy.getByTestId("tab-Data uses").click(); | ||
cy.getByTestId("tab-System information").click(); | ||
// cy.pause(); | ||
cy.getByTestId("tab-Data uses").click(); | ||
cy.getByTestId("confirmation-modal").should("not.exist"); | ||
}); | ||
|
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
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
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