diff --git a/e2e/log.spec.ts b/e2e/log.spec.ts index ce545eb..825151f 100644 --- a/e2e/log.spec.ts +++ b/e2e/log.spec.ts @@ -17,12 +17,6 @@ test('logs veggies', async ({page}) => { 'This Week 2 Veggies', ); - const elements = await page.getByTestId('toast-message').all(); - for (const element of elements) { - await element.click(); - } - - await expect(page.getByTestId('toast-message')).toBeHidden(); await page.getByTestId('navbar-link-settings').click(); await page.getByTestId('navbar-link-log').click(); await expect(page.getByTestId('category-status-chart-center-label')).toHaveText( diff --git a/e2e/stats.spec.ts b/e2e/stats.spec.ts index 02817a3..49007e9 100644 --- a/e2e/stats.spec.ts +++ b/e2e/stats.spec.ts @@ -7,10 +7,6 @@ test("shows current week's veggies", async ({page}) => { await page.getByText(/^apple$/).click(); await page.getByText('Apricot').click(); await page.getByText('Avocado').click(); - const elements = await page.getByTestId('toast-message').all(); - for (const element of elements) { - await element.click(); - } await page.getByTestId('navbar-link-stats').click(); await expect(page.getByTestId('tag-apple')).toBeVisible(); await expect(page.getByTestId('tag-apricot')).toBeVisible(); diff --git a/src/components/ToastContainer.vue b/src/components/ToastContainer.vue index 1cabd03..6d1a102 100644 --- a/src/components/ToastContainer.vue +++ b/src/components/ToastContainer.vue @@ -8,13 +8,7 @@ const {messages} = storeToRefs(appStateStore); const {removeToastMessage} = appStateStore;