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 single test execution #239

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

gaganahluwalia
Copy link
Contributor

No description provided.

@@ -34,7 +34,7 @@ function executeTests() {
}

function returnToTestSelection() {
location.reload();
location.href = '/v1.2/app/index.html';
Copy link
Member

Choose a reason for hiding this comment

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

did you test this in Sail?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In Sail location.reload() and location.href are not working.
Single test execution is still broken in Sail.
On clicking the button, it opens up the tests in Browser.

Copy link
Contributor

@kriswest kriswest Jul 4, 2023

Choose a reason for hiding this comment

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

anything to do with scoping? window.location and location are not necessarily the same thing depending on which scope you are in.

@@ -73,6 +72,31 @@ function toggleBackButton() {
}
}

function executeSingleTest(testName: string, manualTest: boolean) {
Copy link
Member

Choose a reason for hiding this comment

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

this looks like it's repeated code

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can sort it out and make it as one function.

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.

3 participants