Skip to content

Commit 933f1d7

Browse files
fix
1 parent e9cd615 commit 933f1d7

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

cypress/integration/udt-test.spec.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import pasteImageUrls from "../utils/test/paste-image-urls.spec"
99
import textEntityClassification from "../utils/test/text-entity-classification.spec"
1010
Cypress.config("defaultCommandTimeout", 3000)
1111
describe("Udt test", () => {
12-
before("Prepare test", () => {
12+
beforeEach("Prepare test", () => {
1313
cy.visit(`http://localhost:6001`)
1414
cy.get('input[id="react-select-2-input"]')
1515
.focus()
@@ -25,8 +25,4 @@ describe("Udt test", () => {
2525
pasteImageUrlsWithCSV()
2626
pasteImageUrls()
2727
textEntityClassification()
28-
29-
afterEach("Return home page", () => {
30-
cy.get("button[title='Exit to Welcome Page']").click()
31-
})
3228
})

cypress/utils/test/create-and-visit-collaborative-session.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const createAndVisitCollaborativeSession = () => {
99

1010
cy.log("should be able to create new session")
1111
cy.get("div[title='collaborate-icon']").click()
12-
cy.contains("Create New Session").click()
12+
cy.contains("Create New Session", { timeout: 5000 }).click()
1313
cy.contains("Leave Session", { timeout: 10000 })
1414
cy.get("div[title='collaborate-icon']").trigger("mouseleave")
1515

0 commit comments

Comments
 (0)