Remove up/down buttons for slides
Drag and drop (including arrow keys on the handle) replaces them, so the move route, action and table method are gone as well. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4034a65498
commit
60fb2cb029
7 files changed
+4
-60
No files matched your search
@@ -167,19 +167,17 @@ class AdminControllerTest extends TestCase
|
||||
$this->assertSame($optionA->id, $slide->slide_options[1]->id);
|
||||
}
|
||||
|
||||
public function testMoveAndDeleteSlides(): void
|
||||
public function testDeleteSlideClosesPositionGap(): void
|
||||
{
|
||||
[$poll, $token] = $this->createPoll();
|
||||
$first = $this->createSlide($poll, Slide::TYPE_OPEN);
|
||||
$second = $this->createSlide($poll, Slide::TYPE_SCALE);
|
||||
|
||||
$this->post("/admin/$token/slides/{$second->id}/move/up");
|
||||
$this->assertSame(1, $this->slidesTable()->get($second->id)->position);
|
||||
$this->assertSame(2, $this->slidesTable()->get($first->id)->position);
|
||||
$third = $this->createSlide($poll, Slide::TYPE_CHOICE);
|
||||
|
||||
$this->post("/admin/$token/slides/{$second->id}/delete");
|
||||
$this->assertFalse($this->slidesTable()->exists(['id' => $second->id]));
|
||||
$this->assertSame(1, $this->slidesTable()->get($first->id)->position);
|
||||
$this->assertSame(2, $this->slidesTable()->get($third->id)->position);
|
||||
}
|
||||
|
||||
public function testReorderSlidesByDragAndDrop(): void
|
||||
|
||||
Reference in new issue
Block a user