-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
made the names more relevant for the tests #533
- Loading branch information
Matt
committed
Nov 12, 2015
1 parent
40c5f87
commit d7f9d3f
Showing
4 changed files
with
40 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Feature: testing CCA models | ||
|
||
Scenario: Navigate to CCA | ||
Given we can navigate to our example CCA model | ||
when we have navigated to our example model | ||
then we should be able to highlight rows in the table |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
__author__ = 'mletter' | ||
|
||
from behave import * | ||
import time | ||
from selenium.webdriver.common.by import By | ||
from selenium.common.exceptions import NoSuchElementException | ||
from selenium.common.exceptions import TimeoutException | ||
import nose.tools | ||
|
||
|
||
@given('we can navigate to our example CCA model') | ||
def impl(context): | ||
context.browser.get(context.server_url + "/projects") | ||
context.browser.find_element(By.CSS_SELECTOR, "#slycat-projects > div > div > div > a:nth-child(2)").click() # select the project | ||
context.browser.find_element(By.CSS_SELECTOR, "#slycat-project > div:nth-child(1) > div > div > a:nth-child(1)").click() # select the model | ||
context.browser.find_element(By.CSS_SELECTOR, "#table > div.slick-viewport > div > div:nth-child(2)").click() #select the row | ||
# try: | ||
# nose.tools.assert_equal(context.browser.find_element(By.CSS_SELECTOR, "#table > div.slick-viewport > div > div:nth-child(2)").isPresent) | ||
# except NoSuchElementException, e: | ||
# pass | ||
# table > div.slick-viewport > div > div.ui-widget-content.slick-row.even.active > div.slick-cell.l5.r5.rowInput.active.selected | ||
time.sleep(2) | ||
|
||
|
||
@when('we have navigated to our example model') | ||
def impl(context): | ||
title = context.browser.title | ||
nose.tools.assert_equal('New CCA Model - Slycat Model', title) | ||
|
||
|
||
@then('we should be able to highlight rows in the table') | ||
def impl(context): | ||
time.sleep(10) | ||
assert context.failed is False |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.