
* test plan for sales - discounts * create sale * passing tests for sales * tests for collections * remove eslint diable in sales tests * remove eslint-disable * move shared selectors * move shared selectors * fix indentation in requests * add formatDate function * remove moment * remove moment
19 lines
395 B
JavaScript
19 lines
395 B
JavaScript
export function getCollection(collectionId, channelSlug) {
|
|
const query = `query Collection{
|
|
collection(id: "${collectionId}", channel: "${channelSlug}") {
|
|
id
|
|
slug
|
|
name
|
|
products(first:100){
|
|
totalCount
|
|
edges{
|
|
node{
|
|
id
|
|
name
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}`;
|
|
return cy.sendRequestWithQuery(query, "token");
|
|
}
|