Skip to content
Snippets Groups Projects
Commit 6be986a9 authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt :koala:
Browse files

fix(tests): specify new target for new-show-submit-button

parent 9be2d390
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
:save="save" :save="save"
:title="t('showCreator.title')" :title="t('showCreator.title')"
:save-label="t('showCreator.title')" :save-label="t('showCreator.title')"
data-testid="add-show-modal"
@close="reset" @close="reset"
> >
<FormTable> <FormTable>
......
...@@ -9,6 +9,6 @@ test('Can create new show.', async ({ page }) => { ...@@ -9,6 +9,6 @@ test('Can create new show.', async ({ page }) => {
await page.getByTestId('add-show-modal:show-description').fill('my series description') await page.getByTestId('add-show-modal:show-description').fill('my series description')
await page.getByTestId('add-show-modal:show-type').selectOption({ index: 0 }) await page.getByTestId('add-show-modal:show-type').selectOption({ index: 0 })
await page.getByTestId('add-show-modal:show-funding-category').selectOption({ index: 0 }) await page.getByTestId('add-show-modal:show-funding-category').selectOption({ index: 0 })
await page.getByRole('button', { name: 'OK' }).click() await page.locator('[data-testid="add-show-modal"] button[type="submit"]').click()
await expect(page.getByTestId('page-header:lead')).toHaveText('my series') await expect(page.getByTestId('page-header:lead')).toHaveText('my series')
}) })
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment