Commit e995fbbe authored by flothoni's avatar flothoni

test_list.rb; update class values

Link to #4104
parent ca4c9f04
...@@ -23,7 +23,7 @@ class TestList < BrowserTest ...@@ -23,7 +23,7 @@ class TestList < BrowserTest
sleep 1 sleep 1
# tester la presence du lock # tester la presence du lock
lock = $b.listLock() lock = $b.listLock()
assert ( lock.attribute_value("class") == "icon-lock-1"), "lock start in good state (locked)" assert ( lock.attribute_value("class") == "icon-lock-1 list_lock_on"), "lock start in good state (locked)"
# tester l'ordre des clones # tester l'ordre des clones
listClone = $b.list() listClone = $b.list()
...@@ -44,7 +44,7 @@ class TestList < BrowserTest ...@@ -44,7 +44,7 @@ class TestList < BrowserTest
# Enlever le lock # Enlever le lock
lock = $b.listLock() lock = $b.listLock()
lock.click lock.click
assert ( lock.attribute_value("class") == "icon-lock-open"), "lock in good state after click (unlocked)" assert ( lock.attribute_value("class") == "icon-lock-open list_lock_off"), "lock in good state after click (unlocked)"
# verifier que l'ordre a déjà changer (automatique sort) # verifier que l'ordre a déjà changer (automatique sort)
listClone = $b.list() listClone = $b.list()
l0 = listClone.div(index: 0) l0 = listClone.div(index: 0)
...@@ -70,7 +70,7 @@ class TestList < BrowserTest ...@@ -70,7 +70,7 @@ class TestList < BrowserTest
# verouiller de nouveau # verouiller de nouveau
lock = $b.listLock() lock = $b.listLock()
lock.click lock.click
assert ( lock.attribute_value("class") == "icon-lock-1"), "lock in good state after second click (locked)" assert ( lock.attribute_value("class") == "icon-lock-1 list_lock_on"), "lock in good state after second click (locked)"
# changer de sample # changer de sample
$b.send_keys :arrow_right $b.send_keys :arrow_right
sleep 0.1 sleep 0.1
...@@ -91,7 +91,7 @@ class TestList < BrowserTest ...@@ -91,7 +91,7 @@ class TestList < BrowserTest
lock = $b.listLock() lock = $b.listLock()
# verifier que le lock est bien levé # verifier que le lock est bien levé
assert ( lock.attribute_value("class") == "icon-lock-open"), "lock in good state after change of sort method (unlocked)" assert ( lock.attribute_value("class") == "icon-lock-1 list_lock_on"), "lock in good state after change of sort method (locked)"
# voir qu'il y a bien une reorganisation de la liste # voir qu'il y a bien une reorganisation de la liste
listClone = $b.list() listClone = $b.list()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment