예제 #1
0
        public async Task Broadcasted_text_appears_on_player()
        {
            await _presenter.StartBroadcast();

            await _presenter.Page.TypeAsync("[type=text]", "abcde");

            var text = await _player.Page.GetTextContentByTestId("client-text");

            text.ShouldBe("abcde");
        }
예제 #2
0
        public async Task InitializeAsync()
        {
            _presenter1 = await _browsers.CreatePresenter();

            await _presenter1.StartBroadcast();

            await _presenter1.Page.TypeAsync("[type=text]", "presenter1");

            _presenter2 = await _browsers.CreatePresenter();

            await _presenter2.StartBroadcast();

            await _presenter2.Page.TypeAsync("[type=text]", "presenter2");

            _player = await _browsers.CreatePlayer(_presenter1.Url);
        }