diff --git a/cypress/e2e/batch_creation.cy.js b/cypress/e2e/batch_creation.cy.js index 4f48bf70..653a70a2 100644 --- a/cypress/e2e/batch_creation.cy.js +++ b/cypress/e2e/batch_creation.cy.js @@ -162,8 +162,12 @@ describe("Batch Creation", () => { /* Add student to batch */ cy.get("button").contains("Students").click(); cy.get("button").contains("Add").click(); - cy.get('div[role="dialog"]').first().find("button").eq(1).click(); - cy.get("input[id^='headlessui-combobox-input-v-']").type(randomEmail); + cy.get('div[role="dialog"]') + .first() + .find("input[id^='headlessui-combobox-input-v-']") + .first() + .click(); + cy.get("input[placeholder='Search']").type(randomEmail); cy.get("div").contains(randomEmail).click(); cy.get("button").contains("Submit").click(); diff --git a/frontend/src/components/Modals/StudentModal.vue b/frontend/src/components/Modals/StudentModal.vue index 5c9c7b97..73070b8d 100644 --- a/frontend/src/components/Modals/StudentModal.vue +++ b/frontend/src/components/Modals/StudentModal.vue @@ -18,7 +18,6 @@