#sprint-1 maked news test
This commit is contained in:
parent
fae269868a
commit
8d4691a48d
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user