File tree 1 file changed +16
-11
lines changed
Autotest_registrations_demoqa/tests
1 file changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -49,18 +49,23 @@ def test_registration_demoqa():
49
49
browser .element ('#example-modal-sizes-title-lg' ).should (have .text ('Thanks for submitting the form' ))
50
50
51
51
# We check that our text is filled in
52
- browser .element ('.modal-body' ).should (have .text ('Anna Malinovskaia' ))
53
- browser .element ('.modal-body' ).should (have .text ('test@demoqa.com' ))
54
- browser .element ('.modal-body' ).should (have .text ('Other' ))
55
- browser .element ('.modal-body' ).should (have .text ('1234567890' ))
56
- browser .element ('.modal-body' ).should (have .text ('11 January,1989' ))
57
- browser .element ('.modal-body' ).should (have .text ('Maths' ))
58
- browser .element ('.modal-body' ).should (have .text ('kotik.jpeg' ))
59
- browser .element ('.modal-body' ).should (have .text ('Test test test' ))
60
- browser .element ('.modal-body' ).should (have .text ('NCR Delhi' ))
61
-
52
+ browser .element ('.table' ).all ('td' ).even .should (
53
+ have .texts (
54
+ 'Anna Malinovskaia' ,
55
+ 'test@demoqa.com' ,
56
+ 'Other' ,
57
+ '1234567890' ,
58
+ '11 January,1989' ,
59
+ 'Maths' ,
60
+ 'Reading' ,
61
+ 'kotik.jpeg' ,
62
+ 'Test test test' ,
63
+ 'NCR Delhi'
64
+ )
65
+ )
66
+
62
67
# Closing the window
63
68
browser .element ('#closeLargeModal' ).click ()
64
-
69
+
65
70
# We check that the form is empty
66
71
browser .element ('#firstName' ).should (be .blank )
You can’t perform that action at this time.
0 commit comments