MCPcopy Create free account
hub / github.com/decaporg/decap-cms / assertPublishedEntry

Function assertPublishedEntry

cypress/utils/steps.js:186–197  ·  view source on GitHub ↗
(entry)

Source from the content-addressed store, hash-verified

184}
185
186function assertPublishedEntry(entry) {
187 if (Array.isArray(entry)) {
188 const entries = entry.reverse();
189 cy.get('a h2').then(els => {
190 cy.wrap(els.slice(0, entries.length)).each((el, idx) => {
191 cy.wrap(el).contains(entries[idx].title);
192 });
193 });
194 } else {
195 cy.get('a h2').first().contains(entry.title);
196 }
197}
198
199function deleteEntryInEditor() {
200 cy.contains('button', 'Delete').click();

Calls 1

getMethod · 0.80

Tested by

no test coverage detected