#sprint-1 maked news test

This commit is contained in:
User3 2025-05-27 12:54:00 +03:00
parent fae269868a
commit 8d4691a48d

View File

@ -72,6 +72,18 @@ void main() {
}
});
test('Спринт 2. Акции и новости', () async {
try {
final response = await shop.getNews();
if (response != null) {
expect(response['perPage'], 30);
}
} catch (e) {
print(e);
return Error();
}
});
test('Спринт 2. Добавление в корзину', () async {
try {
final response = await cart.addToCart('string', 10);