Commit 7a1b8487 authored by Mohammad Nakhaee's avatar Mohammad Nakhaee
Browse files

Fix the tests

parent f30d9d73
Pipeline #135948 passed with stages
in 42 minutes and 4 seconds
......@@ -232,17 +232,17 @@ test.each([
await screen.findByText('HotplateAnnealing')
const saveButton = screen.queryByTitle('Save archive')
const saveButton = screen.queryByTitle('Save archive').closest('button')
expect(saveButton).toBeInTheDocument()
expect(saveButton).toBeDisabled()
const reUploadButton = screen.queryByTitle("Replace this entry's mainfile")
const reUploadButton = screen.queryByTitle("Replace this entry's mainfile").closest('button')
expect(reUploadButton).toBeInTheDocument()
expect(reUploadButton).toBeEnabled()
const deleteButton = screen.queryByTitle('Delete archive')
expect(deleteButton).toBeEnabled()
const deleteButton = screen.queryByTitle('Delete archive').closest('button')
expect(deleteButton).toBeInTheDocument()
expect(deleteButton).toBeEnabled()
const sectionCards = screen.queryAllByTestId('property-card')
expect(sectionCards.length).toBe(3)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment