Skip to content

Commit 5cd6596

Browse files
BenjaminCharmesml-evs
authored andcommitted
Update getBatchTemplateCell for date
1 parent f69dffd commit 5cd6596

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

webapp/cypress/e2e/batchSampleFeature.cy.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -440,8 +440,10 @@ describe("Batch sample creation", () => {
440440
it("uses the template id, name, and date", () => {
441441
cy.contains("Add batch of items").click();
442442
getBatchTemplateCell("id", "input.form-control").type("test_{{}#{}}");
443-
getBatchTemplateCell("name").type("this is the test sample #{{}#{}}");
444-
getBatchTemplateCell("date").type("1980-02-01T05:35");
443+
444+
getBatchTemplateCell("name", "input.form-control").type("this is the test sample #{{}#{}}");
445+
446+
getBatchTemplateCell("date", "input.form-control").type("1980-02-01T05:35");
445447

446448
cy.findByLabelText("start counting {#} at:").clear().type(5);
447449

@@ -463,8 +465,8 @@ describe("Batch sample creation", () => {
463465
it("uses the template id, name, date, copyFrom, and components", () => {
464466
cy.contains("Add batch of items").click();
465467
getBatchTemplateCell("id", "input.form-control").type("test_{{}#{}}");
466-
getBatchTemplateCell("name").type("this is the test sample #{#}");
467-
getBatchTemplateCell("date").type("1980-02-01T23:59");
468+
getBatchTemplateCell("name", "input.form-control").type("this is the test sample #{#}");
469+
getBatchTemplateCell("date", "input.form-control").type("1980-02-01T23:59");
468470

469471
// select copyFrom sample, check that it is applied correctly
470472
getBatchTemplateCell("copy-from", ".vs__search").type("baseA");
@@ -764,9 +766,9 @@ describe("Batch cell creation", () => {
764766

765767
cy.get("[data-testid=batch-modal-container]").findByLabelText("Type:").select("cell");
766768

767-
getBatchTemplateCell("id", "input").eq(0).type("cell_{{}#{}}");
768-
getBatchTemplateCell("name", "input").type("this is the test cell #{{}#{}}");
769-
getBatchTemplateCell("date", "input").type("1980-02-01T23:59");
769+
getBatchTemplateCell("id", "input.form-control").eq(0).type("cell_{{}#{}}");
770+
getBatchTemplateCell("name", "input.form-control").type("this is the test cell #{{}#{}}");
771+
getBatchTemplateCell("date", "input.form-control").type("1980-02-01T23:59");
770772

771773
// select copyFrom sample, check that it is applied correctly
772774
getBatchTemplateCell("copy-from", ".vs__search").type("cell_B");

0 commit comments

Comments
 (0)