Skip to content

Commit 5139a44

Browse files
committed
Internal - Fix behat tests
1 parent 80ba75c commit 5139a44

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

tests/behat/features/sessionAccess.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ Feature: Session access
6666
And wait the page to be loaded when ready
6767
Then I should see "Unauthorised access"
6868

69-
Scenario: ywarnier connect to session that doesn't exists
69+
Scenario: ywarnier connect to course TEMPPRIVATE inside a session that doesn't exists
7070
Given I am not logged
7171
Given I am logged as "ywarnier"
72-
And I am on course "TEMPPRIVATE" homepage in session "Session does not exists"
72+
And I am on "/course/2/home?sid=2000&gid=0"
7373
And wait the page to be loaded when ready
7474
Then I should see "Session not found"
7575

tests/behat/features/toolWork.feature

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ Feature: Work tool
3131
Given I am not logged
3232
Given I am a student
3333
And I am on "/main/work/work.php?cid=1"
34-
And wait very long for the page to be loaded
35-
And I follow "Work 1"
34+
Then I should see "Assignments"
35+
Then I am on "/main/work/work_list.php?cid=1&sid=0&gid=0&gradebook=0&origin=&id=1"
3636
Then I should see "Work 1"
37+
Then I should see "Work description"
3738
Then I follow "Upload my assignment"
3839
Then I should see "Upload a document"
3940
Then I follow "Upload (Simple)"
40-
#Then I should see "File extension"
41-
Then I attach the file "/public/favicon.ico" to "file_upload"
41+
Then I attach the file "/public/favicon.ico" to "form-work_file"
4242
And I press "Upload"
4343
And wait for the page to be loaded
4444
Then I should see "The file has been added to the list of publications"
@@ -52,7 +52,7 @@ Feature: Work tool
5252
And wait for the page to be loaded
5353
Then I should see "Work description"
5454
And wait for the page to be loaded
55-
Then I should see "base.css"
55+
Then I should see "favicon"
5656

5757
# Scenario: Add a comment and a attachment to the work previously uploaded by student
5858
# Given I am a platform administrator

0 commit comments

Comments
 (0)