Skip to content

Commit

Permalink
OP-515: Behat fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jkindly committed Sep 10, 2024
1 parent 7a4c5ff commit 05d221b
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 32 deletions.
1 change: 0 additions & 1 deletion features/admin/adding_block.feature
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ Feature: Adding blocks
And I fill the code with "intro"
And I fill the name with "Intro"
And I select "Homepage" template
And I click button to use this template
And I confirm that I want to use this template
And I add it
Then I should be notified that the block has been created
Expand Down
1 change: 0 additions & 1 deletion features/admin/adding_page.feature
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ Feature: Adding new page
And I fill the slug with "my_page"
And I fill the name with "My page"
And I select "Homepage" template
And I click button to use this template
And I confirm that I want to use this template
And I add it
Then I should be notified that the page has been created
Expand Down
8 changes: 0 additions & 8 deletions tests/Behat/Context/Ui/Admin/BlockContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -408,14 +408,6 @@ public function iSelectTemplate(string $templateName): void
$this->resolveCurrentPage()->selectTemplate($templateName);
}

/**
* @Then I click button to use this template
*/
public function iClickButtonToUseThisTemplate(): void
{
$this->resolveCurrentPage()->useTemplate();
}

/**
* @Then I confirm that I want to use this template
*/
Expand Down
8 changes: 0 additions & 8 deletions tests/Behat/Context/Ui/Admin/PageContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,14 +299,6 @@ public function iSelectTemplate(string $templateName): void
$this->resolveCurrentPage()->selectTemplate($templateName);
}

/**
* @Then I click button to use this template
*/
public function iClickButtonToUseThisTemplate(): void
{
$this->resolveCurrentPage()->useTemplate();
}

/**
* @Then I confirm that I want to use this template
*/
Expand Down
5 changes: 0 additions & 5 deletions tests/Behat/Page/Admin/Block/CreatePage.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,6 @@ public function selectTemplate(string $templateName): void
$item->click();
}

public function useTemplate(): void
{
$this->getDocument()->findLink('Use this template')->click();
}

public function confirmUseTemplate(): void
{
$this->getDocument()->findById('load-template-confirmation-button')->click();
Expand Down
2 changes: 0 additions & 2 deletions tests/Behat/Page/Admin/Block/CreatePageInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,5 @@ public function disable(): void;

public function selectTemplate(string $templateName): void;

public function useTemplate(): void;

public function confirmUseTemplate(): void;
}
5 changes: 0 additions & 5 deletions tests/Behat/Page/Admin/Page/CreatePage.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,11 +276,6 @@ public function selectTemplate(string $templateName): void
$item->click();
}

public function useTemplate(): void
{
$this->getDocument()->findLink('Use this template')->click();
}

public function confirmUseTemplate(): void
{
$this->getDocument()->findById('load-template-confirmation-button')->click();
Expand Down
2 changes: 0 additions & 2 deletions tests/Behat/Page/Admin/Page/CreatePageInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,5 @@ public function addTaxonsListContentElementWithTaxons(array $taxons): void;

public function selectTemplate(string $templateName): void;

public function useTemplate(): void;

public function confirmUseTemplate(): void;
}

0 comments on commit 05d221b

Please sign in to comment.