Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix failed test after https://github.com/DevExpress/testcafe-hammerhead/pull/1789 #2987

Closed
wants to merge 3 commits into from

Conversation

AlexKamaev
Copy link
Contributor

No description provided.

@testcafe-build-bot
Copy link
Collaborator

❌ Tests for the commit af7b854 have failed. See details:

1 similar comment
@testcafe-build-bot
Copy link
Collaborator

❌ Tests for the commit af7b854 have failed. See details:

@AlexKamaev AlexKamaev changed the title [WIP]fix failed test fix failed test after https://github.com/DevExpress/testcafe-hammerhead/pull/1789 Oct 18, 2018
@testcafe-build-bot
Copy link
Collaborator

@AlexKamaev
Copy link
Contributor Author

ping

@@ -339,33 +339,31 @@ $(document).ready(function () {
});
});

asyncTest('B237672 - TesCafe throw exception "Access is denied" after trying to get content of iframe in IE browsers', function () {
let clicked = false;
asyncTest('B237672 - TesCafe does not throw exception "Access is denied" after trying to get content of iframe', function () {
Copy link
Collaborator

@miherlosev miherlosev Oct 23, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do more test improvements:

  • rename to B237672 - TesCafe should not throw an exception "Access is denied" on accessing to a content of the across-domain iframe
  • .attr('src', 'http://www.cross.domain.com') - use any test page instead of the public url
  • rename const iframeBody = ... to iframeDocument
  • add a clear message for throw new Error(); statement (e.g. Click handler for a cross-domain iframe should not be called).

@testcafe-build-bot
Copy link
Collaborator

@AlexKamaev AlexKamaev closed this Oct 23, 2018
@AlexKamaev AlexKamaev reopened this Oct 23, 2018
@testcafe-build-bot
Copy link
Collaborator

@@ -339,33 +339,31 @@ $(document).ready(function () {
});
});

asyncTest('B237672 - TesCafe throw exception "Access is denied" after trying to get content of iframe in IE browsers', function () {
let clicked = false;
asyncTest('B237672 - TesCafe should not throw an exception "Access is denied" on accessing to a content of the across-domain iframe', function () {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo in across-domain phrase.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops....copy/paste

@testcafe-build-bot
Copy link
Collaborator

@testcafe-build-bot
Copy link
Collaborator

@testcafe-build-bot
Copy link
Collaborator

@testcafe-build-bot
Copy link
Collaborator

@testcafe-build-bot
Copy link
Collaborator

@testcafe-build-bot
Copy link
Collaborator

@testcafe-build-bot
Copy link
Collaborator

@miherlosev
Copy link
Collaborator

Close in favor #3015

@miherlosev miherlosev closed this Oct 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants