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

Function assertPublishedEntry

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

Source from the content-addressed store, hash-verified

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

Calls 1

getMethod · 0.80

Tested by

no test coverage detected