File tree Expand file tree Collapse file tree 5 files changed +6
-8
lines changed
Expand file tree Collapse file tree 5 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 1+ const HeaderComponent = require ( './components/header' )
2+
13class Base {
4+ constructor ( ) {
5+ this . header = new HeaderComponent ( )
6+ }
7+
28 visit ( ) {
39 browser . get ( this . relativeUrl )
410 }
Original file line number Diff line number Diff line change 11const BasePage = require ( './base' )
22
3- const HeaderComponent = require ( './components/header' )
43const DestinationComponent = require ( './components/destination' )
54
65const randomNumberBewtweenOneAnd = require ( '../utils/randomNumberBewtweenOneAndN' )
76
87class Destination extends BasePage {
98 constructor ( ) {
109 super ( )
11- this . header = new HeaderComponent ( )
1210 this . self = new DestinationComponent ( )
1311 this . relativeUrl = `/destinations/${ randomNumberBewtweenOneAnd ( 15 ) } `
1412 }
Original file line number Diff line number Diff line change 11const BasePage = require ( './base' )
22
3- const HeaderComponent = require ( './components/header' )
43const DestinationComponent = require ( './components/destination' )
54const FormComponent = require ( './components/form' )
65
@@ -9,7 +8,6 @@ const randomNumberBewtweenOneAnd = require('../utils/randomNumberBewtweenOneAndN
98class EditDestination extends BasePage {
109 constructor ( ) {
1110 super ( )
12- this . header = new HeaderComponent ( )
1311 this . self = new DestinationComponent ( )
1412 this . form = new FormComponent ( )
1513 this . relativeUrl = `/destinations/${ randomNumberBewtweenOneAnd ( 15 ) } /edit`
Original file line number Diff line number Diff line change 11const BasePage = require ( './base' )
22
3- const HeaderComponent = require ( './components/header' )
43const TagsComponent = require ( './components/tags' )
54
65class Home extends BasePage {
76 constructor ( ) {
87 super ( )
9- this . header = new HeaderComponent ( )
108 this . tags = new TagsComponent ( )
119 this . relativeUrl = '/'
1210 }
Original file line number Diff line number Diff line change 11const BasePage = require ( './base' )
22
3- const HeaderComponent = require ( './components/header' )
43const DestinationsComponent = require ( './components/destinations' )
54
65const randomNumberBewtweenOneAnd = require ( '../utils/randomNumberBewtweenOneAndN' )
76
87class Tag extends BasePage {
98 constructor ( ) {
109 super ( )
11- this . header = new HeaderComponent ( )
1210 this . destinations = new DestinationsComponent ( )
1311 this . relativeUrl = `/tags/${ randomNumberBewtweenOneAnd ( 5 ) } `
1412 }
You can’t perform that action at this time.
0 commit comments