Completed
Push — feature/policy_unit_tests ( a22c49...864cbd )
by Grant
16:16 queued 01:14
created

testEnglishApplicantPages()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 17
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 11
dl 0
loc 17
rs 9.9
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Tests\Browser;
4
5
use Tests\DuskTestCase;
6
use Laravel\Dusk\Browser;
7
use Illuminate\Foundation\Testing\DatabaseMigrations;
8
9
class BrowseApplicantPagesTest extends DuskTestCase
10
{
11
    /**
12
     * A basic browser test example.
13
     *
14
     * @return void
15
     */
16
    public function testEnglishApplicantPages()
17
    {
18
        $this->browse(function (Browser $browser) {
19
            $browser->visit('/')
20
                    ->assertSee('GC Talent Cloud');
21
22
            $browser->clickLink('Browse Jobs')
23
                    ->assertSee('Browse Jobs');
24
25
            $browser->clickLink('FAQ')
26
                    ->assertSee('Talent Cloud User Guide');
27
28
            $browser->clickLink('Login')
29
                    ->assertSee('Login to Talent Cloud');
30
31
            $browser->clickLink('Register')
32
                    ->assertSee('Register for Talent Cloud');
33
        });
34
    }
35
36
    public function testFrenchApplicantPages()
37
    {
38
        $this->browse(function (Browser $browser) {
39
            $browser->visit('/')
40
                    ->assertSee('GC Talent Cloud');
41
42
            $browser->clickLink('Français')
43
                    ->assertSee('Nuage de talents du GC');
44
45
            $browser->clickLink('Parcourir les emplois')
46
                    ->assertSee('Parcourir les emplois');
47
48
            $browser->clickLink('FAQ')
49
                    ->assertSee('Nuage de talents : mode d\'emploi');
50
51
            $browser->clickLink('Ouverture de session')
52
                    ->assertSee('Overture de session pour le Nuage de talents');
53
54
            $browser->clickLink('Inscription')
55
                    ->assertSee('Inscrivez-vous pour le Nuage de talents');
56
        });
57
    }
58
}
59