Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lyndsiWilliams committed Aug 19, 2021
1 parent d694157 commit 1607fc6
Showing 1 changed file with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable no-only-tests/no-only-tests */
/* eslint-disable jest/no-focused-tests */
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
Expand Down Expand Up @@ -368,11 +366,12 @@ describe('Email Report Modal', () => {
// Watch for report POST
fetchMock.post(REPORT_ENDPOINT, reportValues);

screen.logTestingPlaygroundURL();
// ---------- Begin tests ----------
// Click calendar icon to open email report modal
const emailReportModalButton = screen.getByTestId(
'schedule-email-report-button-test',
);
const emailReportModalButton = screen.getByRole('button', {
name: /schedule email report/i,
});
userEvent.click(emailReportModalButton);

// Click "Add" button to create a new email report
Expand Down Expand Up @@ -448,9 +447,9 @@ describe('Email Report Modal', () => {

// ---------- Begin tests ----------
// Click calendar icon to open email report modal
const emailReportModalButton = screen.getByTestId(
'schedule-email-report-button-test',
);
const emailReportModalButton = screen.getByRole('button', {
name: /schedule email report/i,
});
userEvent.click(emailReportModalButton);

const nameTextbox = screen.getByTestId('report-name-test');
Expand Down

0 comments on commit 1607fc6

Please sign in to comment.