Commit e84704e5 authored by Amir Golparvar's avatar Amir Golparvar
Browse files

renaming test

parent c83b2f23
Pipeline #138191 passed with stages
in 69 minutes and 40 seconds
......@@ -109,11 +109,9 @@ test('correctly renders edit quantities', async () => {
expect(invalidUrlMsg()).not.toBeInTheDocument()
expect(redirectButton()).not.toBeInTheDocument()
fireEvent.change(UrlTextbox(), { target: { value: 'a' } })
await wait(undefined, 100)
await waitFor(() => expect(invalidUrlMsg()).toBeInTheDocument())
fireEvent.change(UrlTextbox(), { target: { value: 'https://nomad-lab.eu/' } })
await wait(undefined, 100)
await waitFor(() => expect(invalidUrlMsg()).not.toBeInTheDocument())
await waitFor(() => expect(redirectButton()).toBeInTheDocument())
})
......@@ -33,7 +33,7 @@ from nomad.metainfo import MSection, Quantity, Unit, units, JSON, Dimension, Dat
pytest.param(Dimension, '*', id='Dimension-*'),
pytest.param(Dimension, 1, id='Dimension-1'),
pytest.param(Dimension, 'quantity', id='Dimension-quantity'),
pytest.param(URL, 'http://google.com', id='Dimension-quantity'),
pytest.param(URL, 'http://google.com', id='Url-link'),
pytest.param(Datetime, datetime.datetime.now(datetime.timezone.utc), id='Datetime'),
pytest.param(Datetime, datetime.datetime.now(pytz.timezone('America/Los_Angeles')), id='Datetime'),
pytest.param(Datetime, datetime.date.today(), id='Date'),
......
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