HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/meuwis/lmbm.be/app/KommaApp/Shop/Tests/Browser/Pages/ProductsSectionTestPage.php
<?php

namespace App\KommaApp\Shop\Tests\Browser\Pages;

use Laravel\Dusk\Browser;
use Laravel\Dusk\Page as BasePage;


class ProductsSectionTestPage extends BasePage
{
    /**
     * Get the URL for the page.
     *
     * @return string
     */
    public function url()
    {
        return '/kms/products';
    }

    /**
     * Assert that the browser is on the page.
     *
     * @param  Browser  $browser
     * @return void
     */
    public function assert(Browser $browser)
    {
        $browser->assertPathIs($this->url());
    }

    /**
     * Get the element shortcuts for the page.
     *
     * @return array
     */
    public function elements()
    {
        return [
            '@addButton' => '#main-entities-list > a.new-item',
            '@deleteButton' => '#entity > div.entity-header > div.entity-buttons > form > input.trash',
            '@confirmYes' => '#confirmBox > div.modal > div.body > div > button.confirm',
            '@confirmNo' => '#confirmBox > div.modal > div.body > div > button.cancel',
            '@searchInput' => '#entities-search > div.search-field > form > input[type="text"]',
            '@saveButton' => '#save-button',
            '@generalTab' => '#entity > div.entity-tabs > ul > li:nth-child(1) > a',
            '@enTab' => '#entity > div.entity-tabs > ul > li:nth-child(2) > a',
            '@nlTab' => '#entity > div.entity-tabs > ul > li:nth-child(3) > a',
            '@quantityDiscountPriceInput' => '#tab-content-algemeen input[data-forinput="Currency-quantity_price"]',
            '@quantityDiscountQuantityInput' => '#tab-content-algemeen input[name="TextField-quantity"]'
        ];
    }
}