-
Notifications
You must be signed in to change notification settings - Fork 29
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
Rodrigo Quelca
committed
Oct 31, 2024
1 parent
54bf839
commit 1254371
Showing
6 changed files
with
168 additions
and
5 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,22 @@ | ||
import ClipboardManager from "../../../src/store/modules/ClipboardManager"; | ||
|
||
describe("Clipboard Form Type Display", () => { | ||
before(() => { | ||
// Visit the home page and load the JSON data before the tests | ||
cy.visit('/'); | ||
cy.loadFromJson('displayScreenNext.json', 0, 'display'); | ||
}); | ||
|
||
const checkAddToClipboardNotExist = (childIndex) => { | ||
cy.get(`:nth-child(${childIndex}) > [data-cy="screen-element-container"]`) | ||
.click({ force: true }); | ||
cy.get('[data-cy="addToClipboard"]').should("not.exist"); | ||
}; | ||
|
||
it("Verify add clipboard button does not exist in display mode", () => { | ||
// Verify that the button does not exist for specific child elements | ||
checkAddToClipboardNotExist(2); | ||
checkAddToClipboardNotExist(3); | ||
checkAddToClipboardNotExist(2); // This seems redundant; if necessary, ensure it's intentional | ||
}); | ||
}); |
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