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/Mail.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/Selenium/Mail/Mail.php (limited to 'tests/Selenium/Mail/Mail.php') diff --git a/tests/Selenium/Mail/Mail.php b/tests/Selenium/Mail/Mail.php new file mode 100644 index 000000000..98413787b --- /dev/null +++ b/tests/Selenium/Mail/Mail.php @@ -0,0 +1,23 @@ +go('mail'); + + // check task + $env = $this->get_env(); + $this->assertEquals('mail', $env['task']); + + $objects = $this->get_objects(); + + // these objects should be there always + $this->assertContains('qsearchbox', $objects); + $this->assertContains('mailboxlist', $objects); + $this->assertContains('messagelist', $objects); + $this->assertContains('quotadisplay', $objects); + $this->assertContains('search_filter', $objects); + $this->assertContains('countdisplay', $objects); + } +} -- cgit v1.2.3