Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 36 additions & 24 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/Locators/Concrete5/Version8/CoreLocators.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@ class CoreLocators extends BaseCoreLocators
protected $toolbar = ['id' => 'ccm-toolbar'];
protected $toolbarAddBlock = ['xpath' => '//div[@id="ccm-toolbar"]/ul/li[@data-guide-toolbar-action="add-content"]/a[@data-launch-panel="add-block"]'];
protected $toolbarPageSettings = ['xpath' => '//div[@id="ccm-toolbar"]/ul/li[@data-guide-toolbar-action="page-settings"]/a[@data-launch-panel="page"]'];
protected $toolbarLargeTitles = ['xpath' => '//div[@id="ccm-toolbar"][contains(@class,"large-font")]'];
protected $toolbarReturn = ['xpath' => '//div[@id="ccm-toolbar"]//a[@data-original-title][child::span[@class="ccm-toolbar-accessibility-title ccm-toolbar-accessibility-title-return"]]'];
protected $toolbarReturnTitle = ['xpath' => '//div[@id="ccm-toolbar"]//a[@data-original-title]/span[@class="ccm-toolbar-accessibility-title ccm-toolbar-accessibility-title-return"]'];
protected $toolbarEdit = ['xpath' => '//div[@id="ccm-toolbar"]/ul/li[@data-guide-toolbar-action="check-in"]/a[@data-toolbar-action="check-in"]'];
protected $launchPanel = ['xpath' => '//a[@data-launch-panel="panel"]'];
protected $primaryButton = ['xpath' => "//button[contains(@class, 'btn-primary')]"];
protected $systemAlertBox = ['xpath' => "//div[contains(@class,'ccm-system-errors alert')]"];
protected $dismissSystemAlertBox = ['xpath' => "//div[contains(@class,'ccm-system-errors alert')]/button"];
protected $siteName = ['id' => 'SITE'];
protected $loginPage = '/index.php/login';
protected $loginButton = ['xpath' => "//div[contains(@class,'authentication-type')]/form//button"];
protected $editModeActive = ['xpath' => '//div[@id="ccm-toolbar"]//li[contains(@class, \'ccm-toolbar-page-edit-mode-active\')]'];
Expand Down
1 change: 1 addition & 0 deletions src/Locators/Concrete5/Version8/DashboardLocators.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class DashboardLocators extends BaseDashboardLocators
protected $dashboardFormLink = ['xpath' => "//div[@class='ccm-dashboard-form-actions-wrapper']/div[@class='ccm-dashboard-form-actions']/a[contains(text(),'button_text')]"];
protected $dashboardFormButton = ['xpath' => "//div[@class='ccm-dashboard-form-actions-wrapper']/div[@class='ccm-dashboard-form-actions']/input[@value='button_text']"];
protected $dashboardPrivacyDialog = ['xpath' => '//button[@data-action="agree-privacy-policy"]'];
protected $dashboardSubmitButton = ['xpath' => "//div[@class='ccm-dashboard-form-actions-wrapper']/div[@class='ccm-dashboard-form-actions']/button[@type='submit']"];

/**
* {@inheritdoc}
Expand Down
1 change: 0 additions & 1 deletion src/Locators/Concrete5/Version8/InstallLocators.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ class InstallLocators extends BaseInstallLocators
protected $continueInstallationButton = ['xpath' => "//form[@id='continue-to-installation']/a[contains(@class,'btn-primary')]"];
protected $installButton = ['xpath' => "//div[@class='ccm-install-actions'/button"];
protected $installRedirect = 'index.php/install';
protected $siteName = ['id' => 'SITE'];
protected $startingPointEmpty = ['id' => 'SAMPLE_CONTENT1'];
protected $startingPointFull = ['id' => 'SAMPLE_CONTENT2'];
protected $databaseServerField = ['id' => 'DB_SERVER'];
Expand Down
24 changes: 24 additions & 0 deletions tests/Dashboard/SiteCest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

namespace C5Browser\Test\Page;

use AcceptanceTester;

class SiteCest
{
public function _before(AcceptanceTester $I)
{
$I->login();
}

public function setSiteName(AcceptanceTester $I)
{
$I->amOnPage('/index.php/dashboard/system/basics/name');
$I->fillField($I->getPathFromLocator('siteName'), 'Testing Site');
$I->clickWithLeftButton($I->getPathFromLocator('dashboardSubmitButton'));
$I->waitForElementVisible($I->getPathFromLocator('resultAlertInfo'), 15);
$I->amOnPage('/index.php');
$I->wait(2);
$I->canSeeInTitle('Testing Site');
}
}
5 changes: 3 additions & 2 deletions tests/_envs/chrome.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ modules:
port: 4444
capabilities:
"goog:chromeOptions":
args: ["--headless", "--disable-gpu", "window-size=1920x1080"]
binary: "/usr/bin/google-chrome"
args: [# "--headless",
"--disable-gpu", "window-size=1920x1080"]
# binary: "/usr/bin/google-chrome"
window_size: false
2 changes: 1 addition & 1 deletion tests/_envs/firefox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ modules:
capabilities:
"moz:firefoxOptions":
args:
- "-headless"
# - "-headless"
- "-disable-gpu"
- "-width=1920"
- "-height=1080"
Expand Down
11 changes: 11 additions & 0 deletions tests/_envs/safari.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# `safari` environment config goes here
modules:
config:
Concrete5Browser:
browser: safari
port: 4445
path: ''
capabilities:
safari.options:
technologyPreview: true
screenResolution: "1920x1080"