Skip to content

Commit 5298bbe

Browse files
authored
Simplify moment locale checking (#18)
1 parent 1145581 commit 5298bbe

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

e2e/test/compatibility.cy.spec.js

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -101,17 +101,11 @@ const TIMEOUT_MS = 40000;
101101
url: "/interactive-question?locale=es",
102102
});
103103

104-
cy.findByText('Filtro', {timeout: TIMEOUT_MS}).click();
105-
cy.get('[data-element-id="mantine-popover"]').within(() => {
106-
cy.findByText('Created At').click();
107-
// Different texts for 54 and 55
108-
cy.findByText(/(Fechas relativas|Rango de fechas relativo)/).click();
109-
})
110-
111-
cy.findByTestId('date-filter-picker').within(() => {
112-
113-
cy.findByText('dic. 2–31, 2024').should('exist');
114-
})
104+
cy.findAllByTestId('cell-data').then((cells) => {
105+
const texts = [...cells].map((el) => el.textContent);
106+
expect(texts.join(' ')).to.include('febrero');
107+
expect(texts.join(' ')).to.include('mayo');
108+
});
115109
});
116110

117111
it("should load a dayjs locale", () => {

0 commit comments

Comments
 (0)