mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00

* refactor: decoupled PTR by removing import and creating new touch logic * fix: overscroll behavior on mobile is now prevented on the y axis * feat: added shadow effects to icon * fix: modified cypress test * fix: added better scroll lock functionality * fix: hide icon if scroll value is negative * fix: changed to allow usage on all touch devices
26 lines
570 B
TypeScript
26 lines
570 B
TypeScript
describe('Pull To Refresh', () => {
|
|
beforeEach(() => {
|
|
cy.login(Cypress.env('ADMIN_EMAIL'), Cypress.env('ADMIN_PASSWORD'));
|
|
cy.viewport(390, 844);
|
|
cy.visitMobile('/');
|
|
});
|
|
|
|
it('reloads the current page', () => {
|
|
cy.wait(500);
|
|
|
|
cy.intercept({
|
|
method: 'GET',
|
|
url: '/api/v1/*',
|
|
}).as('apiCall');
|
|
|
|
cy.get('.searchbar').swipe('bottom', [190, 500]);
|
|
|
|
cy.wait('@apiCall').then((interception) => {
|
|
assert.isNotNull(
|
|
interception.response.body,
|
|
'API was called and received data'
|
|
);
|
|
});
|
|
});
|
|
});
|