GetText() is not working as expected in jasmine
up vote
0
down vote
favorite
This is the text which is in an angular application:
<div class="container-fluid">
All rights reserved. If you have questions, please contact the Application Support & Remediation.</a>
</div>
I want to test it using Jasmine & karma, and my code is:
it('should have footertext', () => {
const footertext = element(by.className('container-fluid'));
expect(footertext.getText()).toContain('Application Support & Remediation');
});
but, it is failing.
Can anyone help? Thanks in Advance
Arka
angular unit-testing jasmine karma-jasmine
add a comment |
up vote
0
down vote
favorite
This is the text which is in an angular application:
<div class="container-fluid">
All rights reserved. If you have questions, please contact the Application Support & Remediation.</a>
</div>
I want to test it using Jasmine & karma, and my code is:
it('should have footertext', () => {
const footertext = element(by.className('container-fluid'));
expect(footertext.getText()).toContain('Application Support & Remediation');
});
but, it is failing.
Can anyone help? Thanks in Advance
Arka
angular unit-testing jasmine karma-jasmine
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
This is the text which is in an angular application:
<div class="container-fluid">
All rights reserved. If you have questions, please contact the Application Support & Remediation.</a>
</div>
I want to test it using Jasmine & karma, and my code is:
it('should have footertext', () => {
const footertext = element(by.className('container-fluid'));
expect(footertext.getText()).toContain('Application Support & Remediation');
});
but, it is failing.
Can anyone help? Thanks in Advance
Arka
angular unit-testing jasmine karma-jasmine
This is the text which is in an angular application:
<div class="container-fluid">
All rights reserved. If you have questions, please contact the Application Support & Remediation.</a>
</div>
I want to test it using Jasmine & karma, and my code is:
it('should have footertext', () => {
const footertext = element(by.className('container-fluid'));
expect(footertext.getText()).toContain('Application Support & Remediation');
});
but, it is failing.
Can anyone help? Thanks in Advance
Arka
angular unit-testing jasmine karma-jasmine
angular unit-testing jasmine karma-jasmine
edited Nov 8 at 11:58
bobbyrne01
2,06343590
2,06343590
asked Nov 8 at 10:13
Arka
3011
3011
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
draft saved
draft discarded
draft saved
draft discarded
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53205571%2fgettext-is-not-working-as-expected-in-jasmine%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password