-
Notifications
You must be signed in to change notification settings - Fork 8.6k
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
Conversation
channel_page.click_action_button("chat-upload-btn") | ||
end | ||
|
||
attach_file("channel-file-uploader", file_path, make_visible: true) |
There was a problem hiding this comment.
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
spec/support/system_helpers.rb
Outdated
# 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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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']") |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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
try_until_success do | ||
expect(normalize_value(composer.composer_input.value)).to eq( | ||
normalize_value(created_table), | ||
) | ||
end |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
spec/support/system_helpers.rb
Outdated
# 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 |
There was a problem hiding this comment.
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 😉
No it's not skipped |
Relevant info:
YusukeIwaki/playwright-ruby-client@bb2dcad
https://playwright.dev/docs/release-notes#version-153
https://playwright.dev/docs/release-notes#version-154