Skip to content

Commit b5f542b

Browse files
Add data-testid to EditorTransition.vue for cypress
1 parent ac8850a commit b5f542b

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

webapp/cypress/e2e/sampleTablePage.cy.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,10 @@ describe.only("Advanced sample creation features", () => {
258258
it("checks the edit page of the copied sample", () => {
259259
cy.findByText("testBcopy").click();
260260
cy.findByLabelText("Name").should("have.value", "COPY OF the second test sample");
261-
cy.findByText("this is a description of testB.");
261+
cy.get("[data-testid=item-description-input]").should(
262+
"have.text",
263+
"this is a description of baseB.",
264+
);
262265
cy.findByText("a comment is added here.");
263266
cy.findByText("a description of the synthesis here");
264267
cy.findAllByText("component3");
@@ -295,7 +298,10 @@ describe.only("Advanced sample creation features", () => {
295298
it("checks the edit page of the copied sample with components", () => {
296299
cy.findByText("testBcopy_copy").click();
297300
cy.findByLabelText("Name").should("have.value", "COPY OF COPY OF the second test sample");
298-
cy.findByText("this is a description of testB.");
301+
cy.get("[data-testid=item-description-input]").should(
302+
"have.text",
303+
"this is a description of baseB.",
304+
);
299305
cy.findByText("a comment is added here.");
300306
cy.findByText("a description of the synthesis here");
301307
cy.findAllByText("component3");

webapp/src/components/datablocks/DataBlockBase.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
<slot></slot>
130130
<EditorTransition
131131
v-model="BlockDescription"
132-
test-id="item-description-input"
132+
test-id="datablock-description-input"
133133
data-testid="block-description"
134134
/>
135135
</div>

0 commit comments

Comments
 (0)