Skip to content

Commit

Permalink
made the names more relevant for the tests #533
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt committed Nov 12, 2015
1 parent 40c5f87 commit d7f9d3f
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 31 deletions.
6 changes: 6 additions & 0 deletions end-to-end-tests/CCA-tests.feature
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
34 changes: 34 additions & 0 deletions end-to-end-tests/steps/CCA-tests.py
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
25 changes: 0 additions & 25 deletions end-to-end-tests/steps/tutorial.py

This file was deleted.

6 changes: 0 additions & 6 deletions end-to-end-tests/tutorial.feature

This file was deleted.

0 comments on commit d7f9d3f

Please sign in to comment.