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

Function selectDropdownItem

cypress/utils/steps.js:251–259  ·  view source on GitHub ↗
(label, item)

Source from the content-addressed store, hash-verified

249}
250
251function selectDropdownItem(label, item) {
252 cy.contains('[role="button"]', label).as('dropDownButton');
253 cy.get('@dropDownButton')
254 .parent()
255 .within(() => {
256 cy.get('@dropDownButton').click();
257 cy.contains('[role="menuitem"] span', item).click();
258 });
259}
260
261function flushClockAndSave() {
262 withExistingClock(clock => {

Callers 8

publishEntryInEditorFunction · 0.85
publishEntryFunction · 0.85
duplicatePostAndPublishFunction · 0.85
unpublishEntryFunction · 0.85
duplicateEntryFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected