From a2a1f8d7ed2911c2a4bab05ae599a80ed690c9c4 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Wed, 30 Jan 2013 11:50:52 +0100 Subject: Added automated in-browser tests (PHPUnit + Selenium Web Driver) --- tests/Selenium/Mail/Compose.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 tests/Selenium/Mail/Compose.php (limited to 'tests/Selenium/Mail/Compose.php') diff --git a/tests/Selenium/Mail/Compose.php b/tests/Selenium/Mail/Compose.php new file mode 100644 index 000000000..e707ef17d --- /dev/null +++ b/tests/Selenium/Mail/Compose.php @@ -0,0 +1,25 @@ +go('mail', 'compose'); + + // check task and action + $env = $this->get_env(); + $this->assertEquals('mail', $env['task']); + $this->assertEquals('compose', $env['action']); + + $objects = $this->get_objects(); + + // these objects should be there always + $this->assertContains('qsearchbox', $objects); + $this->assertContains('addressbookslist', $objects); + $this->assertContains('contactslist', $objects); + $this->assertContains('messageform', $objects); + $this->assertContains('attachmentlist', $objects); + $this->assertContains('filedrop', $objects); + $this->assertContains('uploadform', $objects); + } +} -- cgit v1.2.3