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

Refactor driver for E2E #841

Merged
merged 5 commits into from
Dec 19, 2023
Merged

Conversation

ShellyDCMS
Copy link
Collaborator

Added shellygo package.
Refactor driver and e2e tests.
Added data-wd attributes to missing places.

Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 026cf95:

Sandbox Source
maputnik Configuration

@HarelM
Copy link
Collaborator

HarelM commented Dec 18, 2023

I've generated a package lock file and updated the package.json, can you try replacing the ones you have?
package-lock.json
package.json

id = `${type}:${uuid()}`;
}

cy.get(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Doesn't the helper support select?

cy.get(
this.get.getDataAttribute("add-layer.layer-type", "select")
).select(type);
cy.get(this.get.getDataAttribute("add-layer.layer-id", "input")).type(id);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would expect, hopefully, to completely remove the method this.get.getDataAttribute by using the helper class, is it possible?

@HarelM
Copy link
Collaborator

HarelM commented Dec 19, 2023

Npm ci now passes, but it has a different build error...

@ShellyDCMS
Copy link
Collaborator Author

image

@HarelM
Copy link
Collaborator

HarelM commented Dec 19, 2023

I've seen this before in a different library, but I'm not sure what triggered this build failure here...
Are you seeing this build failure locally?

@ShellyDCMS
Copy link
Collaborator Author

Unfortunately, yes
image

@HarelM
Copy link
Collaborator

HarelM commented Dec 19, 2023

I would try to take the original jsx files before the changes and see if they cause a build failure, if not, then we need to understand what was introduced in this PR that caused the build to fail.

@HarelM
Copy link
Collaborator

HarelM commented Dec 19, 2023

Reverting locally the jsx file seems to fix the build locally, so I guess there are changes that break the build somehow...
You'll need to rework the changes unfortunately.
To get the old files I did the following:

  1. checkout main
  2. cp -rf ./src ../
  3. move back to this branch
  4. cp -rf ../src ./

@HarelM HarelM changed the base branch from main to refactor-driver December 19, 2023 19:36
@HarelM
Copy link
Collaborator

HarelM commented Dec 19, 2023

I'll move this to a branch over here so we can collaborate on this.
After everything passes I'll merge this to main.

@HarelM HarelM marked this pull request as ready for review December 19, 2023 19:37
@HarelM HarelM merged commit 84adbe6 into maplibre:refactor-driver Dec 19, 2023
0 of 8 checks passed
@HarelM HarelM mentioned this pull request Dec 19, 2023
HarelM added a commit that referenced this pull request Dec 20, 2023
This is basically the content of #841 with the code review changes and
relevant fixes to tests/driver code to pass the tests.
CC: @ShellyDCMS

After this we should lint the project and add the lint to the CI to make
sure it doesn't break.

---------

Co-authored-by: ShellyDCMS <60476837+ShellyDCMS@users.noreply.github.com>
Co-authored-by: shelly_goldblit <shelly_goldblit@dell.com>
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.

2 participants