Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions webapp/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Cypress.Commands.add(
cy.get('[data-testid="create-item-form"]').within(() => {
cy.findByText("Add new item").should("exist");
cy.findByLabelText("ID:").type(item_id);
cy.findByLabelText("Name:").clear();
if (name) {
cy.findByLabelText("Name:").type(name);
}
Expand Down Expand Up @@ -153,6 +154,7 @@ Cypress.Commands.add("createEquipment", (item_id, name = null, date = null) => {

cy.get('[data-testid="create-equipment-form"]').within(() => {
cy.findByText("Add equipment").should("exist");
cy.findByLabelText("Name:").clear();
cy.findByLabelText("ID:").type(item_id);
if (name) {
cy.findByLabelText("Name:").type(name);
Expand Down
1 change: 0 additions & 1 deletion webapp/src/components/CreateEquipmentModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ export default {
document.getElementById(this.item_id).scrollIntoView({ behavior: "smooth" });
}
this.item_id = null;
this.name = null;
this.date = this.now(); // reset date to the new current time
})
.catch((error) => {
Expand Down
1 change: 0 additions & 1 deletion webapp/src/components/CreateItemModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ export default {
// new items always show up at the top of the sample table
// // document.getElementById(this.item_id).scrollIntoView({ behavior: "smooth" });
this.item_id = null;
this.name = null;
this.date = this.now(); // reset date to the new current time
})
.catch((error) => {
Expand Down