
* fix fox tests in collection * removing then() in tests * fixing failing collection tests and add stable tag to run will all tests
23 lines
487 B
JavaScript
23 lines
487 B
JavaScript
export function getCollection({ collectionId, channelSlug, auth }) {
|
|
const query = `query Collection{
|
|
collection(id: "${collectionId}" channel: "${channelSlug}") {
|
|
id
|
|
slug
|
|
name
|
|
description
|
|
channelListings{
|
|
isPublished
|
|
}
|
|
products(first:100){
|
|
totalCount
|
|
edges{
|
|
node{
|
|
id
|
|
name
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}`;
|
|
return cy.sendRequestWithQuery(query, auth).its("body.data");
|
|
}
|