Skip to content

Commit

Permalink
test: Fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
motss committed Apr 2, 2020
1 parent 55986ba commit e9090de
Show file tree
Hide file tree
Showing 25 changed files with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/tests/app-datepicker/initial-render.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ describe('initial render', () => {
calendarDay,
]: A = await browser.executeAsync(async (a, b, done) => {
const n = document.body.querySelector<Datepicker>(a)!;

// Reset focused date
n.value = '';

await n.updateComplete;

const n2 = n.shadowRoot!.querySelector<HTMLTableCellElement>(b)!;

/**
Expand All @@ -124,13 +130,13 @@ describe('initial render', () => {
formattedDate,
now.getDate(),
] as A);
}, DATEPICKER_NAME, ['.day--today']);
}, DATEPICKER_NAME, toSelector('.day--today'));

strictEqual(cleanHtml(todayDateContent, {
showToday: true,
showFocused: false,
}), prettyHtml(`
<td class="full-calendar__day day--today" aria-disabled="false" aria-label="${dateLabel}" aria-selected="false">
<td class="full-calendar__day day--today" aria-disabled="false" aria-label="${dateLabel}" aria-selected="true">
<div class="calendar-day">${calendarDay}</div>
</td>
`));
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/tests/snapshots/app-datepicker-dialog/attributes-1-chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/tests/snapshots/app-datepicker-dialog/properties-1-chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/tests/snapshots/app-datepicker/attributes-0-chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/tests/snapshots/app-datepicker/attributes-0-firefox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/tests/snapshots/app-datepicker/attributes-1-chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/tests/snapshots/app-datepicker/attributes-1-firefox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/tests/snapshots/app-datepicker/properties-0-chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/tests/snapshots/app-datepicker/properties-0-firefox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/tests/snapshots/app-datepicker/properties-1-chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/tests/snapshots/app-datepicker/properties-1-firefox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/tests/snapshots/app-datepicker/timezones-chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/tests/snapshots/app-datepicker/timezones-firefox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e9090de

Please sign in to comment.