May 2019
Intermediate to advanced
496 pages
10h 38m
English
Let's move on to the Previous button:
it('has a previous button', async () => { await renderAndWait(<CustomerSearch />); expect(element('button#previous-page')).not.toBeNull();});
<button role="button" id="previous-page"> Previous</button>
it('moves back to first page when previous button is clicked', async () => { window.fetch.mockReturnValue(fetchResponseOk(tenCustomers)); ...Read now
Unlock full access