Code Duplication    Length = 13-15 lines in 2 locations

Tests/Features/Context/VictoireContext.php 2 locations

@@ 169-181 (lines=13) @@
166
    /**
167
     * @When I open the widget mode drop for entity :entity
168
     */
169
    public function iOpenTheWidgetModeDrop($entity)
170
    {
171
        $element = $this->findOrRetry(
172
            $this->getSession()->getPage(),
173
            'css',
174
            '[id^="picker-'.strtolower($entity).'"] .v-mode-trigger'
175
        );
176
        if (null === $element) {
177
            $message = sprintf('Element not found in the page after 10 seconds"');
178
            throw new \Behat\Mink\Exception\ResponseTextException($message, $this->getSession());
179
        }
180
        $element->click();
181
    }
182
183
    /**
184
     * @When I open the widget style tab :key
@@ 220-234 (lines=15) @@
217
    /**
218
     * @When I open the widget quantum collapse for entity :entity
219
     */
220
    public function iOpenTheWidgetQuantumCollapse($entity)
221
    {
222
        $element = $this->findOrRetry(
223
            $this->getSession()->getPage(),
224
            'css',
225
            '[id^="picker-'.strtolower($entity).'"][data-state="visible"] [id^="picker-'.strtolower($entity).'"][data-state="visible"] .v-widget-form__quantum-btn'
226
        );
227
228
        if (null === $element) {
229
            $message = sprintf('Element not found in the page after 10 seconds"');
230
            throw new \Behat\Mink\Exception\ResponseTextException($message, $this->getSession());
231
        }
232
        $element->click();
233
    }
234
235
    /**
236
     * @When I open the widget quantum collapse when static
237
     */