You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
570 B
26 lines
570 B
2 years ago
|
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, 400]);
|
||
|
|
||
|
cy.wait('@apiCall').then((interception) => {
|
||
|
assert.isNotNull(
|
||
|
interception.response.body,
|
||
|
'API was called and received data'
|
||
|
);
|
||
|
});
|
||
|
});
|
||
|
});
|