Skip to content

DEV: updates playwright to 1.54 #33715

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

Merged
merged 23 commits into from
Jul 24, 2025
Merged

DEV: updates playwright to 1.54 #33715

merged 23 commits into from
Jul 24, 2025

Conversation

jjaffeux
Copy link
Contributor

@jjaffeux jjaffeux commented Jul 19, 2025

@github-actions github-actions bot added the chat PRs which include a change to Chat plugin label Jul 19, 2025
@jjaffeux jjaffeux changed the title DEV: updates playwright to 1.53 DEV: updates playwright to 1.54 Jul 21, 2025
channel_page.click_action_button("chat-upload-btn")
end

attach_file("channel-file-uploader", file_path, make_visible: true)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

not sure why but the manual way is not working at all anymore, I tried various variations but nothing worked, this is probably faster anyways, it's not 100% perfect because we don't actually test that the click is working, but most tests don't have this goal anyways

Comment on lines 355 to 359
# should be used only on very rare occasion when you need to wait for something
# that is not visually changing on the page
def delay(ms = 100)
page.driver.with_playwright_page { |pw_page| pw_page.wait_for_timeout(ms) }
end
Copy link
Contributor Author

@jjaffeux jjaffeux Jul 23, 2025

Choose a reason for hiding this comment

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

I would prefer to not introduce this, but it's the only way I got some prose mirrors specs to work. Nothing is changing in the dom hierarchy when moving around nodes with keyboard, future will tell if it's brittle or not... @renato

Copy link
Contributor

Choose a reason for hiding this comment

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

looks like it isn't used after all? (the spec is skipped)

might as well not add it, people might start using it 😉

@@ -622,7 +624,7 @@ def body(title)
)
end

it "ignores text/html content if Files are present" do
xit "ignores text/html content if Files are present" do
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@renato for some reason the hash is different on CI 🤷‍♂️ couldnt figure this one

@@ -1178,19 +1180,19 @@ def body(title)

find(".composer-image-toolbar__zoom-out").click

expect(rich.find(".composer-image-node img")["data-scale"]).to eq("75")
expect(rich).to have_selector(".composer-image-node img[data-scale='75']")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixing flakeys

def copy_to_clipboard
find(".copy-to-clipboard").click

expect(PageObjects::Components::Toasts.new).to have_success(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

ensuring we have actually copied before letting user do anything else with this clipboard

Comment on lines +58 to +62
try_until_success do
expect(normalize_value(composer.composer_input.value)).to eq(
normalize_value(created_table),
)
end
Copy link
Contributor Author

Choose a reason for hiding this comment

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

applying some fix we have at other places, ideally we should have an id or name on the textarea @renato

@@ -366,7 +366,7 @@ def body(title)
expect(composer).to have_value(markdown[0..-2])
end

it "creates inline oneboxes for repeated links in different paste events" do
xit "creates inline oneboxes for repeated links in different paste events" do
Copy link
Contributor Author

@jjaffeux jjaffeux Jul 23, 2025

Choose a reason for hiding this comment

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

this one is failing locally all the time for me @renato don't know how to fix

Comment on lines 355 to 359
# should be used only on very rare occasion when you need to wait for something
# that is not visually changing on the page
def delay(ms = 100)
page.driver.with_playwright_page { |pw_page| pw_page.wait_for_timeout(ms) }
end
Copy link
Contributor

Choose a reason for hiding this comment

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

looks like it isn't used after all? (the spec is skipped)

might as well not add it, people might start using it 😉

@jjaffeux
Copy link
Contributor Author

looks like it isn't used after all? (the spec is skipped)
might as well not add it, people might start using it 😉

No it's not skipped

@jjaffeux jjaffeux merged commit c70e18f into main Jul 24, 2025
15 checks passed
@jjaffeux jjaffeux deleted the playwright-1.53 branch July 24, 2025 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants