Read the guideline before start
Let's implement 3 classes with inheritance.
- should contain getter property
logo
which return 'Conduit logo' string.
- constructor takes
url
and and assign it tourl
property - constructor contains
header
property which is an instance ofHeader
class - should contain
clickOnLogo
method. The method should return a string 'Click on the' +logo
from theHeader
class
- constructor taskes
url
andslug
. Constructor should modify originalurl
by addingslug
at the end - should contain getter property
commentButton
which return '[Publish comment] button' string - should contain
clickOnCommentButton
method. The method should return a string 'Click on the' +commentButton
- should contain
assertPageOpened
method. The method should return a string 'The ' +url
+ 'is opened`
The methods commentButton
, clickOnLogo
, clickOnCommentButton
, and assertPageOpened
are placeholders and do not require a real-world implementation for this task.