@Test public void testElementTextMatches() { textInput.clear(); textInput.sendKeys("florence and the machine"); updateButton.click(); Graphene.waitModel().until().element(header).text().matches("[fF]lorenc. and (the)? [mM]a.hine"); textInput.sendKeys("Tested Header"); updateButton.click(); Graphene.waitModel().until().element(header).text().not().matches("[fF]lorenc. and (the)? [mM]a.hine"); }
@Test public void testElementTextMatches() { textInput.clear(); textInput.sendKeys("florence and the machine"); updateButton.click(); Graphene.waitModel().until().element(header).text().matches("[fF]lorenc. and (the)? [mM]a.hine"); textInput.sendKeys("Tested Header"); updateButton.click(); Graphene.waitModel().until().element(header).text().not().matches("[fF]lorenc. and (the)? [mM]a.hine"); }
@Test public void testElementTextMatchesWithBy() { textInput.clear(); textInput.sendKeys("florence and the machine"); updateButton.click(); Graphene.waitModel().until().element(BY_HEADER).text().matches("[fF]lorenc. and (the)? [mM]a.hine"); textInput.sendKeys("Tested Header"); updateButton.click(); Graphene.waitModel().until().element(BY_HEADER).text().not().matches("[fF]lorenc. and (the)? [mM]a.hine"); } }
@Test public void testElementTextMatchesWithBy() { textInput.clear(); textInput.sendKeys("florence and the machine"); updateButton.click(); Graphene.waitModel().until().element(BY_HEADER).text().matches("[fF]lorenc. and (the)? [mM]a.hine"); textInput.sendKeys("Tested Header"); updateButton.click(); Graphene.waitModel().until().element(BY_HEADER).text().not().matches("[fF]lorenc. and (the)? [mM]a.hine"); } }
@Test public void testAttributeValueMatches() { textInput.clear(); textInput.sendKeys("Tested"); Graphene.waitModel().until().element(textInput).value().not().matches("[tT]este. [hH]ea.er"); textInput.sendKeys(" Header"); Graphene.waitModel().until().element(textInput).value().matches("[tT]este. [hH]ea.er"); }
@Test public void testAttributeValueMatches() { textInput.clear(); textInput.sendKeys("Tested"); Graphene.waitModel().until().element(textInput).value().not().matches("[tT]este. [hH]ea.er"); textInput.sendKeys(" Header"); Graphene.waitModel().until().element(textInput).value().matches("[tT]este. [hH]ea.er"); }